scoop-games/bucket/vita3k.json

57 lines
1.8 KiB
JSON

{
"version": "2812-57d2d91",
"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": "bc6c94507fc3f3aa98edf6b2e719a6dfb674b59c4c6f0cb1d36cd8de13537918"
}
},
"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"
}
}
}
}