mirror of
https://github.com/Cheviiot/Nivora.git
synced 2026-08-03 15:51:12 +00:00
feat: split ClaudeAlt into independent package
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user