Skip to content

CI:自动构建 macOS / Windows 桌面端安装包 - #7

Merged
Lowen-0621 merged 1 commit into
mainfrom
ci/release-builds
Jun 28, 2026
Merged

CI:自动构建 macOS / Windows 桌面端安装包#7
Lowen-0621 merged 1 commit into
mainfrom
ci/release-builds

Conversation

@Lowen-0621

Copy link
Copy Markdown
Owner

概述

新增 release workflow,推送 v* tag 时自动在 macOS / Windows runner 上构建 Flutter 桌面端,打包上传到对应 GitHub Release。

解决本机(macOS)无法构建 Windows 包的限制——交给 GitHub Actions 的跨平台 runner。

改动

  • 新增 .github/workflows/release.yml
    • build-macos:macos-latest 构建 → ditto 打包 .appLowenSSH-macos.zip
    • build-windows:windows-latest 构建 → Compress-Archive 打包为 LowenSSH-windows.zip
    • 两者用 softprops/action-gh-release 上传到触发的 tag 对应 Release

使用

合并后,重新发一个 tag(或删除重推 v0.1.0)即可触发构建,产物自动挂到 Release。

测试

workflow 改动,需推 tag 后在 Actions 实际验证。

🤖 Generated with Claude Code

推送 v* tag 时,在 macOS / Windows runner 上分别构建 Flutter 桌面端,
打包成 zip 后自动上传到对应 GitHub Release。
解决本机(macOS)无法构建 Windows 包的限制。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Lowen-0621
Lowen-0621 merged commit f7f7cad into main Jun 28, 2026
3 checks passed
@Lowen-0621
Lowen-0621 deleted the ci/release-builds branch June 28, 2026 09:05
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