mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 07:44:26 +01:00
opt.: loading dialog
This commit is contained in:
@@ -306,10 +306,13 @@ class ServerProvider extends ChangeNotifier {
|
||||
// Write script to server
|
||||
// by ssh
|
||||
try {
|
||||
await s.client?.runForOutput(ShellFunc.installShellCmd,
|
||||
action: (session) async {
|
||||
session.stdin.add(ShellFunc.allScript.uint8List);
|
||||
}).string;
|
||||
await s.client?.runForOutput(
|
||||
ShellFunc.installShellCmd,
|
||||
action: (session) async {
|
||||
session.stdin.add(ShellFunc.allScript.uint8List);
|
||||
session.stdin.close();
|
||||
},
|
||||
);
|
||||
} on SSHAuthAbortError catch (e) {
|
||||
TryLimiter.inc(sid);
|
||||
s.status.err = e.toString();
|
||||
@@ -387,7 +390,7 @@ class ServerProvider extends ChangeNotifier {
|
||||
if (!systemType.isSegmentsLenMatch(segments.length)) {
|
||||
TryLimiter.inc(sid);
|
||||
s.status.err =
|
||||
'Segments not match: expect ${systemType.segmentsLen}, got ${segments.length}';
|
||||
'Segments not match: expect ${systemType.segmentsLen}, got ${segments.length}, raw:\n\n$raw';
|
||||
_setServerState(s, ServerState.failed);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 775;
|
||||
static const String engine = "3.19.0";
|
||||
static const String buildAt = "2024-02-23 09:28:28";
|
||||
static const int modifications = 2;
|
||||
static const int script = 38;
|
||||
static const int build = 778;
|
||||
static const String engine = "3.19.1";
|
||||
static const String buildAt = "2024-02-26 16:30:57";
|
||||
static const int modifications = 6;
|
||||
static const int script = 40;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user