From c7d94629ed6ff7108e3d8cbe5de62f824fa6dee5 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 19 Jan 2024 11:26:30 -0500 Subject: [PATCH] Make ipfs gateway configurable. Update help flag. --- audiogame-manager.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 22eff58..785117e 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -463,6 +463,7 @@ help() { echo "${configFile%/*}/settings.conf" echo "The syntax is variable=\"value\"" echo + echo "ipfsGateway=\"https://gateway.pinata.cloud\" # Gateway to be used for ipfs downloads." echo "noCache=\"true\" # Do not keep downloaded items in the cache." echo "noqjoypad=\"true\" # Do not launch qjoypad." echo "norh=\"true\" # Do not install RHVoice." @@ -1051,6 +1052,8 @@ unset noCache # Manual installation is not default, make sure it's unset unset manualInstall unset version +# ipfs gateway +export ipfsGateway="${ipfsGateway:-https://gateway.pinata.cloud}" # The list of games available for installation. @@ -1810,7 +1813,7 @@ download "https://erion.cf/files/ag_103.zip" add_launcher "c:\Program Files\blind-drive\Blind Drive.exe" ;; "Bloodshed") - download "https://gateway.pinata.cloud/ipfs/QmcTCTMep4zp5zTw8ZaXYpjtu9inNPn8bNzwhW6cX97egw?filename=bloodshed.exe" + download "${ipfsGateway}/ipfs/QmcTCTMep4zp5zTw8ZaXYpjtu9inNPn8bNzwhW6cX97egw?filename=bloodshed.exe" export winVer="win7" install_wine_bottle speechsdk cp "${cache}/bloodshed.exe" "$WINEPREFIX/drive_c/Program Files/" @@ -1974,7 +1977,7 @@ download "https://erion.cf/files/ag_103.zip" "Christmas Chaos") export WINEARCH=win64 export winVer="win7" - download "https://gateway.pinata.cloud/ipfs/QmYx11vsMDBgjPd1coZPGHxMXf2qtf4icqmB3Q9iUazyQv?filename=ChristmasChaos.zip" "https://stormgames.wolfe.casa/downloads/Tolk.dll" + download "${ipfsGateway}/ipfs/QmYx11vsMDBgjPd1coZPGHxMXf2qtf4icqmB3Q9iUazyQv?filename=ChristmasChaos.zip" "https://stormgames.wolfe.casa/downloads/Tolk.dll" install_wine_bottle unzip -d "$WINEPREFIX/drive_c/Program Files" "${cache}/ChristmasChaos.zip" find "${WINEPREFIX}" -type f -name 'Tolk.dll' -exec cp -v "${cache}/Tolk.dll" "{}" \; @@ -2395,7 +2398,7 @@ EOF add_launcher "c:\Program Files\Lworks\Judgment Day\judgmentday.exe" ;; "Kitchensinc Games") - download "https://gateway.pinata.cloud/ipfs/QmdkLPig6Kp3AZTwKAhjrhhsEuvhFCFhm6SHLUQVeNNYCb?filename=kitchen.tar.xz" + download "${ipfsGateway}/ipfs/QmdkLPig6Kp3AZTwKAhjrhhsEuvhFCFhm6SHLUQVeNNYCb?filename=kitchen.tar.xz" install_wine_bottle vb6run speechsdk dx8vb echo "Extracting files..." tar xf "${cache}/kitchen.tar.xz" -C "$WINEPREFIX/drive_c/Program Files/"