feat: prepare Zhinian desktop client for pilot release

This commit is contained in:
inman
2026-04-29 10:23:20 +08:00
parent f9361e686a
commit 47b83b79fc
149 changed files with 15341 additions and 3590 deletions

View File

@@ -19,11 +19,16 @@ if [ -x /opt/ClawX/clawx ]; then
ln -sf /opt/ClawX/clawx /usr/local/bin/clawx 2>/dev/null || true
fi
# Create symbolic link for openclaw CLI
# Create symbolic link for the app-managed openclaw CLI only when it will not
# overwrite a user-managed OpenClaw installation.
OPENCLAW_WRAPPER="/opt/ClawX/resources/cli/openclaw"
if [ -f "$OPENCLAW_WRAPPER" ]; then
chmod +x "$OPENCLAW_WRAPPER" 2>/dev/null || true
ln -sf "$OPENCLAW_WRAPPER" /usr/local/bin/openclaw 2>/dev/null || true
if [ ! -e /usr/local/bin/openclaw ] || [ "$(readlink /usr/local/bin/openclaw 2>/dev/null || true)" = "$OPENCLAW_WRAPPER" ]; then
ln -sf "$OPENCLAW_WRAPPER" /usr/local/bin/openclaw 2>/dev/null || true
else
echo "Keeping existing /usr/local/bin/openclaw; it is not managed by ClawX."
fi
fi
# Set chrome-sandbox permissions.

View File

@@ -6,7 +6,13 @@ set -e
# Remove symbolic links
rm -f /usr/local/bin/clawx 2>/dev/null || true
rm -f /usr/local/bin/openclaw 2>/dev/null || true
# Only remove the app-managed OpenClaw CLI wrapper. If the user had OpenClaw
# installed separately, leave their command and ~/.openclaw data untouched.
OPENCLAW_WRAPPER="/opt/ClawX/resources/cli/openclaw"
if [ "$(readlink /usr/local/bin/openclaw 2>/dev/null || true)" = "$OPENCLAW_WRAPPER" ]; then
rm -f /usr/local/bin/openclaw 2>/dev/null || true
fi
# Update desktop database
if command -v update-desktop-database &> /dev/null; then