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 +}