feat: AOT 单文件静态链接 + Release 引导脚本

- csproj 静态链接 Skia/HarfBuzz/ANGLE(CoreUtils.*.Static),AOT 产出真单文件
- 发布后清理 .dll/.lib/.pdb,只留 notify.exe
- bin/notify.cmd 与 notify.sh:首次运行从 Release 下载 notify.exe
  原子下载(临时文件+改名)+ mkdir 锁,并发不重复下载,带陈旧锁恢复
- 修复 cmd 引导脚本管道 stdin 丢失:避免调 exe 前向前 goto,改用 call 子程序
- hooks.json 指向 notify.cmd,超时放宽以容纳首次下载
- .gitignore 放行两个脚本但忽略 notify.exe;.gitattributes 固定脚本换行符
This commit is contained in:
2026-06-22 17:35:57 +08:00
Unverified
parent 79992680c9
commit 0de6fe4064
6 changed files with 133 additions and 10 deletions
+10 -10
View File
@@ -6,8 +6,8 @@
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/bin/notify.exe save",
"timeout": 5
"command": "${CLAUDE_PLUGIN_ROOT}/bin/notify.cmd save",
"timeout": 30
}
]
}
@@ -18,8 +18,8 @@
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/bin/notify.exe input",
"timeout": 10
"command": "${CLAUDE_PLUGIN_ROOT}/bin/notify.cmd input",
"timeout": 30
}
]
}
@@ -30,8 +30,8 @@
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/bin/notify.exe input",
"timeout": 10
"command": "${CLAUDE_PLUGIN_ROOT}/bin/notify.cmd input",
"timeout": 30
}
]
}
@@ -42,8 +42,8 @@
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/bin/notify.exe notify",
"timeout": 10
"command": "${CLAUDE_PLUGIN_ROOT}/bin/notify.cmd notify",
"timeout": 30
}
]
}
@@ -54,8 +54,8 @@
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/bin/notify.exe cleanup",
"timeout": 5
"command": "${CLAUDE_PLUGIN_ROOT}/bin/notify.cmd cleanup",
"timeout": 10
}
]
}