Make ipfs gateway configurable. Update help flag.

This commit is contained in:
Storm Dragon 2024-01-19 11:26:30 -05:00
parent 69914107d2
commit c7d94629ed

View File

@ -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/"