mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 07:44:26 +01:00
new: pull to refresh on server tab
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user