migrate: fl_lib

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-09-21 11:01:41 +08:00
parent 90b88ed795
commit 50af289574
15 changed files with 51 additions and 49 deletions

View File

@@ -54,7 +54,7 @@ enum ShellFunc {
return '''
mkdir -p $scriptDir
cat > $scriptPath
chmod 744 $scriptPath
chmod 755 $scriptPath
''';
}

View File

@@ -306,11 +306,10 @@ class ServerProvider extends Provider {
_setServerState(s, ServerConn.connected);
final scriptRaw = ShellFunc.allScript(spi.custom?.cmds).uint8List;
try {
final (_, writeScriptResult) = await sv.client!.exec(
(session) async {
final scriptRaw = ShellFunc.allScript(spi.custom?.cmds).uint8List;
session.stdin.add(scriptRaw);
session.stdin.close();
},

View File

@@ -1,8 +1,8 @@
// This file is generated by fl_build. Do not edit.
// ignore_for_file: prefer_single_quotes
class BuildData {
abstract class BuildData {
static const String name = "ServerBox";
static const int build = 1076;
static const int build = 1091;
static const int script = 58;
}

View File

@@ -16,6 +16,7 @@ abstract final class GithubIds {
'Liloupar',
'dccif',
'mikropsoft',
'CakesTwix',
};
static const participants = <GhId>{

View File

@@ -127,7 +127,6 @@ class SettingStore extends PersistentStore {
/// Whether use system's primary color as the app's primary color
late final useSystemPrimaryColor = property('useSystemPrimaryColor', false);
/// Only valid on iOS / Android / Windows
late final useBioAuth = property('useBioAuth', false);