合并测试 #350

Closed
z2_cc wants to merge 1 commits from z2_cc/gitlink-cli:fix/windows-npm-install into master
First-time contributor
No description provided.
z2_cc added 1 commit 2026-07-07 16:25:12 +08:00
29d202c6da fix(npm): Windows 安装后二进制缺失,所有命令静默退出
问题:Windows 用户 npm install 后 gitlink-cli 无任何输出。

根因:
1. release.yml 不构建 Windows 二进制(只有 darwin/linux)
2. workflow 内联了旧版 install.js(从 github.com/ccfos 下载、只处理 .tar.gz)
3. cli.js 不检查二进制是否存在,execFileSync 失败时静默退出

修复:
- release.yml: 加入 windows amd64/arm64 构建,输出 .zip;
  删除内联 fallback 脚本,始终使用 npm/ 目录下的文件
- npm/bin/cli.js: 加 fs.existsSync 检查,缺失时输出明确错误和修复指引
- npm/scripts/install.js: 加 GitHub fallback 下载源
- scripts/install.js: 加 Windows 支持(.exe 后缀、.zip 解压、GitHub fallback)

Closes #16
z2_cc closed this pull request 2026-07-07 16:25:29 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Gitlink/gitlink-cli#350
No description provided.