Skip to content

feat: 添加 macOS 应用打包支持 - #98

Open
moyu12-ae wants to merge 1 commit into
hero8152:mainfrom
moyu12-ae:feature/macos-packaging
Open

feat: 添加 macOS 应用打包支持#98
moyu12-ae wants to merge 1 commit into
hero8152:mainfrom
moyu12-ae:feature/macos-packaging

Conversation

@moyu12-ae

Copy link
Copy Markdown

📋 变更说明

为 Infinite Canvas 添加 macOS 应用打包支持,用户可直接下载 .dmg 安装包使用。

✨ 新增内容

1. 本地打包脚本 build_mac.sh

  • 一键打包为 macOS .app 应用(基于 PyInstaller)
  • 自动安装依赖和 PyInstaller
  • 支持生成 DMG 安装包

2. GitHub Actions 自动构建

  • 自动构建 Intel (x86_64) 和 Apple Silicon (arm64) 两种架构
  • 创建 Release 时自动上传 DMG 安装包
  • 支持 workflow_dispatch 手动触发构建

📦 支持架构

架构 说明
x86_64 Intel Mac
arm64 Apple Silicon (M1/M2/M3/M4)

🚀 使用方式

方式一:下载 Release 安装包

  1. 前往 Releases 页面下载对应架构的 .dmg
  2. 双击安装,拖到 Applications 即可

方式二:本地构建

chmod +x build_mac.sh
./build_mac.sh

📝 备注

  • 首次运行可能提示无法验证开发者,右键打开即可
  • 当前未包含代码签名,如需发布 App Store 需额外配置

- 新增 build_mac.sh 本地打包脚本(PyInstaller)
- 新增 GitHub Actions 工作流,自动构建 Intel/Apple Silicon 双架构 DMG
- 创建 Release 时自动上传安装包
- 支持 workflow_dispatch 手动触发构建
- 新增 .gitignore 排除构建产物和敏感数据
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