From 4e826bb9aea8daa53e8a4f13bcca60cef85b5715 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 19 Jan 2024 03:15:19 -0500 Subject: [PATCH] First go with ipfs for file download. --- audiogame-manager.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index a812308..a1111a4 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -282,6 +282,7 @@ download() { for i in "${source[@]}" ; do local dest="${i##*/}" dest="${dest//%20/ }" + dest="${dest#*\?filename=}" dest="${dest%\?*}" # Remove the destination file if it is empty. test -s "${cache}/${dest}" || rm -f "${cache}/${dest}" 2> /dev/null @@ -1809,7 +1810,7 @@ download "https://erion.cf/files/ag_103.zip" add_launcher "c:\Program Files\blind-drive\Blind Drive.exe" ;; "Bloodshed") - download "http://www.samtupy.com/games/bloodshed.exe" + download "https://gateway.pinata.cloud/ipfs/QmcTCTMep4zp5zTw8ZaXYpjtu9inNPn8bNzwhW6cX97egw?filename=bloodshed.exe" export winVer="win7" install_wine_bottle speechsdk cp "${cache}/bloodshed.exe" "$WINEPREFIX/drive_c/Program Files/"