Dropbox links no longer require the get_installer function.

This commit is contained in:
Storm Dragon 2022-10-30 14:45:08 -04:00
parent ee1f9d2891
commit 802e5d9285

View File

@ -320,6 +320,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%\?*}"
# 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
if [[ "${redownload}" == "true" ]] && [[ -e "${cache}/${dest}" ]]; then if [[ "${redownload}" == "true" ]] && [[ -e "${cache}/${dest}" ]]; then
@ -1739,8 +1740,7 @@ case "${game}" in
"Coin Collector") "Coin Collector")
export WINEARCH=win64 export WINEARCH=win64
export winVer="win7" export winVer="win7"
get_installer "coin collector.rar" "https://www.dropbox.com/s/v55q7t9n84otmcd/coin%20collector.rar?dl=1" download "https://www.dropbox.com/s/v55q7t9n84otmcd/coin%20collector.rar?dl=1" "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll"
download "https://github.com/RastislavKish/nvda2speechd/releases/download/v0.1/nvda2speechd64.dll"
install_wine_bottle install_wine_bottle
unrar x "$cache/coin collector.rar" -op"$WINEPREFIX/drive_c/Program Files" unrar x "$cache/coin collector.rar" -op"$WINEPREFIX/drive_c/Program Files"
find "$WINEPREFIX/drive_c/Program Files/coin collector" -type f -name "nvdaControllerClient64.dll" -exec cp -v "$cache/nvda2speechd64.dll" "{}" \; find "$WINEPREFIX/drive_c/Program Files/coin collector" -type f -name "nvdaControllerClient64.dll" -exec cp -v "$cache/nvda2speechd64.dll" "{}" \;