/
musicplayer2.json
49 lines (49 loc) 路 1.91 KB
/
musicplayer2.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
{
"homepage": "https://github.com/zhongyang219/MusicPlayer2",
"description": "Audio player which supports music collection playback, lyrics display, format conversion and many other functions.",
"license": "GPL-3.0-only",
"version": "2.76.1",
"architecture": {
"32bit": {
"url": "https://github.com/zhongyang219/MusicPlayer2/releases/download/V2.76.1/MusicPlayer2_V2.76.1_x86.zip",
"hash": "51ec0ec4a87b0c018d5144cd8e8a3e280a3e391119d1b84b57842f11b973e2b2",
"extract_dir": "MusicPlayer2"
},
"64bit": {
"url": "https://github.com/zhongyang219/MusicPlayer2/releases/download/V2.76.1/MusicPlayer2_V2.76.1_x64.zip",
"hash": "f8e352570e8c5c553efbaff6bbb0ea007a2a9f0bd3f457024fabdb5cf99ce033",
"extract_dir": "MusicPlayer2_x64"
}
},
"shortcuts": [
[
"MusicPlayer2.exe",
"MusicPlayer2"
]
],
"pre_install": [
"$GLOBAL_CFG = 'global_cfg.ini'",
"if (!(Test-Path \"$persist_dir\\$GLOBAL_CFG\")) {",
" Set-Content \"$dir\\$GLOBAL_CFG\" @('[config]', 'portable_mode = true') -Encoding Ascii",
"}",
"'recent_path.dat', 'song_data.dat', 'config.ini' | ForEach-Object { if (!(Test-Path \"$persist_dir\\$_\")) { New-Item \"$dir\\$_\" -ItemType File -Force | Out-Null } }"
],
"persist": [
"playlist",
"recent_path.dat",
"song_data.dat",
"config.ini",
"global_cfg.ini"
],
"checkver": "github",
"autoupdate": {
"architecture": {
"32bit": {
"url": "https://github.com/zhongyang219/MusicPlayer2/releases/download/V$version/MusicPlayer2_V$version_x86.zip"
},
"64bit": {
"url": "https://github.com/zhongyang219/MusicPlayer2/releases/download/V$version/MusicPlayer2_V$version_x64.zip"
}
}
}
}