Add Battle.net installer via Lutris

This commit is contained in:
David Heinemeier Hansson
2026-05-03 22:53:34 +02:00
parent 25701813c9
commit 42034a950f
5 changed files with 56 additions and 21 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
# omarchy:summary=Install Battle.net via Lutris (Wine + DXVK handled by the Lutris install recipe)
# omarchy:requires-sudo=true
set -e
omarchy-pkg-add lutris wine-staging wine-mono wine-gecko winetricks python-protobuf
omarchy-install-vulkan-lib32
omarchy-install-nvidia-lib32
# Lutris ships with `#!/usr/bin/env python3`, which resolves to mise's Python and
# fails to import the lutris module. Pin the shebang to the system Python.
sudo sed -i '/env python3/ c\#!/bin/python3' /usr/bin/lutris
echo ""
echo "Lutris will open the Battle.net installer. Click Install and follow the prompts."
setsid lutris lutris:install/battlenet >/dev/null 2>&1 &