忽略 config.dart

pull/1/head
张萌 3 years ago
parent 052302c2a6
commit 1f2854181c

@ -16,17 +16,11 @@ buildApk() async {
String date = DateUtil.formatDate(DateTime.now(), format: 'yy_MM_dd_HH_mm');
String version = await getVersion();
await runAsync('rmdir', arguments: ['-f', Config.apkDir]);
await runAsync('mkdir', arguments: [ Config.apkDir]);
await runAsync('move', arguments: [
await runAsync('rm', arguments: ['-rf', Config.apkDir]);
await runAsync('mkdir', arguments: ['-p', Config.apkDir]);
await runAsync('mv', arguments: [
Config.buildPath,
'${Config.apkDir}\\${Config.packageName}_${version}_release_$date.apk'
]);
await runAsync('ren',arguments: [
'${Config.apkDir}\\app-release.apk',
'${Config.apkDir}\\${Config.packageName}_${version}_release_$date.apk',
'${Config.apkDir}/${Config.packageName}_${version}_release_$date.apk'
]);
}

@ -1,19 +0,0 @@
class Config {
///
static const String homeDir = '/users/zhangmeng';
///
static const String packageName = 'aku_new_community';
///
static String get buildPath =>
'./build/app/outputs/flutter-apk/app-release.apk';
///
static String get apkDevDir =>
'$homeDir/team/bee/aku_new_community_manager/dev';
///
static String get apkDir =>
'$homeDir/team/bee/aku_new_community_manager/release';
}
Loading…
Cancel
Save