/
hmcl.json
33 lines (33 loc) · 1.16 KB
/
hmcl.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.5.4.234",
"description": "HMCL 是一个免费、开源的 Minecraft 启动器,允许玩家方便快捷地安装、管理、运行游戏。",
"homepage": "https://github.com/HMCL-dev/HMCL",
"license": "GPL-3.0",
"url": "https://github.com/HMCL-dev/HMCL/releases/download/v3.5.4.234/HMCL-3.5.4.234.exe",
"bin": "HMCL.exe",
"pre_install": "Rename-Item \"$dir\\HMCL-$version.exe\" -NewName \"$dir\\HMCL.exe\"",
"post_install": [
"if (Test-Path \"$persist_dir\\hmcl.json\") {",
" Copy-Item -Path \"$persist_dir\\hmcl.json\" -Destination \"$dir\\hmcl.json\"",
"}"
],
"shortcuts": [
[
"HMCL.exe",
"HMCL"
]
],
"persist": ".minecraft",
"pre_uninstall": [
"if (Test-Path \"$dir\\hmcl.json\") {",
"Copy-Item -Path \"$dir\\hmcl.json\" -Destination \"$persist_dir\\hmcl.json\"",
"}"
],
"checkver": {
"github": "https://github.com/HMCL-dev/HMCL/releases",
"regex": "v([\\d.]+).exe"
},
"autoupdate": {
"url": "https://github.com/HMCL-dev/HMCL/releases/download/v$version/HMCL-$version.exe"
}
}