mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
#97 fix
This commit is contained in:
12
make.dart
12
make.dart
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user