generated from Ash258/GenericBucket
/
EncodeGUI-UserInstall.json
52 lines (52 loc) · 1.94 KB
/
EncodeGUI-UserInstall.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"version": "1.2.3",
"description": "EncodeGUI. A free and open source video transcoder GUI that utilizes AI tools for a fascinating encoding experience.",
"homepage": "https://encodegui.com/",
"license": "AGPL-3.0",
"changelog": "https://github.com/DaGooseYT/EncodeGUI/releases",
"architecture": {
"64bit": {
"url": "https://encodegui.com/dl/EncodeGUI_v1.2.3_win_setup.zip",
"hash": "a8c7323a0e2142575ed052e3ff81d9daf711bb3dc90edbc1058ba5890202e0de"
}
},
"pre_install": [
"$processname = \"EncodeGUI\"",
"$process = Get-Process $processname -ErrorAction SilentlyContinue",
"if ($process) {",
" $process.CloseMainWindow()",
" Start-Sleep -Seconds 5",
" if (!$process.HasExited) {",
" Start-Sleep -Seconds 25",
" $process | Stop-Process -Force",
" }",
"}"
],
"installer": {
"script": [
"$programname = \"EncodeGUI*\"",
"$ProgramFiles = [Environment]::GetFolderPath(\"ProgramFilesX86\")",
"$filepath = \"$dir\\EncodeGUI.exe\"",
"if((Test-Path -Path $filepath -PathType Leaf) -eq $false)",
"{",
" Get-ChildItem \"$dir\\EncodeGUI*setup.exe\" | Rename-Item -NewName 'setup.exe'",
" &\"$dir\\setup.exe\" /VERYSILENT /CURRENTUSER \"/DIR=$dir\" /SUPPRESSMSGBOXES | Out-Null",
" if((Test-Path -Path $filepath -PathType Leaf) -eq $false)",
" {",
" exit 1",
" }",
"}",
"if (Test-Path -Path \"$dir\\setup.exe\") { Remove-Item \"$dir\\setup.exe\" -Force }"
]
},
"checkver": {
"github": "https://github.com/DaGooseYT/EncodeGUI"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://encodegui.com/dl/EncodeGUI_v$version_win_setup.zip"
}
}
}
}