generated from ScoopInstaller/BucketTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foobar2000.json
74 lines (74 loc) · 3.04 KB
/
foobar2000.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
66
67
68
69
70
71
72
73
74
{
"version": "2.1.5",
"description": "An advanced freeware audio player for the Windows platform.",
"homepage": "https://www.foobar2000.org/",
"license": {
"identifier": "Freeware",
"url": "https://www.foobar2000.org/license"
},
"suggest": {
"Encoders": "extras/foobar2000-encoders"
},
"architecture": {
"64bit": {
"url": "https://www.foobar2000.org/files/foobar2000-x64_v2.1.5.exe#/dl.7z",
"hash": "fce2539afdd7aa96dffadc27e9ce613c9a0a344c6bdb6e05e0519d23db1c79a8"
},
"32bit": {
"url": "https://www.foobar2000.org/files/foobar2000_v2.1.5.exe#/dl.7z",
"hash": "3b4a1f5a99f7040ff235a6a61045fb1877b2e646a6a21a9ceb472a5e606dbd55"
},
"arm64": {
"url": "https://www.foobar2000.org/files/foobar2000-arm64ec_v2.1.5.exe#/dl.7z",
"hash": "da0e52a15d724c5aa24da231f440db8319c85bfe3b06fd1ab1bc4789f8c0aaad"
}
},
"installer": {
"script": [
"Remove-Item \"$dir\\`$*\", \"$dir\\uninstall.exe\" -Force -Recurse",
"New-Item \"$dir\\portable_mode_enabled\" -Force | Out-Null",
"$EncodersDir = $(appdir foobar2000-encoders $global)",
"if (Test-Path \"$EncodersDir\") {",
" New-Item \"$dir\\encoders\" -ItemType Junction -Target \"$EncodersDir\\current\" | Out-Null",
"}"
]
},
"post_install": [
"if (!(Test-Path \"$persist_dir\\profile\\*\")) {",
" Get-ChildItem -Path \"$persist_dir\" -Exclude \"profile\" | Move-Item -Destination \"$persist_dir\\profile\" -Force",
"}",
"if (!(Test-Path \"$persist_dir\\profile\\*\") -and (Test-Path \"$env:AppData\\foobar2000\")) {",
" info '[Portable Mode]: Copying user data...'",
" Copy-Item \"$env:AppData\\foobar2000\\*\" -Destination \"$persist_dir\\profile\" -Force -Recurse",
"}",
"if (!(Test-Path \"$persist_dir\\profile\\playlists-v1.4\")) {",
" Get-ChildItem -Path \"$persist_dir\\profile\" -Filter \"playlists\" -Directory | Rename-Item -NewName \"playlists-v1.4\" -Force",
"}",
"Get-ChildItem -Path \"$persist_dir\\profile\" -Filter \"playlists\" | Remove-Item -Force -Recurse"
],
"bin": "foobar2000.exe",
"shortcuts": [
[
"foobar2000.exe",
"Foobar2000"
]
],
"persist": "profile",
"checkver": {
"url": "https://www.foobar2000.org/download",
"regex": "foobar2000_v([\\d.]+)\\."
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://www.foobar2000.org/files/foobar2000-x64_v$version.exe#/dl.7z"
},
"32bit": {
"url": "https://www.foobar2000.org/files/foobar2000_v$version.exe#/dl.7z"
},
"arm64": {
"url": "https://www.foobar2000.org/files/foobar2000-arm64ec_v$version.exe#/dl.7z"
}
}
}
}