Add mGBA (#72)
* Add mgba (initial) * Update description * Add mGBA-dev * Regex changes by r15ch13master
parent
7ab94e235f
commit
c163399321
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"homepage": "https://mgba.io/",
|
||||
"description": "A fast, accurate, and portable GBA emulator (development version)",
|
||||
"license": "MPL-2.0",
|
||||
"version": "0.7.3-5981",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://s3.amazonaws.com/mgba/mGBA-build-latest-win64.7z",
|
||||
"hash": "29aa9c822393fdd1f3542b73abfc75fb6cf64327045796fed3186fc31e226d79"
|
||||
},
|
||||
"32bit": {
|
||||
"url": "https://s3.amazonaws.com/mgba/mGBA-build-latest-win32.7z",
|
||||
"hash": "f5c7ff2d0f7737d446e5ea76998e718096f0326d3a6149bd376e42c0932a3e0e"
|
||||
}
|
||||
},
|
||||
"installer": {
|
||||
"script": [
|
||||
"Copy-item -Path \"$dir\\$(Get-ChildItem -Path $dir)\\*\" -Destination \"$dir\" -Recurse",
|
||||
"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": {
|
||||
"url": "https://mgba.io",
|
||||
"regex": "Release:\\s+<[^>]+>(?<version>[\\d.]+)</a>[\\s\\S]+Version:\\s+<[^>]+>(?<build>[a-f\\d-]+)</a>",
|
||||
"replace": "${1}-${2}"
|
||||
},
|
||||
"autoupdate": {
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://s3.amazonaws.com/mgba/mGBA-build-latest-win64.7z"
|
||||
},
|
||||
"32bit": {
|
||||
"url": "https://s3.amazonaws.com/mgba/mGBA-build-latest-win32.7z"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"homepage": "https://mgba.io/",
|
||||
"description": "A fast, accurate, and portable GBA emulator",
|
||||
"license": "MPL-2.0",
|
||||
"version": "0.8-b1",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://github.com/mgba-emu/mgba/releases/download/0.8-b1/mGBA-0.8-b1-win64.7z",
|
||||
"hash": "5718c23b3df97629684046ca4feb08557dcfc8789084d7f8cf8cb19088cc3cc5",
|
||||
"extract_dir": "mGBA-0.8-b1-win64"
|
||||
},
|
||||
"32bit": {
|
||||
"url": "https://github.com/mgba-emu/mgba/releases/download/0.8-b1/mGBA-0.8-b1-win32.7z",
|
||||
"hash": "3e281147531eec41666fc8b57dc11a7a9ed7a6b6464e740e3e52414d651d69b1",
|
||||
"extract_dir": "mGBA-0.8-b1-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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue