multimc-dev: Add autoupdate (#109)

master
TheRandomLabs 2020-05-02 21:44:42 +10:00 committed by GitHub
parent 5cb955a649
commit 1365e07787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 3 deletions

View File

@ -1,9 +1,10 @@
{
"version": "nightly",
"version": "1438",
"description": "Launcher for Minecraft that allows for multiple, cleanly separated instances of Minecraft.",
"homepage": "https://multimc.org/",
"license": "Apache-2.0",
"url": "https://files.multimc.org/downloads/mmc-develop-win32.zip",
"url": "https://teamcity.multimc.org/app/rest/builds/number:1438/artifacts/content/package.tar.gz?guest=1",
"hash": "c1d96ffec4f2ea0c10357dd9fd69d0a99a64a2d202b80fca541f097d0dbf4b5d",
"extract_dir": "MultiMC",
"pre_install": [
"if (-not (Test-Path \"$dir\\accounts.json\")) { New-Item \"$dir\\accounts.json\" -ItemType File | Out-Null }",
@ -28,5 +29,12 @@
"accounts.json",
"multimc.cfg",
"notifications.json"
]
],
"checkver": {
"url": "https://teamcity.multimc.org/app/rest/buildTypes/MultiMC_Launcher_Windows_Build/builds/status:success/number?guest=1",
"regex": "(.+)"
},
"autoupdate": {
"url": "https://teamcity.multimc.org/app/rest/builds/number:$version/artifacts/content/package.tar.gz?guest=1"
}
}