scoop-games/bucket/vita3k.json
2022-08-26 16:31:31 +00:00

57 lines
1.8 KiB
JSON

{
"version": "2798-b6e1fe2",
"description": "Experimental PlayStation Vita emulator",
"homepage": "https://vita3k.org",
"license": "GPL-2.0-only",
"suggest": {
"vcredist": "extras/vcredist2022"
},
"architecture": {
"64bit": {
"url": "https://github.com/Vita3K/Vita3K/releases/download/continuous/windows-latest.zip",
"hash": "2ce79c7382d1fe7988225e67e78019742209213849cbea707fc7e8425dc1a7da"
}
},
"pre_install": [
"if (!(Test-Path \"$persist_dir\\config.yml\")) {",
" New-Item \"$dir\\config.yml\" | Out-Null",
"}"
],
"bin": "Vita3K.exe",
"shortcuts": [
[
"Vita3K.exe",
"Vita3K"
]
],
"persist": [
"cache",
"config.yml"
],
"checkver": {
"script": [
"$url = 'https://github.com/Vita3K/Vita3K/releases/tag/continuous'",
"$build_regex = 'Vita3K Build: (\\d+)'",
"$commit_regex = 'Corresponding commit: ([a-f0-9]{7})'",
"",
"$cont = (Invoke-WebRequest $url -UseBasicParsing).Content",
"",
"if(!($cont -match $build_regex)) { error \"Could match '$build_regex' on '$url'\"; break }",
"$build_number = $matches[1]",
"if(!($cont -match $commit_regex)) { error \"Could match '$commit_regex' on '$url'\"; break }",
"$commit_sha = $matches[1]",
"",
"$script_ver = \"$build_number-$commit_sha\"",
"Write-Output $script_ver"
],
"regex": "(\\d+-[a-f0-9]{7})"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/Vita3K/Vita3K/releases/download/continuous/windows-latest.zip"
}
}
}
}