Make Battle.net launcher installer-only

This commit is contained in:
David Heinemeier Hansson
2026-06-24 13:31:17 +02:00
parent 1db2323fd9
commit 267af23efc
4 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ EOF
fi fi
mkdir -p "$HOME/.local/share/applications" mkdir -p "$HOME/.local/share/applications"
install -m 644 "$OMARCHY_PATH/applications/battlenet.desktop" \ install -m 644 "$OMARCHY_PATH/default/applications/battlenet.desktop" \
"$HOME/.local/share/applications/battlenet.desktop" "$HOME/.local/share/applications/battlenet.desktop"
update-desktop-database "$HOME/.local/share/applications" 2>/dev/null || true update-desktop-database "$HOME/.local/share/applications" 2>/dev/null || true
+3
View File
@@ -75,6 +75,9 @@ etc/fastfetch/config.jsonc ──► omarchy-settings /etc/fastfetch/con
applications/*.desktop ──► omarchy-settings /etc/skel/.local/share/applications/ applications/*.desktop ──► omarchy-settings /etc/skel/.local/share/applications/
/usr/share/omarchy/applications/ /usr/share/omarchy/applications/
default/applications/battlenet.desktop
──► omarchy-settings /usr/share/omarchy/default/applications/
(installer-only launcher template)
applications/icons/* ──► omarchy-settings /usr/share/icons/hicolor/{48,256,scalable}/apps/ applications/icons/* ──► omarchy-settings /usr/share/icons/hicolor/{48,256,scalable}/apps/
etc/** ──► omarchy-settings /etc/** (drop-ins we own outright) etc/** ──► omarchy-settings /etc/** (drop-ins we own outright)
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
set -euo pipefail
source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh"
install_script="$ROOT/bin/omarchy-install-gaming-battlenet"
[[ ! -f $ROOT/applications/battlenet.desktop ]] || fail "Battle.net launcher is not part of default application refresh"
[[ -f $ROOT/default/applications/battlenet.desktop ]] || fail "Battle.net launcher template is available to the installer"
grep -F '$OMARCHY_PATH/default/applications/battlenet.desktop' "$install_script" >/dev/null ||
fail "Battle.net installer installs the launcher from the installer-only template"
pass "Battle.net launcher is only installed by the Battle.net installer"