From eb9e433070269cd8f57686625818afa2563db552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=B3ricz=20Gerg=C5=91?= Date: Sat, 27 May 2023 15:15:22 +0200 Subject: [PATCH] add build-ipa.sh --- filcnaplo/build-ipa.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 filcnaplo/build-ipa.sh diff --git a/filcnaplo/build-ipa.sh b/filcnaplo/build-ipa.sh new file mode 100644 index 0000000..4ce4fd3 --- /dev/null +++ b/filcnaplo/build-ipa.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env fish + +# With build number +function get_version_bn + cat pubspec.yaml | grep version: | cut -d' ' -f2 +end + +function get_version + cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1 +end + +flutter build ipa --release --dart-define=APPVER=(get_version) --no-tree-shake-icons