mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-02 22:34:58 +01:00
opt.: android only arm64 & ssh tab page
This commit is contained in:
@@ -33,8 +33,7 @@ enum ShellFunc {
|
||||
|
||||
/// Issue #168
|
||||
/// Use `sh` for compatibility
|
||||
static final installShellCmd =
|
||||
"""
|
||||
static final installShellCmd = """
|
||||
mkdir -p $_homeVar/$_srvBoxDir
|
||||
cat << 'EOF' > $_installShellPath
|
||||
${ShellFunc.allScript}
|
||||
@@ -135,8 +134,7 @@ fi''';
|
||||
|
||||
static final String allScript = () {
|
||||
final sb = StringBuffer();
|
||||
sb.write(
|
||||
'''
|
||||
sb.write('''
|
||||
#!/bin/sh
|
||||
# Script for ServerBox app v1.0.${BuildData.build}
|
||||
# DO NOT delete this file while app is running
|
||||
@@ -155,8 +153,7 @@ userId=\$(id -u)
|
||||
''');
|
||||
// Write each func
|
||||
for (final func in values) {
|
||||
sb.write(
|
||||
'''
|
||||
sb.write('''
|
||||
${func.name}() {
|
||||
${func._cmd.split('\n').map((e) => '\t$e').join('\n')}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 649;
|
||||
static const int build = 653;
|
||||
static const String engine = "3.16.0";
|
||||
static const String buildAt = "2023-11-23 22:29:30";
|
||||
static const int modifications = 11;
|
||||
static const int script = 29;
|
||||
static const String buildAt = "2023-11-27 19:18:56";
|
||||
static const int modifications = 3;
|
||||
static const int script = 30;
|
||||
}
|
||||
|
||||
@@ -226,7 +226,7 @@ class SettingStore extends PersistentStore {
|
||||
|
||||
/// Server func btns display name
|
||||
late final serverFuncBtnsDisplayName =
|
||||
StoreProperty(box, 'serverFuncBtnsDisplayName', true);
|
||||
StoreProperty(box, 'serverFuncBtnsDisplayName', false);
|
||||
|
||||
// Never show these settings for users
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user