From 2b6a265b74ddfd37288e889635050ab2677fd2a4 Mon Sep 17 00:00:00 2001 From: zontreck Date: Wed, 22 May 2024 16:13:19 -0700 Subject: [PATCH] Create a entry point for server --- bin/server.dart | 7 +++++++ compile.bat | 1 - compile.sh | 4 ++-- run_hive_generator.bat | 5 ----- run_hive_generator.sh | 5 ----- 5 files changed, 9 insertions(+), 13 deletions(-) create mode 100644 bin/server.dart delete mode 100644 run_hive_generator.bat delete mode 100755 run_hive_generator.sh diff --git a/bin/server.dart b/bin/server.dart new file mode 100644 index 0000000..0cd9a23 --- /dev/null +++ b/bin/server.dart @@ -0,0 +1,7 @@ +import 'package:libac_flutter/packets/packets.dart'; + +void main() async { + await PacketServer.start(); + + print("Server stopping"); +} diff --git a/compile.bat b/compile.bat index 49df5e6..0836b2f 100644 --- a/compile.bat +++ b/compile.bat @@ -1,4 +1,3 @@ @echo off -call run_hive_generator.bat call flutter build windows \ No newline at end of file diff --git a/compile.sh b/compile.sh index 75ba3d4..6385e5b 100755 --- a/compile.sh +++ b/compile.sh @@ -1,4 +1,4 @@ #!/bin/bash -./run_hive_generator.sh -flutter build linux \ No newline at end of file +flutter build linux +dart build \ No newline at end of file diff --git a/run_hive_generator.bat b/run_hive_generator.bat deleted file mode 100644 index 0f4a56b..0000000 --- a/run_hive_generator.bat +++ /dev/null @@ -1,5 +0,0 @@ -@echo off - - -call flutter doctor -call dart run build_runner build \ No newline at end of file diff --git a/run_hive_generator.sh b/run_hive_generator.sh deleted file mode 100755 index 021ee71..0000000 --- a/run_hive_generator.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -flutter doctor - -dart run build_runner build \ No newline at end of file