opt: auto rm pwd in key page for safe

This commit is contained in:
lollipopkit
2023-02-21 17:12:01 +08:00
parent e423e56152
commit 2986f80f89
6 changed files with 26 additions and 24 deletions

View File

@@ -28,9 +28,9 @@ Future<ProcessResult> fvmRun(List<String> args) async {
return await Process.run('fvm', args, runInShell: true);
}
Future<int> getGitCommitCount() async {
Future<void> getGitCommitCount() async {
final result = await Process.run('git', ['log', '--oneline']);
return (result.stdout as String)
build = (result.stdout as String)
.split('\n')
.where((line) => line.isNotEmpty)
.length;
@@ -184,9 +184,9 @@ void main(List<String> args) async {
case 'build':
final stopwatch = Stopwatch()..start();
await dartFormat();
build = await getGitCommitCount();
await updateBuildData();
await getGitCommitCount();
await changeAppleVersion();
await updateBuildData();
if (args.length > 1) {
final platforms = args[1];
for (final platform in platforms.split(',')) {