feat: split ClaudeAlt into independent package

This commit is contained in:
Александр
2026-07-25 01:18:17 +10:00
parent 1801be3549
commit f3af93802f
14 changed files with 361 additions and 256 deletions
+12 -1
View File
@@ -2,10 +2,12 @@
set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
launcher="${repo_root}/claude-desktop/claude-alt"
launcher="${repo_root}/claude-alt/claude-alt"
icon="${repo_root}/claude-desktop/claude-alt.png"
primary_tray_icon="${repo_root}/claude-desktop/claude-tray-orange.png"
alternate_tray_icon="${repo_root}/claude-desktop/claude-alt-tray-turquoise.png"
primary_recipe="${repo_root}/claude-desktop/Staplerfile"
alternate_recipe="${repo_root}/claude-alt/Staplerfile"
temp_dir="$(mktemp -d)"
cleanup() {
@@ -14,6 +16,15 @@ cleanup() {
}
trap cleanup EXIT
if grep -Eq '/usr/lib/claude-alt|com\\.anthropic\\.ClaudeAlt|claude-alt\\.png' \
"$primary_recipe"; then
echo 'claude-desktop must not ship ClaudeAlt files' >&2
exit 1
fi
grep -Fq 'python3 patch-asar.py' "$alternate_recipe"
grep -Fq 'com.anthropic.ClaudeAlt.desktop' "$alternate_recipe"
python3 -m py_compile "${repo_root}/claude-alt/patch-asar.py"
mkdir -p "${temp_dir}/bin" "${temp_dir}/home"
log="${temp_dir}/launch.log"