scoop-games/bucket/project64.json

51 lines
2.0 KiB
JSON
Raw Normal View History

2021-07-11 13:57:27 -07:00
{
"version": "3.0.1-5664-2df3434",
"description": "Nintendo 64 emulator",
"homepage": "https://www.pj64-emu.com/",
2022-03-05 18:09:49 -08:00
"license": {
2022-03-19 15:54:04 -07:00
"identifier": "GPL-2.0",
"url": "https://github.com/project64/project64/blob/develop/license.md"
2022-03-05 18:09:49 -08:00
},
2022-03-07 16:42:21 -08:00
"url": "https://www.pj64-emu.com/file/project64-3-0-0-5632-f83bee9#/dl.zip",
"hash": "6e2d123a0d665576649c16dc0cb902d70f9a1072a5fbcd23a5ab4cf3854dd07f",
"shortcuts": [
[
"Project64.exe",
"Project64"
]
],
2021-07-11 13:57:27 -07:00
"persist": [
"Config",
"Logs",
"Save",
"Screenshots",
"Textures",
"Games",
"ROMs"
2022-03-05 13:34:10 -08:00
],
"checkver": {
"url": "https://www.pj64-emu.com/public-releases",
2022-03-07 16:42:21 -08:00
"regex": "(.+?) (?<url>.*)",
"script": [
"$ProgressPreference = 'SilentlyContinue'",
"$aregex = New-Object System.Text.RegularExpressions.Regex(\"<a href=`\"/`(?<url>[^`\"]*`)`\">Project64`\\s+`(?<version>v?[`\\d.]+`)`\\s+Zip</a>\")",
"$amatch = $aregex.Matches($page) | Select-Object -First 1",
"$burl = $json.homepage + $amatch.Groups['url'].Value",
"$bpage = (Invoke-WebRequest $burl).Content",
"$bregex = New-Object System.Text.RegularExpressions.Regex(\"/`(?<url>file/project64-[\\d-]+-[0-9a-f]+`)\")",
"$bmatch = $bregex.Matches($bpage) | Select-Object -First 1",
"$rurl = $bmatch.Groups['url'].Value",
"$curl = $json.homepage + $bmatch.Groups['url'].Value",
"$cpage = (Invoke-WebRequest -Method Head $curl).RawContent",
"$cregex = New-Object System.Text.RegularExpressions.Regex(\"filename=`\"Project64-(?<version>[\\d.]+-[\\d]+-[0-9a-f]+`)\")",
"$cmatch = $cregex.Matches($cpage) | Select-Object -First 1",
"$rversion = $cmatch.Groups['version'].Value",
"Write-Output $rversion $rurl",
"$ProgressPreference = 'Continue'"
]
},
"autoupdate": {
2022-03-07 16:42:21 -08:00
"url": "https://www.pj64-emu.com/$matchUrl#/dl.zip"
}
2021-07-11 13:57:27 -07:00
}