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