添加 'build-flutter.sh'
parent
0e330d96ce
commit
68d72029e3
|
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh
|
||||
# Build windows
|
||||
# Build web
|
||||
flutter build web --analyze-size
|
||||
# Build android
|
||||
flutter build apk --target-platform android-arm64 --analyze-size
|
||||
# Build macos
|
||||
flutter build macos --analyze-size
|
||||
# Build ios
|
||||
tee ./ExportOptions.plist <<-'EOF'
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>compileBitcode</key>
|
||||
<true/>
|
||||
<key>destination</key>
|
||||
<string>export</string>
|
||||
<key>method</key>
|
||||
<string>development</string>
|
||||
<key>signingStyle</key>
|
||||
<string>automatic</string>
|
||||
<key>stripSwiftSymbols</key>
|
||||
<true/>
|
||||
<key>teamID</key>
|
||||
<string>428HLCER82</string>
|
||||
<key>thinning</key>
|
||||
<string><none></string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
EOF
|
||||
|
||||
flutter build ipa --export-options-plist=ExportOptions.plist --analyze-size
|
||||
Loading…
Reference in New Issue