CI:自动构建 macOS / Windows 桌面端安装包 - #7
Merged
Merged
Conversation
推送 v* tag 时,在 macOS / Windows runner 上分别构建 Flutter 桌面端, 打包成 zip 后自动上传到对应 GitHub Release。 解决本机(macOS)无法构建 Windows 包的限制。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
新增 release workflow,推送
v*tag 时自动在 macOS / Windows runner 上构建 Flutter 桌面端,打包上传到对应 GitHub Release。解决本机(macOS)无法构建 Windows 包的限制——交给 GitHub Actions 的跨平台 runner。
改动
.github/workflows/release.yml:build-macos:macos-latest 构建 →ditto打包.app为LowenSSH-macos.zipbuild-windows:windows-latest 构建 →Compress-Archive打包为LowenSSH-windows.zipsoftprops/action-gh-release上传到触发的 tag 对应 Release使用
合并后,重新发一个 tag(或删除重推 v0.1.0)即可触发构建,产物自动挂到 Release。
测试
workflow 改动,需推 tag 后在 Actions 实际验证。
🤖 Generated with Claude Code