First go with ipfs for file download.

This commit is contained in:
Storm Dragon 2024-01-19 03:15:19 -05:00
parent 18128ad9f2
commit 4e826bb9ae

View File

@ -282,6 +282,7 @@ download() {
for i in "${source[@]}" ; do for i in "${source[@]}" ; do
local dest="${i##*/}" local dest="${i##*/}"
dest="${dest//%20/ }" dest="${dest//%20/ }"
dest="${dest#*\?filename=}"
dest="${dest%\?*}" dest="${dest%\?*}"
# Remove the destination file if it is empty. # Remove the destination file if it is empty.
test -s "${cache}/${dest}" || rm -f "${cache}/${dest}" 2> /dev/null 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" add_launcher "c:\Program Files\blind-drive\Blind Drive.exe"
;; ;;
"Bloodshed") "Bloodshed")
download "http://www.samtupy.com/games/bloodshed.exe" download "https://gateway.pinata.cloud/ipfs/QmcTCTMep4zp5zTw8ZaXYpjtu9inNPn8bNzwhW6cX97egw?filename=bloodshed.exe"
export winVer="win7" export winVer="win7"
install_wine_bottle speechsdk install_wine_bottle speechsdk
cp "${cache}/bloodshed.exe" "$WINEPREFIX/drive_c/Program Files/" cp "${cache}/bloodshed.exe" "$WINEPREFIX/drive_c/Program Files/"