From 5574d63986d98ddca883fd94e492e768c54023e9 Mon Sep 17 00:00:00 2001 From: Oleg Date: Wed, 4 Sep 2024 13:03:21 +0300 Subject: [PATCH] fix release script --- scripts/release.dart | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/scripts/release.dart b/scripts/release.dart index 9a83a63..e4a5bb1 100644 --- a/scripts/release.dart +++ b/scripts/release.dart @@ -5,6 +5,7 @@ import 'version.dart'; void main(List args) async { await updatePubspecVersion(); + await makeCodeGeneration(); await buildIosApp(); await pushIosAppToTestFlight(); } @@ -12,7 +13,29 @@ void main(List args) async { Future buildIosApp() async { final result = await Process.start( 'flutter', - ['build', 'ipa'], + [ + 'build', + 'ipa', + '--dart-define-from-file=env.json', + ], + runInShell: true, + ); + + result.stdout.transform(const Utf8Decoder()).listen((data) { + print(data); + }); + + result.stderr.transform(const Utf8Decoder()).listen((data) { + print(data); + }); + + print(await result.exitCode); +} + +Future makeCodeGeneration() async { + final result = await Process.start( + 'make', + ['generate'], runInShell: true, );