Build script QoL update

- make.dart: Added an alias "apk" for "android"
- Prevent reading commit message s.t. commit counting will not malfunction on Windows
- build.gradle: Check key.properties and storeFile prior to building
- build.gradle: Do not specify abiFilters when --split-per-abi is specified via CLI
This commit is contained in:
PaperCube
2024-02-22 12:31:23 +00:00
parent 2993e1236a
commit 37dc1056c9
3 changed files with 15 additions and 6 deletions

View File

@@ -21,6 +21,7 @@ var regAppleMarketVer = RegExp(r'MARKETING_VERSION = .+');
const buildFuncs = {
'ios': flutterBuildIOS,
'android': flutterBuildAndroid,
'apk': flutterBuildAndroid,
'mac': flutterBuildMacOS,
'linux': flutterBuildLinux,
'win': flutterBuildWin,
@@ -29,7 +30,7 @@ const buildFuncs = {
int? build;
Future<void> getGitCommitCount() async {
final result = await Process.run('git', ['log', '--oneline']);
final result = await Process.run('git', ['log', '--format=format:%h']);
build = (result.stdout as String)
.split('\n')
.where((line) => line.isNotEmpty)
@@ -42,7 +43,7 @@ Future<int> getScriptCommitCount() async {
exit(1);
}
final result =
await Process.run('git', ['log', '--oneline', shellScriptPath]);
await Process.run('git', ['log', '--format=format:%h', shellScriptPath]);
return (result.stdout as String)
.split('\n')
.where((line) => line.isNotEmpty)