#33 new: upload file to sftp from file picker

This commit is contained in:
lollipopkit
2023-06-02 21:51:39 +08:00
parent f0bf95a7d2
commit 8c25b5e60b
24 changed files with 258 additions and 174 deletions

View File

@@ -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 {