From 73126910ec7865961e18a179329f4444d4415fa0 Mon Sep 17 00:00:00 2001 From: Hunter Jozwiak Date: Sun, 9 Nov 2025 12:54:57 -0500 Subject: [PATCH] Disable Blades of Glory for now. There is a technical limitation where pypresence is trying to enumerate the available pipes in \\?\pipe\ but this is crashing because Wine doesn't properly support enumerating the \\?\pipe\ namespace. This causes pypresence to crash when trying to discover Discord IPC pipes. --- .includes/bottle.sh | 19 ++++++++++++++++--- .install/Blades of Glory.sh | 1 + 2 files changed, 17 insertions(+), 3 deletions(-) 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"