/
xenia-canary.json
51 lines (51 loc) · 2.28 KB
/
xenia-canary.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"version": "20240426183343-5ca173c",
"description": "Xbox 360 Research Emulator (development version)",
"homepage": "https://xenia.jp",
"license": {
"identifier": "BSD-3-Clause",
"url": "https://github.com/xenia-canary/xenia-canary/blob/canary_pr/LICENSE"
},
"url": "https://github.com/xenia-canary/xenia-canary/releases/download/5ca173c/xenia_canary.zip",
"hash": "7a1521544a2b837f49f3a0cd44b19b19b673d1039c2fe16a15715f354ec7b1f4",
"pre_install": [
"if (!(Test-Path \"$persist_dir\")) {",
" New-Item \"$persist_dir\" -ItemType Directory | Out-Null",
" New-item \"$persist_dir\\portable.txt\" -ItemType File | Out-Null",
" New-item \"$persist_dir\\xenia-canary.config.toml\" -ItemType File | Out-Null",
" if (Test-Path \"$env:USERPROFILE\\Documents\\Xenia\") {",
" Write-host \"Migrating AppData...\" -ForegroundColor yellow",
" Copy-Item -Path \"$env:USERPROFILE\\Documents\\Xenia\\*\" -Destination \"$persist_dir\" -Recurse",
" Remove-Item -Path \"$env:USERPROFILE\\Documents\\Xenia\" -Recurse",
" }",
"}"
],
"bin": "xenia_canary.exe",
"shortcuts": [
[
"xenia_canary.exe",
"Xenia Canary"
]
],
"persist": [
"portable.txt",
"xenia-canary.config.toml",
"content",
"cache",
"patches"
],
"checkver": {
"url": "https://github.com/xenia-canary/xenia-canary/releases.atom",
"script": [
"$xml = [xml]$page",
"$updated = ($xml.feed.entry | Where-Object {$_.title -ne 'canary_experimental'} | Sort-Object -Descending { $_.updated })[0].updated",
"$title = ($xml.feed.entry | Where-Object {$_.title -ne 'canary_experimental'} | Sort-Object -Descending { $_.updated })[0].title",
"Write-Output \"$updated $title\""
],
"regex": "(?<year>\\d{4})-(?<month>\\d{2})-(?<day>\\d{2})T(?<hour>\\d{2}):(?<minute>\\d{2}):(?<second>\\d{2})Z (?<commit>[a-f0-9]+)_canary_experimental",
"replace": "${year}${month}${day}${hour}${minute}${second}-${commit}"
},
"autoupdate": {
"url": "https://github.com/xenia-canary/xenia-canary/releases/download/$matchCommit/xenia_canary.zip"
}
}