Created
June 13, 2025 03:31
-
-
Save matthewjberger/b61f33ac224c05a2c63796ff3a90746d to your computer and use it in GitHub Desktop.
broguece scoop installer from https://github.com/Calinou/scoop-games/pull/288
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.10", | |
"description": "A community-lead fork of the much-loved minimalist roguelike game, Brogue", | |
"homepage": "https://github.com/tmewett/BrogueCE", | |
"license": "AGPL-3.0", | |
"pre_install": "if (!(Test-Path \"$persist_dir\")) { New-Item -Path \"$persist_dir\" -ItemType Directory | Out-Null }", | |
"architecture": { | |
"64bit": { | |
"url": "https://github.com/tmewett/BrogueCE/releases/download/v1.10/BrogueCE-1.10-windows-x86_64.zip", | |
"hash": "f8a3f1e9eb8dd8fef2a7543e38d6f2edfafc65f5bd295008a4677e413b382235" | |
} | |
}, | |
"extract_dir": "BrogueCE-windows", | |
"uninstaller": { | |
"script": "Remove-Item -Path \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\BrogueCE.lnk\"" | |
}, | |
"##": [ | |
"This post_install is a workaround until brogueCE gets proper userdata directory support.", | |
"Check For assets dir, if present remove and replace it. (Lines 21 & 22)", | |
"Check for brogueCE shortcut, execute the following if it does not exist. (23)", | |
"Create the brogueCE shortcut, with the working directory set to $persist_dir, so user data ends up in $persist_dir. (24-30)" | |
], | |
"post_install": [ | |
"if ((Test-Path \"$persist_dir\\assets\")) { Remove-Item -Path \"$persist_dir\\assets\" -Recurse }", | |
"Copy-Item -Path \"$dir\\assets\" -Destination \"$persist_dir\" -Recurse", | |
"if (!(Test-Path \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\BrogueCE.lnk\")) {", | |
" $Shell = New-Object -ComObject (\"WScript.Shell\")", | |
" $ShortCut = $Shell.CreateShortcut(\"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Scoop Apps\\BrogueCE.lnk\")", | |
" $ShortCut.TargetPath=\"$dir\\brogue.exe\"", | |
" $ShortCut.WorkingDirectory = \"$persist_dir\"", | |
" $ShortCut.WindowStyle = 1", | |
" $ShortCut.IconLocation = \"$dir\\brogue.exe, 0\"", | |
" $ShortCut.Save()", | |
"}" | |
], | |
"checkver": "github", | |
"autoupdate": { | |
"url": "https://github.com/tmewett/BrogueCE/releases/download/v1.10/BrogueCE-$version-windows-x86_64.zip" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment