new: pull to refresh on server tab

This commit is contained in:
lollipopkit
2023-02-17 15:55:34 +08:00
parent 1aac166c43
commit 99aa0fc1f5
12 changed files with 46 additions and 25 deletions

View File

@@ -90,7 +90,7 @@ Future<void> updateBuildData() async {
Future<void> dartFormat() async {
final result = await fvmRun(['dart', 'format', '.']);
print('\n${result.stdout}');
print(result.stdout);
if (result.exitCode != 0) {
print(result.stderr);
exit(1);
@@ -183,8 +183,8 @@ void main(List<String> args) async {
switch (command) {
case 'build':
final stopwatch = Stopwatch()..start();
build = await getGitCommitCount();
await dartFormat();
build = await getGitCommitCount();
await updateBuildData();
await changeAppleVersion();
if (args.length > 1) {
@@ -192,7 +192,7 @@ void main(List<String> args) async {
for (final platform in platforms.split(',')) {
if (buildFuncs.keys.contains(platform)) {
await buildFuncs[platform]!();
print('Build finished in ${stopwatch.elapsed}');
print('Build finished in [${stopwatch.elapsed}]');
stopwatch.reset();
stopwatch.start();
} else {