Create a tester executable
This commit is contained in:
parent
f5acee7b56
commit
baf8904408
3 changed files with 22 additions and 1 deletions
19
bin/testAbsolutePath.dart
Normal file
19
bin/testAbsolutePath.dart
Normal file
|
@ -0,0 +1,19 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:servermanager/structs/settings.dart';
|
||||
|
||||
Future<int> main(String[] args) async {
|
||||
|
||||
Settings.makeAbsoluteSettingsPath();
|
||||
print("Server data absolute path: ${Settings.ABSOLUTE_PATH}");
|
||||
|
||||
Directory data = Directory("data");
|
||||
if(!data.existsSync()) data..createSync();
|
||||
|
||||
Directory.current = data;
|
||||
|
||||
Settings.makeAbsoluteSettingsPath();
|
||||
print("New absolute path: ${Settings.ABSOLUTE_PATH}");
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -3,4 +3,5 @@
|
|||
call flutter pub get
|
||||
call flutter build windows
|
||||
mkdir out
|
||||
call dart compile exe -o out\cemmserver.exe bin\server.dart
|
||||
call dart compile exe -o out\cemmserver.exe bin\server.dart
|
||||
call dart compile exe -o out\testpaths.exe bin\testAbsolutePath.dart
|
|
@ -15,6 +15,7 @@ fi
|
|||
|
||||
|
||||
dart compile exe -o out/cemmserver bin/server.dart
|
||||
dart compile exe -o out/testpaths bin/testAbsolutePath.dart
|
||||
rsync -a --progress -h --delete build/linux/x64/release/bundle/ out/client/
|
||||
|
||||
if [ -f RELEASE ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue