-
-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathdandanplay.json
50 lines (50 loc) · 2.06 KB
/
dandanplay.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
{
"homepage": "https://www.dandanplay.com/",
"description": "A free to use bangumi player with danmaku support",
"version": "15.12.0",
"license": "Unknown",
"architecture": {
"64bit": {
"url": "https://dandan.sakurateam.top/dandanplay-x64_15.12.0.exe",
"hash": "a130883c95706ae5dcc1d3bccd48e63ee9af7c51fbd6c8f29d40ddc094779e7c"
}
},
"pre_install": [
"if (!(Test-Path \"$persist_dir\\Config\")) {",
" New-Item -Path \"$persist_dir\\Config\" -ItemType Directory | Out-Null",
"}",
"# Disable auto update",
"if (!(Test-Path \"$persist_dir\\Config\\ConnectionSettings.xml\")) {",
" New-Item -Force -Path \"$persist_dir\\Config\\ConnectionSettings.xml\" -ItemType File -Value '<?xml version=\"1.0\"?><ConnectionSettings><EnableAutoUpdate>false</EnableAutoUpdate><NotifyOnUpdateDownloaded>false</NotifyOnUpdateDownloaded></ConnectionSettings>' | Out-Null",
"}",
"# Disable tracking",
"if (!(Test-Path \"$persist_dir\\Config\\UserSettings.xml\")) {",
" New-Item -Force -Path \"$persist_dir\\Config\\UserSettings.xml\" -ItemType File -Value '<?xml version=\"1.0\"?><UserSettings><EnableTelemetry>false</EnableTelemetry></UserSettings>' | Out-Null",
"}"
],
"installer": {
"script": [
"Start-Process \"$dir\\$fname\" \"/extract $dir\" -PassThru -NoNewWindow | Wait-Process",
"$subdir = (Get-ChildItem -Path \"$dir\" -Exclude \"*NET*\",\"WebView2\" -Directory).Name",
"movedir \"$dir\\$subdir\" \"$dir\" | Out-Null",
"Remove-Item \"$dir\\$fname\",\"$dir\\decoder.dll\",\"$dir\\$subdir\" -Force -ErrorAction SilentlyContinue"
]
},
"shortcuts": [
[
"dandanplay.exe",
"弹弹play"
]
],
"persist": [
"Config",
"Log",
"Cache"
],
"checkver": {
"regex": "dandanplay-x64_([\\d.]+).exe\""
},
"autoupdate": {
"url": "https://dandan.sakurateam.top/dandanplay-x64_$version.exe"
}
}