feat: 处理mac构建使用makefile

This commit is contained in:
2026-01-12 00:53:13 -08:00
parent e6ee3d6db8
commit 74f9acc225
2 changed files with 85 additions and 9 deletions
+6 -1
View File
@@ -188,7 +188,12 @@ linux-release:
flutter_distributor package --flutter-build-args=verbose --platform linux --targets deb,rpm,appimage $(DISTRIBUTOR_ARGS)
macos-release:
flutter_distributor package --platform macos --targets dmg $(DISTRIBUTOR_ARGS)
# 旧方法(已弃用):使用 flutter_distributor 打包
# flutter_distributor package --platform macos --targets dmg $(DISTRIBUTOR_ARGS)
# 新方法:使用签名、公证和自定义 DMG 打包脚本
@echo "执行签名、公证和 DMG 打包..."
flutter build macos --release --target $(TARGET) $(BUILD_ARGS)
./scripts/sign_and_notarize.sh
ios-release: #not tested
flutter_distributor package --platform ios --targets ipa --build-export-options-plist ios/exportOptions.plist $(DISTRIBUTOR_ARGS)