pubspec 声明了 assets/drivers/ 目录资产,但 dmg 被 gitignore 后整目录都不在 仓库里——全新 clone(Windows 机器)构建即报 "unable to find directory entry in pubspec.yaml"。 修复:目录内提交 README.md 占位(随 git 保留目录),.gitignore 从忽略整目录 改为只忽略 assets/drivers/*.dmg。mac 打包机放 dmg 后行为不变;Windows 机器 目录为空可正常构建,向导自动降级为官网链接模式(bundledDmgPath 找不到 .dmg 返回 null 的降级路径已实现)。
48 lines
737 B
Plaintext
48 lines
737 B
Plaintext
# Miscellaneous
|
|
*.class
|
|
*.log
|
|
*.pyc
|
|
*.swp
|
|
.DS_Store
|
|
.atom/
|
|
.build/
|
|
.buildlog/
|
|
.history
|
|
.svn/
|
|
.swiftpm/
|
|
migrate_working_dir/
|
|
|
|
# IntelliJ related
|
|
*.iml
|
|
*.ipr
|
|
*.iws
|
|
.idea/
|
|
|
|
# The .vscode folder contains launch configuration and tasks you configure in
|
|
# VS Code which you may wish to be included in version control, so this line
|
|
# is commented out by default.
|
|
#.vscode/
|
|
|
|
# Flutter/Dart/Pub related
|
|
**/doc/api/
|
|
**/ios/Flutter/.last_build_id
|
|
.dart_tool/
|
|
.flutter-plugins
|
|
.flutter-plugins-dependencies
|
|
.pub-cache/
|
|
.pub/
|
|
/build/
|
|
|
|
# Symbolication related
|
|
app.*.symbols
|
|
|
|
# Obfuscation related
|
|
app.*.map.json
|
|
|
|
# Android Studio will place build artifacts here
|
|
/android/app/debug
|
|
/android/app/profile
|
|
/android/app/release
|
|
/dist/
|
|
assets/drivers/*.dmg
|