From 68d72029e3c3fdd263a2393db119f595562fdd63 Mon Sep 17 00:00:00 2001 From: donny Date: Mon, 14 Mar 2022 06:47:33 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'build-flutter.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-flutter.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 build-flutter.sh diff --git a/build-flutter.sh b/build-flutter.sh new file mode 100644 index 0000000..255c5fe --- /dev/null +++ b/build-flutter.sh @@ -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' + + + + + compileBitcode + + destination + export + method + development + signingStyle + automatic + stripSwiftSymbols + + teamID + 428HLCER82 + thinning + <none> + + + +EOF + +flutter build ipa --export-options-plist=ExportOptions.plist --analyze-size