generated from ScoopInstaller/BucketTemplate
/
yuanshen.json
33 lines (33 loc) · 1.08 KB
/
yuanshen.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
{
"version": "3.6.0",
"homepage": "https://ys.mihoyo.com/",
"url": "https://autopatchcn.yuanshen.com/client_app/download/pc_zip/20230331200338_Sn5XSSFSqcIjAQL1/YuanShen_3.6.0.zip",
"hash": "md5:a68674c957384fa6c23b3dee546b0513",
"shortcuts": [
[
"YuanShen.exe",
"YuanShen"
]
],
"pre_install": [
"$configFile = \"[General]`r`n\"",
"$configFile += \"cps=mihoyo`r`n\"",
"$configFile += \"channel=1`r`n\"",
"$configFile += \"sub_channel=1`r`n\"",
"$configFile += \"game_version=$version\"",
"Set-Content \"$dir\\config.ini\" -Value $configFile -Encoding Ascii"
],
"persist": "ScreenShot",
"checkver": {
"url": "https://sdk-static.mihoyo.com/hk4e_cn/mdk/launcher/api/resource?key=eYd89JmJ&launcher_id=18",
"jsonpath": "$.data.game.latest.path",
"regex": "(?<url>.+)/YuanShen_([\\d.]+)\\.zip"
},
"autoupdate": {
"url": "$matchUrl/YuanShen_$version.zip",
"hash": {
"url": "https://sdk-static.mihoyo.com/hk4e_cn/mdk/launcher/api/resource?key=eYd89JmJ&launcher_id=18",
"jsonpath": "$.data.game.latest.md5"
}
}
}