summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Cargo.toml17
-rw-r--r--app/Tauri.toml19
-rw-r--r--app/build.rs3
-rw-r--r--app/icons/icon.pngbin0 -> 14183 bytes
-rw-r--r--app/src/lib.rs7
-rw-r--r--app/src/main.rs5
6 files changed, 51 insertions, 0 deletions
diff --git a/app/Cargo.toml b/app/Cargo.toml
new file mode 100644
index 0000000..45b24b1
--- /dev/null
+++ b/app/Cargo.toml
@@ -0,0 +1,17 @@
+[package]
+name = "foxfleet"
+version = "0.1.0"
+edition = "2021"
+
+[lib]
+name = "foxfleet_applib"
+crate-type = ["staticlib", "cdylib", "rlib"]
+
+[build-dependencies]
+tauri-build = { version = "2", features = [] }
+
+[dependencies]
+tauri = { version = "2", features = ["config-toml"] }
+tauri-plugin-opener = "2"
+serde = { version = "1", features = ["derive"] }
+serde_json = "1"
diff --git a/app/Tauri.toml b/app/Tauri.toml
new file mode 100644
index 0000000..ad2aa7f
--- /dev/null
+++ b/app/Tauri.toml
@@ -0,0 +1,19 @@
+identifier = "foxfleet"
+
+[build]
+dev-url = "http://localhost:5173"
+frontend-dist = "../ui/dist/"
+
+before-dev-command.cwd = "../ui/"
+before-dev-command.script = "npx vite"
+
+before-build-command.cwd = "../ui/"
+before-build-command.script = "npx vite build"
+
+[[app.windows]]
+title = "Foxfleet"
+width = 800
+height = 600
+
+[bundle]
+active = true
diff --git a/app/build.rs b/app/build.rs
new file mode 100644
index 0000000..d860e1e
--- /dev/null
+++ b/app/build.rs
@@ -0,0 +1,3 @@
+fn main() {
+    tauri_build::build()
+}
diff --git a/app/icons/icon.png b/app/icons/icon.png
new file mode 100644
index 0000000..e1cd261
--- /dev/null
+++ b/app/icons/icon.png
Binary files differdiff --git a/app/src/lib.rs b/app/src/lib.rs
new file mode 100644
index 0000000..9a3e3a1
--- /dev/null
+++ b/app/src/lib.rs
@@ -0,0 +1,7 @@
+#[cfg_attr(mobile, tauri::mobile_entry_point)]
+pub fn run() {
+    tauri::Builder::default()
+        .plugin(tauri_plugin_opener::init())
+        .run(tauri::generate_context!())
+        .expect("Error starting")
+}
diff --git a/app/src/main.rs b/app/src/main.rs
new file mode 100644
index 0000000..948a42b
--- /dev/null
+++ b/app/src/main.rs
@@ -0,0 +1,5 @@
+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
+
+fn main() {
+    foxfleet_applib::run()
+}