From 4de95e7a7c3d0a89e31704cf29f4cbfe14312bd9 Mon Sep 17 00:00:00 2001 From: Hunter Jozwiak Date: Thu, 6 Nov 2025 13:14:34 -0500 Subject: [PATCH] For games that need it, install the Discord bridge. --- .includes/bottle.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.includes/bottle.sh b/.includes/bottle.sh index e88f3a4..6ce4556 100644 --- a/.includes/bottle.sh +++ b/.includes/bottle.sh @@ -183,3 +183,14 @@ add_launcher() { fi fi } +# Install the Discord RPC bridge +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 + # the package is on the system, but not extracted just yet. + unzip bridge.zip + fi + + wine "${cache}/bridge.exe" --install +}