diff --git a/.includes/bottle.sh b/.includes/bottle.sh index 6ce4556..cedb6dd 100644 --- a/.includes/bottle.sh +++ b/.includes/bottle.sh @@ -187,10 +187,23 @@ add_launcher() { install_discord_rpc_bridge() { echo "Installing Discord RPC bridge for Wine compatibility..." download "https://github.com/EnderIce2/rpc-bridge/releases/download/v1.4.0.1/bridge.zip" - if [[ -f "${cache}/bridge.zip && ! -f "${cache}/bridge.exe ]]; then + if [[ -f "${cache}/bridge.zip" && ! -f "${cache}/bridge.exe" ]]; then # the package is on the system, but not extracted just yet. - unzip bridge.zip + unzip "${cache}/bridge.zip" -d "${cache}" fi - wine "${cache}/bridge.exe" --install + if [[ -f "${cache}/bridge.exe" ]]; then + wine "${cache}/bridge.exe" --install 2>&1 | grep -v "fixme:" || echo "Discord bridge installation attempted" + + # Copy required bridge.sh script to Wine prefix + if [[ -f "${cache}/bridge.sh" ]]; then + cp "${cache}/bridge.sh" "${WINEPREFIX}/drive_c/windows/" + echo "Copied bridge.sh to Wine prefix" + else + echo "WARNING: bridge.sh not found in cache!" + fi + else + echo "ERROR: bridge.exe not found after extraction!" + return 1 + fi } diff --git a/.install/Blades of Glory.sh b/.install/Blades of Glory.sh index 60a17f8..e339092 100644 --- a/.install/Blades of Glory.sh +++ b/.install/Blades of Glory.sh @@ -1,3 +1,4 @@ +#Disable download "https://nibblenerds.com/static/blades_of_glory.zip" install_wine_bottle install_with_progress unzip "Extracting game files..." -d "$WINEPREFIX/drive_c/Program Files/Blades of Glory" "${cache}/blades_of_glory.zip"