From 2a033b111b68541a0d63c5e6befd3769fe018663 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 18 Oct 2024 15:06:57 -0400 Subject: [PATCH] BattleNET --- BattleNET/.gitignore | 2 ++ BattleNET/README.md | 3 +++ BattleNET/env | 7 +++++++ BattleNET/run | 5 +++++ BattleNET/setup | 5 +++++ 5 files changed, 22 insertions(+) create mode 100644 BattleNET/.gitignore create mode 100644 BattleNET/README.md create mode 100755 BattleNET/env create mode 100755 BattleNET/run create mode 100755 BattleNET/setup diff --git a/BattleNET/.gitignore b/BattleNET/.gitignore new file mode 100644 index 0000000..391987f --- /dev/null +++ b/BattleNET/.gitignore @@ -0,0 +1,2 @@ +bin +wine diff --git a/BattleNET/README.md b/BattleNET/README.md new file mode 100644 index 0000000..852d1cf --- /dev/null +++ b/BattleNET/README.md @@ -0,0 +1,3 @@ +#### BattleNET + +Move the `Battle.net-Setup.exe` file into the `bin` directory and run `setup` diff --git a/BattleNET/env b/BattleNET/env new file mode 100755 index 0000000..2408b08 --- /dev/null +++ b/BattleNET/env @@ -0,0 +1,7 @@ +#!/bin/sh + +export STEAM_TEMP_DIR="$(pwd)/wine" +mkdir -p "$STEAM_TEMP_DIR" +export STEAM_COMPAT_DATA_PATH="$STEAM_TEMP_DIR" +export STEAM_COMPAT_CLIENT_INSTALL_PATH="$STEAM_TEMP_DIR" +export PROTON="$HOME/.local/share/Steam/steamapps/common/Proton - Experimental/proton" diff --git a/BattleNET/run b/BattleNET/run new file mode 100755 index 0000000..b6e8a0c --- /dev/null +++ b/BattleNET/run @@ -0,0 +1,5 @@ +#!/bin/sh + +source ./env + +"$PROTON" run "./wine/pfx/drive_c/Program Files (x86)/Battle.net/Battle.net.exe" diff --git a/BattleNET/setup b/BattleNET/setup new file mode 100755 index 0000000..eef65c2 --- /dev/null +++ b/BattleNET/setup @@ -0,0 +1,5 @@ +#!/bin/sh + +source ./env + +"$PROTON" run ./bin/Battle.net-Setup.exe