This commit is contained in:
lollipopkit
2023-03-18 00:09:24 +08:00
parent 350d248776
commit 3f3240040a
14 changed files with 27 additions and 14 deletions

View File

@@ -158,7 +158,7 @@ class ServerProvider extends BusyProvider {
// after connected
s.cs = ServerState.connected;
final writeResult = await s.client!
.run("echo '$shellCmd' > $shellPath && chmod +x $shellPath")
.run(installShellCmd)
.string;
// if write failed

View File

@@ -3,7 +3,8 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 233;
static const String engine = "Flutter 3.7.7 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 2ad6cd72c0 (7 days ago) • 2023-03-08 09:41:59 -0800\nEngine • revision 1837b5be5f\nTools • Dart 2.19.4 • DevTools 2.20.1\n";
static const String engine =
"Flutter 3.7.7 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 2ad6cd72c0 (7 days ago) • 2023-03-08 09:41:59 -0800\nEngine • revision 1837b5be5f\nTools • Dart 2.19.4 • DevTools 2.20.1\n";
static const String buildAt = "2023-03-15 23:00:21.075300";
static const int modifications = 2;
}

View File

@@ -1,7 +1,10 @@
import 'build_data.dart';
const seperator = 'SrvBox';
const shellPath = '.serverbox.sh';
const serverBoxDir = r'$HOME/.config/server_box';
const shellPath = '$serverBoxDir/mobile_app.sh';
const installShellCmd =
"mkdir -p $serverBoxDir && echo '$shellCmd' > $shellPath && chmod +x $shellPath";
const shellCmd = """
# Script for app `${BuildData.name}`

View File

@@ -1,5 +0,0 @@
import 'package:flutter/widgets.dart';
const height13 = SizedBox(height: 13);
const width13 = SizedBox(width: 13);
const width7 = SizedBox(width: 7);

View File

@@ -17,3 +17,9 @@ final appIcon = Image.asset('assets/app_icon.png');
/// Padding
const roundRectCardPadding = EdgeInsets.symmetric(horizontal: 17, vertical: 13);
/// SizedBox
const height13 = SizedBox(height: 13);
const width13 = SizedBox(width: 13);
const width7 = SizedBox(width: 7);