Skip to content

Commit

Permalink
opentyrian2000: Install game data automatically, fix persistence (#1175)
Browse files Browse the repository at this point in the history
The game data is freeware and can therefore be downloaded and installed automatically.
  • Loading branch information
mundifex authored Jul 5, 2024
1 parent 67781cd commit 0a2026f
Showing 1 changed file with 36 additions and 12 deletions.
48 changes: 36 additions & 12 deletions bucket/opentyrian2000.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,54 @@
"description": "Fork of OpenTyrian with support for Tyrian 2000",
"homepage": "https://github.com/KScl/opentyrian2000",
"license": "GPL-2.0-or-later",
"notes": [
"Place Tyrian 2000 game data files in:",
"",
" $persist_dir\\data"
],
"architecture": {
"32bit": {
"url": "https://github.com/KScl/opentyrian2000/releases/download/v2000.20240218/opentyrian2000-x86-Release.zip",
"hash": "f5b0384cad2ff5d97a965f7dfcde76695d2b1953ffd99b95978ad856046ded63"
"url": [
"https://github.com/KScl/opentyrian2000/releases/download/v2000.20240218/opentyrian2000-x86-Release.zip",
"https://www.camanis.net/tyrian/tyrian2000.zip"
],
"hash": [
"f5b0384cad2ff5d97a965f7dfcde76695d2b1953ffd99b95978ad856046ded63",
"348bc76e73514e452279b8730cf217daf0f70a282f07b6b94af653d87e921667"
]
},
"64bit": {
"url": "https://github.com/KScl/opentyrian2000/releases/download/v2000.20240218/opentyrian2000-x64-Release.zip",
"hash": "dc806e7678a40eb74ee2e2267aa5ecdf7b9af4455533d9d2e223698f6cbfa72d"
"url": [
"https://github.com/KScl/opentyrian2000/releases/download/v2000.20240218/opentyrian2000-x64-Release.zip",
"https://www.camanis.net/tyrian/tyrian2000.zip"
],
"hash": [
"dc806e7678a40eb74ee2e2267aa5ecdf7b9af4455533d9d2e223698f6cbfa72d",
"348bc76e73514e452279b8730cf217daf0f70a282f07b6b94af653d87e921667"
]
}
},
"extract_dir": "opentyrian2000",
"extract_dir": [
"opentyrian2000",
"tyrian2000"
],
"extract_to": [
"",
"data"
],
"pre_install": [
"Copy-Item \"$persist_dir\\opentyrian.cfg\" \"$dir\\opentyrian.cfg\" -ErrorAction 'SilentlyContinue'",
"Copy-Item \"$persist_dir\\tyrian.cfg\" \"$dir\\tyrian.cfg\" -ErrorAction 'SilentlyContinue'",
"Copy-Item \"$persist_dir\\tyrian.sav\" \"$dir\\tyrian.sav\" -ErrorAction 'SilentlyContinue'"
],
"shortcuts": [
[
"opentyrian2000.exe",
"OpenTyrian2000"
]
],
"persist": [
"data"
"pre_uninstall": [
"if (!(Test-Path \"$persist_dir\")) {",
" New-item \"$persist_dir\" -ItemType Directory | Out-Null",
"}",
"Copy-Item \"$dir\\opentyrian.cfg\" \"$persist_dir\\opentyrian.cfg\" -ErrorAction 'SilentlyContinue'",
"Copy-Item \"$dir\\tyrian.cfg\" \"$persist_dir\\tyrian.cfg\" -ErrorAction 'SilentlyContinue'",
"Copy-Item \"$dir\\tyrian.sav\" \"$persist_dir\\tyrian.sav\" -ErrorAction 'SilentlyContinue'"
],
"checkver": "github",
"autoupdate": {
Expand Down

0 comments on commit 0a2026f

Please sign in to comment.