diff --git a/assets/shop_page_head_bg.png b/assets/shop_page_head_bg.png deleted file mode 100644 index 38c6bf1..0000000 Binary files a/assets/shop_page_head_bg.png and /dev/null differ diff --git a/assets/shop_page_head_card_silver.png b/assets/shop_page_head_card_silver.png deleted file mode 100644 index 7b03007..0000000 Binary files a/assets/shop_page_head_card_silver.png and /dev/null differ diff --git a/assets/shop_page_head_card_vip.png b/assets/shop_page_head_card_vip.png deleted file mode 100644 index d0b268c..0000000 Binary files a/assets/shop_page_head_card_vip.png and /dev/null differ diff --git a/assets/static/shop_bg.png b/assets/static/shop_bg.png deleted file mode 100644 index 0a5f4da..0000000 Binary files a/assets/static/shop_bg.png and /dev/null differ diff --git a/tool/grind.dart b/tool/grind.dart index a3f5307..870c69f 100644 --- a/tool/grind.dart +++ b/tool/grind.dart @@ -1,5 +1,6 @@ import 'dart:async'; import 'dart:io'; +import 'package:common_utils/common_utils.dart'; import 'package:grinder/grinder.dart'; import 'config.dart'; @@ -39,12 +40,21 @@ Future buildApk() async { @Task() Future buildDev() async { + TaskArgs args = context.invocation.arguments; + String input = args.getOption('type') ?? 'dev'; + stdout.write("Build Dev APK 📦\n"); stdout.write("BUILDINGAPK\n"); await Process.start('flutter', ['build', 'apk']).then((proc) async { await stdout.addStream(proc.stdout); await stderr.addStream(proc.stderr); }); + String date = DateUtil.formatDate(DateTime.now(), format: 'yyyy.MM.dd_HH_mm'); + await Process.run('cp', [ + Config.buildPath, + '${Config.downloadPath}/builds/${Config.packageName}_$input\_$date\.apk' + ]); + await Process.run('open', ['${Config.downloadPath}/builds']); } ///签名