Skip to content

Commit

Permalink
fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
smart7even committed Sep 4, 2024
1 parent b1cd0e5 commit 5574d63
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion scripts/release.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,37 @@ import 'version.dart';

void main(List<String> args) async {
await updatePubspecVersion();
await makeCodeGeneration();
await buildIosApp();
await pushIosAppToTestFlight();
}

Future<void> 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<void> makeCodeGeneration() async {
final result = await Process.start(
'make',
['generate'],
runInShell: true,
);

Expand Down

0 comments on commit 5574d63

Please sign in to comment.