70 lines
2.3 KiB
JSON
70 lines
2.3 KiB
JSON
{
|
|
"homepage": "https://mgba.io/",
|
|
"description": "A fast, accurate, and portable GBA emulator",
|
|
"license": "MPL-2.0",
|
|
"version": "0.9.1",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/mgba-emu/mgba/releases/download/0.9.1/mGBA-0.9.1-win64.7z",
|
|
"hash": "db02f9b4fdd9d0844362e82e1ce168aa1049056054c6a21b2a6cbef94d1d9563",
|
|
"extract_dir": "mGBA-0.9.1-win64"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/mgba-emu/mgba/releases/download/0.9.1/mGBA-0.9.1-win32.7z",
|
|
"hash": "c281001f5a91e82cc1d3fcf0f93dfb931faadbcc1a3ebbde14a6ed237bc8cbd7",
|
|
"extract_dir": "mGBA-0.9.1-win32"
|
|
}
|
|
},
|
|
"installer": {
|
|
"script": [
|
|
"if (!(Test-Path \"$persist_dir\\qt.ini\")) {",
|
|
" New-Item \"$dir\\qt.ini\" -ItemType \"file\" | Out-Null ",
|
|
"}",
|
|
"if (!(Test-Path \"$persist_dir\\config.ini\")) {",
|
|
" Set-Content \"$dir\\config.ini\" '[ports.qt]'",
|
|
" 'cheats', 'patch', 'savegame', 'savestate', 'screenshot' | ForEach-Object {",
|
|
" Add-Content -Path \"$dir\\config.ini\" -Value $_`Path`=$persist_dir\\$_ }",
|
|
"}"
|
|
]
|
|
},
|
|
"bin": [
|
|
[
|
|
"mGBA.exe",
|
|
"mgba-sdl.exe"
|
|
]
|
|
],
|
|
"shortcuts": [
|
|
[
|
|
"mGBA.exe",
|
|
"mGBA"
|
|
]
|
|
],
|
|
"persist": [
|
|
"cheats",
|
|
"patch",
|
|
"savegame",
|
|
"savestate",
|
|
"screenshot",
|
|
"shaders",
|
|
"qt.ini",
|
|
"config.ini"
|
|
],
|
|
"checkver": {
|
|
"github": "https://github.com/mgba-emu/mgba",
|
|
"regex": "mGBA-(?<ver>[\\d.]+)((?<beta>-b1)?)",
|
|
"replace": "${2}${1}"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/mgba-emu/mgba/releases/download/$matchVer$matchBeta/mGBA-$matchVer$matchBeta-win64.7z",
|
|
"extract_dir": "mGBA-$matchVer$matchBeta-win64"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/mgba-emu/mgba/releases/download/$matchVer$matchBeta/mGBA-$matchVer$matchBeta-win32.7z",
|
|
"extract_dir": "mGBA-$matchVer$matchBeta-win32"
|
|
}
|
|
}
|
|
}
|
|
}
|