This commit is contained in:
lollipopkit
2023-08-05 21:15:29 +08:00
parent 4b7397de46
commit 7431de094f
6 changed files with 40 additions and 27 deletions

View File

@@ -146,9 +146,17 @@ Future<void> flutterBuildAndroid() async {
}
Future<void> scp2CDN() async {
print('scp2CDN...');
print('scp2CDN? (Y/n)');
final str = stdin.readLineSync() ?? '';
if (str.isNotEmpty) {
print('skip scp2CDN');
return;
}
final result = await Process.run(
'scp', [apkPath, 'hk:/var/www/res/serverbox/apks/$build.apk']);
'scp',
[apkPath, 'hk:/var/www/res/serverbox/apks/$build.apk'],
runInShell: true,
);
print(result.stdout);
if (result.exitCode != 0) {
print(result.stderr);