feat: add desktop app hot update channel

This commit is contained in:
mac
2026-07-15 18:01:56 +08:00
parent 2dc15d99ad
commit 322807c68d
45 changed files with 292746 additions and 10 deletions
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

+49
View File
@@ -0,0 +1,49 @@
#!/bin/bash
# 双击本文件即可修复 macOS「已损坏,移到废纸篓」——去掉隔离标记(quarantine)。
# 只需运行一次。原理:本应用为免费分发、未做 Apple 公证,被系统加了隔离标记。
APP_NAME="Codex 插件市场.app"
echo "==================================================="
echo " 修复 macOS「已损坏」提示 —— Codex 插件市场"
echo "==================================================="
echo
# 依次在常见位置查找已安装的 app
CANDIDATES=(
"/Applications/$APP_NAME"
"$HOME/Applications/$APP_NAME"
"$(cd "$(dirname "$0")" && pwd)/$APP_NAME" # 脚本旁边(DMG 内)
)
TARGET=""
for p in "${CANDIDATES[@]}"; do
if [ -d "$p" ]; then TARGET="$p"; break; fi
done
if [ -z "$TARGET" ]; then
echo "❌ 没找到「$APP_NAME」。"
echo " 请先把 app 拖到「应用程序」文件夹,再双击本脚本。"
echo
read -n 1 -s -r -p "按任意键关闭…"
exit 1
fi
echo "找到应用:$TARGET"
echo "正在去除隔离标记…"
if xattr -cr "$TARGET" 2>/dev/null; then
echo "✅ 完成!现在可以正常双击打开「$APP_NAME」了。"
else
echo "普通权限失败,尝试用管理员权限(可能需要输入开机密码)…"
if sudo xattr -cr "$TARGET"; then
echo "✅ 完成!现在可以正常双击打开了。"
else
echo "❌ 仍失败。请手动在终端执行:"
echo " sudo xattr -cr \"$TARGET\""
fi
fi
echo
read -n 1 -s -r -p "按任意键关闭…"
echo
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 322 KiB