feat: add macOS (DMG) build support#8
Open
fengcunhan wants to merge 1 commit intoMemeCalculate:mainfrom
Open
Conversation
- Add mac target with DMG format for x64 and arm64 architectures - Set identity: null to skip code signing (can be enabled later with proper certs) - Add build:mac npm script for easy macOS builds - Use ELECTRON_MIRROR for faster electron binary downloads in China To build macOS package: ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/" npm run build:mac
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.
变更说明
本 PR 为项目添加了 macOS 平台的构建支持。
变更内容
electron-builder.ymlmac构建目标,输出格式为 DMGx64(Intel)和arm64(Apple Silicon)两种架构identity: null跳过代码签名(分发时可配置 Apple Developer 证书开启)package.jsonbuild:mac脚本,方便在 macOS 环境下一键构建构建方法
在 macOS 系统上执行:
ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/" npm run build:mac构建产物位于
release/moyin-creator-{version}-mac.dmg。注意事项
CSC_LINK和CSC_KEY_PASSWORD环境变量并移除identity: null