summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BattleNET/.gitignore2
-rw-r--r--BattleNET/README.md3
-rwxr-xr-xBattleNET/env7
-rwxr-xr-xBattleNET/run5
-rwxr-xr-xBattleNET/setup5
5 files changed, 22 insertions, 0 deletions
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