Skip to content

Commit

Permalink
bin: rename apk renamer script
Browse files Browse the repository at this point in the history
  • Loading branch information
nullxception committed Jun 10, 2023
1 parent 0a6fe68 commit 260e6fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bin/rename_release_apk.dart → bin/renameapks.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//
// Script for renaming apks for release purposes
//
// ignore_for_file: avoid_print

import 'dart:developer';
import 'dart:io';

import 'package:path/path.dart' as path;
Expand Down Expand Up @@ -43,7 +43,7 @@ Future<void> _renameOutputApks(
final toPath = path.normalize(path.join(outDir, to));
final apk = File(fromPath);
if (apk.existsSync()) {
print(':: Renaming $from to $to');
log(':: Renaming $from to $to');
await apk.rename(toPath);
}
}
Expand Down
6 changes: 1 addition & 5 deletions tool/grind.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,5 @@ void test() {}
@Depends(gencode, genlang)
Future<void> release() async {
await fun(['build', 'apk', '--split-per-abi']);
await Pub.runAsync(
'boorusphere',
script: 'rename_release_apk',
runOptions: utf8Opt,
);
await Pub.runAsync('boorusphere', script: 'renameapks', runOptions: utf8Opt);
}

0 comments on commit 260e6fc

Please sign in to comment.