generated from Ash258/GenericBucket
/
Audacity-Install.json
65 lines (65 loc) · 2.83 KB
/
Audacity-Install.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
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"version": "3.5.1",
"description": "Audacity. An easy-to-use, multi-track audio editor and recorder",
"homepage": "https://www.audacityteam.org",
"license": "GPL-2.0-or-later",
"changelog": "https://wiki.audacityteam.org/wiki/Audacity_Versions",
"architecture": {
"64bit": {
"url": "https://github.com/audacity/audacity/releases/download/Audacity-3.5.1/audacity-win-3.5.1-64bit.exe#/setup.exe",
"hash": "e3d6691546cc57c27972fb3f233d626e3e4a362ecb00955d90c71b25ea0bc0c6"
},
"32bit": {
"url": "https://github.com/audacity/audacity/releases/download/Audacity-3.5.1/audacity-win-3.5.1-32bit.exe#/setup.exe",
"hash": "b87afa912e28b62cb158e614b7d33600e50e9acbdcf2f0a8f5aefc6f986af44d"
}
},
"pre_download": "Assert-Administrator",
"pre_install": [
"$processname = \"Audacity\"",
"$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 = \"Audacity*\"",
"$ProgramFiles = [Environment]::GetFolderPath(\"ProgramFiles\")",
"$filepath = \"$ProgramFiles\\Audacity\\Audacity.exe\"",
"if(((Test-Path -Path $filepath -PathType Leaf) -eq $false) -or ((Get-Command $filepath).Version -lt [System.Version]\"$version\"))",
"{",
" &\"$dir\\setup.exe\" /verysilent /norestart | Out-Null",
" if(((Test-Path -Path $filepath -PathType Leaf) -eq $false) -or ((Get-Command $filepath).Version -lt [System.Version]\"$version\"))",
" {",
" exit 1",
" }",
"}",
"if (Test-Path -Path \"$dir\\setup.exe\") { Remove-Item \"$dir\\setup.exe\" -Force }"
]
},
"post_install": [
"$programname = \"Audacity\"",
"$CommonDesktopPath = [Environment]::GetFolderPath(\"CommonDesktopDirectory\")",
"if (Test-Path \"$CommonDesktopPath\\$programname.lnk\") {Remove-Item \"$CommonDesktopPath\\$programname.lnk\" -Force}"
],
"checkver": {
"url": "https://github.com/audacity/audacity/releases",
"regex": "\">Audacity ([\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/audacity/audacity/releases/download/Audacity-$version/audacity-win-$version-64bit.exe#/setup.exe"
},
"32bit": {
"url": "https://github.com/audacity/audacity/releases/download/Audacity-$version/audacity-win-$version-32bit.exe#/setup.exe"
}
}
}
}