添加 macOS 构建支持并为 macOS 平台启用系统标题栏#17
Merged
LHGS-github merged 5 commits intoNamePickerOrg:masterfrom Dec 14, 2025
Merged
Conversation
添加Linux deb打包步骤,自动从pubspec.yaml获取版本号并生成deb包 添加macOS Intel和ARM架构的构建及打包流程,分别生成x64和arm64的zip包
调整macOS平台标题栏样式为normal以适配系统原生外观,非macOS平台保持hidden样式 添加iOS和macOS的Podfile配置及依赖,更新项目文件以支持CocoaPods集成
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.
变更概述
具体改动
TitleBarStyle.normal,显示系统 TitleBar 与系统控制按钮TitleBarStyle.hiddenCustomTitleBar:build_macos_intel(runs-on: macos-13)与build_macos_arm(runs-on: macos-14)subosito/flutter-action@v2设置 Flutter stable 渠道,执行flutter pub get与flutter build macos --releaseditto将.app压缩为 zip 并上传为制品,分别命名:NamePicker-macOS-x64(Intel)NamePicker-macOS-arm64(Apple Silicon)代码引用
namepicker/lib/main.dart:28-32namepicker/lib/main.dart:252namepicker/macos/Runner/MainFlutterWindow.swift:4-15/.github/workflows/build.yml:91-124(macOS x64)/.github/workflows/build.yml:125-157(macOS arm64)兼容性与影响
CustomTitleBar不再渲染设计说明
Platform.isMacOS做平台分支,避免与window_manager.startDragging()的手势冲突已知事项与后续建议
TitleBarStyle.hiddenInset并配合NSWindow样式调整;当前按需求选择了系统 TitleBar.dmg或.pkg清单