/
MajsoulPaipuAnalyzer.json
63 lines (63 loc) · 2.25 KB
/
MajsoulPaipuAnalyzer.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
{
"version": "0.5.5",
"description": "雀魂牌谱分析工具",
"homepage": "https://github.com/zyr17/MajsoulPaipuAnalyzer",
"license": "MIT",
"url": "https://github.com/zyr17/MajsoulPaipuAnalyzer/releases/download/v0.5.5/MajsoulPaipuAnalyzer-win-x64.7z",
"hash": "19bdbc135a5e427187938bb403e5a49a8280db516383582d82bb910ed03a20b2",
"extract_dir": "MajsoulPaipuAnalyzer-win-x64",
"installer": {
"script": [
"# handle runtime cache",
"if (!(Test-Path $persist_dir)) {",
" New-Item $persist_dir -Type Directory -Force | Out-Null",
"}",
"$runtimeCache = \"$env:APPDATA\\MajsoulPaipuAnalyzer\"",
"$runtimeCachePersist = \"$persist_dir\\appdata\"",
"if (Test-Path $runtimeCachePersist) {",
" Remove-Item $runtimeCache -Force -Recurse -ErrorAction SilentlyContinue",
" New-Item -Type Junction -Path $runtimeCache -Target $runtimeCachePersist | Out-Null",
"} else {",
" if (Test-Path $runtimeCache) {",
" Move-Item $runtimeCache $runtimeCachePersist -Force",
" New-Item -Type Junction -Path $runtimeCache -Target $runtimeCachePersist | Out-Null",
" }",
"}"
]
},
"uninstaller": {
"script": [
"$runtimeCache = \"$env:APPDATA\\MajsoulPaipuAnalyzer\"",
"$runtimeCachePersist = \"$persist_dir\\appdata\"",
"if (!(Test-Path $runtimeCachePersist)) {",
" Move-Item $runtimeCache $runtimeCachePersist -Force",
"} else {",
" Remove-Item $runtimeCache -Force -Recurse -ErrorAction SilentlyContinue",
"}"
]
},
"bin": [
[
"PaipuAnalyzer.exe",
"PaipuAnalyzer"
]
],
"shortcuts": [
[
"MajsoulPaipuCrawler.exe",
"MajsoulPaipuCrawler"
],
[
"PaipuAnalyzer.exe",
"PaipuAnalyzer"
]
],
"persist": [
"data",
"config.json"
],
"checkver": "github",
"autoupdate": {
"url": "https://github.com/zyr17/MajsoulPaipuAnalyzer/releases/download/v$version/MajsoulPaipuAnalyzer-win-x64.7z"
}
}