forked from ScoopInstaller/Versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lamexp-qaac.json
40 lines (40 loc) · 1.59 KB
/
lamexp-qaac.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
{
"homepage": "http://lamexp.sourceforge.net",
"version": "4.19.2320",
"description": "Audio Encoder Front-End.",
"license": "GPL-2.0-or-later",
"url": "https://downloads.sourceforge.net/project/lamexp/LameXP.2021-08-29.Release-Static.Build-2320.zip",
"hash": "sha1:c0a955eee0bd53a890912637d6b7cbcc7428568b",
"depends": "qaac",
"pre_install": [
"Rename-Item \"$dir\\LameXP.exe\" \"$dir\\LameXP-Portable.exe\"",
"$ini = \"LameXP-Portable.ini\"",
"If (!(Test-Path \"$persist_dir\\$ini\")) {",
" New-Item \"$dir\\$ini\" | Out-Null",
"} Else {",
" $version -match \"(\\d+).(\\d+).(\\d+)\" | Out-Null",
" $cleanVersion = $Matches[1] + $Matches[2] + '0' + $Matches[3]",
" (Get-Content \"$persist_dir\\$ini\") -replace 'LameXP_\\d+', \"LameXP_$cleanVersion\" | Set-Content \"$persist_dir\\$ini\"",
"},",
"$aac = versiondir 'qaac' 'current'",
"If (Test-Path \"$aac\") {",
" info \"Adding QAAC (Apple AAC) Codec Support\"",
" Copy-Item \"$aac\\*\" \"$dir\" -Include 'qaac*', '*.dll'",
"}"
],
"shortcuts": [
[
"LameXP-Portable.exe",
"LameXP"
]
],
"persist": "LameXP-Portable.ini",
"checkver": {
"url": "https://muldersoft.com",
"regex": "\\[(?<release>[\\d-]+)\\] LameXP v([\\d.]+) Final \\(Build #(\\d+)\\)",
"replace": "${1}.${2}"
},
"autoupdate": {
"url": "https://downloads.sourceforge.net/project/lamexp/LameXP.$matchRelease.Release-Static.Build-$patchVersion.zip"
}
}