mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
#33 new: upload file to sftp from file picker
This commit is contained in:
13
make.dart
13
make.dart
@@ -142,6 +142,19 @@ Future<void> flutterBuildMacOS() async {
|
||||
Future<void> flutterBuildAndroid() async {
|
||||
await flutterBuild('apk');
|
||||
await killJava();
|
||||
await scp2CDN();
|
||||
}
|
||||
|
||||
Future<void> scp2CDN() async {
|
||||
final result = await Process.run('scp', [
|
||||
apkPath,
|
||||
'custcdn:/usr/share/caddy/uploads/${appName}_${build}_Arm64.apk'
|
||||
]);
|
||||
print(result.stdout);
|
||||
if (result.exitCode != 0) {
|
||||
print(result.stderr);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> changeAppleVersion() async {
|
||||
|
||||
Reference in New Issue
Block a user