Skip to content

feat: 添加 Linux 构建支持 (AppImage)#65

Open
Mund99 wants to merge 1 commit intoqiuzhi2046:mainfrom
Mund99:feat/linux-build-target
Open

feat: 添加 Linux 构建支持 (AppImage)#65
Mund99 wants to merge 1 commit intoqiuzhi2046:mainfrom
Mund99:feat/linux-build-target

Conversation

@Mund99
Copy link
Copy Markdown

@Mund99 Mund99 commented Apr 2, 2026

关联 Issue

关闭 #62

变更说明

在 3 个文件中做了最小改动,实现 Linux AppImage 构建支持:

  • electron-builder.json — 新增 linux 配置块,目标格式 AppImage (x64)
  • package.json — 新增 package:linux 构建脚本
  • scripts/after-all-artifact-build.cjs — 为 codesign 验证添加 macOS 平台守卫(该工具在 Linux 上不存在)

forceCodeSigning 通过 package:linux 脚本中的 -c.forceCodeSigning=false 参数覆盖,Mac 构建流程不受任何影响。

测试

  • 在 Ubuntu 24.04 x64 上执行 npm run package:linux 构建成功
  • 生成 Qclaw-Lite_*.AppImage,可正常启动

🤖 Generated with Claude Code

- Add linux section to electron-builder.json with AppImage/x64 target
- Add package:linux script to package.json
- Guard codesign verification in after-all-artifact-build.cjs to macOS only

Fixes qiuzhi2046#62

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant