From 925180e2dcb2b95cb2777a75e1491499c0d69936 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Fri, 5 Apr 2024 16:40:12 -0500 Subject: Add rust Signed-off-by: Matt Strapp --- clients/www/package.json | 2 +- clients/www/src-tauri/.gitignore | 3 + clients/www/src-tauri/Cargo.toml | 26 +++++++++ clients/www/src-tauri/build.rs | 3 + clients/www/src-tauri/icons/128x128.png | Bin 0 -> 19051 bytes clients/www/src-tauri/icons/128x128@2x.png | Bin 0 -> 60404 bytes clients/www/src-tauri/icons/32x32.png | Bin 0 -> 2460 bytes clients/www/src-tauri/icons/Square107x107Logo.png | Bin 0 -> 14066 bytes clients/www/src-tauri/icons/Square142x142Logo.png | Bin 0 -> 22800 bytes clients/www/src-tauri/icons/Square150x150Logo.png | Bin 0 -> 24992 bytes clients/www/src-tauri/icons/Square284x284Logo.png | Bin 0 -> 71207 bytes clients/www/src-tauri/icons/Square30x30Logo.png | Bin 0 -> 2330 bytes clients/www/src-tauri/icons/Square310x310Logo.png | Bin 0 -> 81804 bytes clients/www/src-tauri/icons/Square44x44Logo.png | Bin 0 -> 3899 bytes clients/www/src-tauri/icons/Square71x71Logo.png | Bin 0 -> 7563 bytes clients/www/src-tauri/icons/Square89x89Logo.png | Bin 0 -> 10320 bytes clients/www/src-tauri/icons/StoreLogo.png | Bin 0 -> 4609 bytes clients/www/src-tauri/icons/icon.icns | Bin 0 -> 951142 bytes clients/www/src-tauri/icons/icon.ico | Bin 0 -> 76415 bytes clients/www/src-tauri/icons/icon.png | Bin 0 -> 171843 bytes clients/www/src-tauri/src/main.rs | 8 +++ clients/www/src-tauri/tauri.conf.json | 66 ++++++++++++++++++++++ clients/www/static/font/ZeldaOracles.woff2 | Bin 0 -> 6460 bytes clients/www/static/img/favicon (Custom).png | Bin 0 -> 213853 bytes clients/www/static/img/favicon.png | Bin 17774 -> 36238 bytes clients/www/static/img/pwa-192x192.png | Bin 36317 -> 35407 bytes clients/www/vite.config.ts | 4 +- 27 files changed, 109 insertions(+), 3 deletions(-) create mode 100644 clients/www/src-tauri/.gitignore create mode 100644 clients/www/src-tauri/Cargo.toml create mode 100644 clients/www/src-tauri/build.rs create mode 100644 clients/www/src-tauri/icons/128x128.png create mode 100644 clients/www/src-tauri/icons/128x128@2x.png create mode 100644 clients/www/src-tauri/icons/32x32.png create mode 100644 clients/www/src-tauri/icons/Square107x107Logo.png create mode 100644 clients/www/src-tauri/icons/Square142x142Logo.png create mode 100644 clients/www/src-tauri/icons/Square150x150Logo.png create mode 100644 clients/www/src-tauri/icons/Square284x284Logo.png create mode 100644 clients/www/src-tauri/icons/Square30x30Logo.png create mode 100644 clients/www/src-tauri/icons/Square310x310Logo.png create mode 100644 clients/www/src-tauri/icons/Square44x44Logo.png create mode 100644 clients/www/src-tauri/icons/Square71x71Logo.png create mode 100644 clients/www/src-tauri/icons/Square89x89Logo.png create mode 100644 clients/www/src-tauri/icons/StoreLogo.png create mode 100644 clients/www/src-tauri/icons/icon.icns create mode 100644 clients/www/src-tauri/icons/icon.ico create mode 100644 clients/www/src-tauri/icons/icon.png create mode 100644 clients/www/src-tauri/src/main.rs create mode 100644 clients/www/src-tauri/tauri.conf.json create mode 100644 clients/www/static/font/ZeldaOracles.woff2 create mode 100644 clients/www/static/img/favicon (Custom).png (limited to 'clients') diff --git a/clients/www/package.json b/clients/www/package.json index 63678cd..ae00942 100644 --- a/clients/www/package.json +++ b/clients/www/package.json @@ -6,7 +6,7 @@ "license": "MIT", "scripts": { "dev": "vite dev", - "build": "vite build && cp .svelte-kit/output/server/sw.js.map .svelte-kit/output/server/workbox-*.map build/", + "build": "vite build", "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", diff --git a/clients/www/src-tauri/.gitignore b/clients/www/src-tauri/.gitignore new file mode 100644 index 0000000..aba21e2 --- /dev/null +++ b/clients/www/src-tauri/.gitignore @@ -0,0 +1,3 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ diff --git a/clients/www/src-tauri/Cargo.toml b/clients/www/src-tauri/Cargo.toml new file mode 100644 index 0000000..70db707 --- /dev/null +++ b/clients/www/src-tauri/Cargo.toml @@ -0,0 +1,26 @@ +[package] +name = "app" +version = "0.1.0" +description = "A Tauri App" +authors = ["you"] +license = "" +repository = "" +default-run = "app" +edition = "2021" +rust-version = "1.60" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[build-dependencies] +tauri-build = { version = "1.5.1", features = [] } + +[dependencies] +serde_json = "1.0" +serde = { version = "1.0", features = ["derive"] } +tauri = { version = "1.6.1", features = [] } + +[features] +# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled. +# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes. +# DO NOT REMOVE!! +custom-protocol = [ "tauri/custom-protocol" ] diff --git a/clients/www/src-tauri/build.rs b/clients/www/src-tauri/build.rs new file mode 100644 index 0000000..795b9b7 --- /dev/null +++ b/clients/www/src-tauri/build.rs @@ -0,0 +1,3 @@ +fn main() { + tauri_build::build() +} diff --git a/clients/www/src-tauri/icons/128x128.png b/clients/www/src-tauri/icons/128x128.png new file mode 100644 index 0000000..8c4c97f Binary files /dev/null and b/clients/www/src-tauri/icons/128x128.png differ diff --git a/clients/www/src-tauri/icons/128x128@2x.png b/clients/www/src-tauri/icons/128x128@2x.png new file mode 100644 index 0000000..b286aeb Binary files /dev/null and b/clients/www/src-tauri/icons/128x128@2x.png differ diff --git a/clients/www/src-tauri/icons/32x32.png b/clients/www/src-tauri/icons/32x32.png new file mode 100644 index 0000000..4beac50 Binary files /dev/null and b/clients/www/src-tauri/icons/32x32.png differ diff --git a/clients/www/src-tauri/icons/Square107x107Logo.png b/clients/www/src-tauri/icons/Square107x107Logo.png new file mode 100644 index 0000000..2413270 Binary files /dev/null and b/clients/www/src-tauri/icons/Square107x107Logo.png differ diff --git a/clients/www/src-tauri/icons/Square142x142Logo.png b/clients/www/src-tauri/icons/Square142x142Logo.png new file mode 100644 index 0000000..de9f5c5 Binary files /dev/null and b/clients/www/src-tauri/icons/Square142x142Logo.png differ diff --git a/clients/www/src-tauri/icons/Square150x150Logo.png b/clients/www/src-tauri/icons/Square150x150Logo.png new file mode 100644 index 0000000..fe22cb2 Binary files /dev/null and b/clients/www/src-tauri/icons/Square150x150Logo.png differ diff --git a/clients/www/src-tauri/icons/Square284x284Logo.png b/clients/www/src-tauri/icons/Square284x284Logo.png new file mode 100644 index 0000000..cfe18ea Binary files /dev/null and b/clients/www/src-tauri/icons/Square284x284Logo.png differ diff --git a/clients/www/src-tauri/icons/Square30x30Logo.png b/clients/www/src-tauri/icons/Square30x30Logo.png new file mode 100644 index 0000000..28cc9c9 Binary files /dev/null and b/clients/www/src-tauri/icons/Square30x30Logo.png differ diff --git a/clients/www/src-tauri/icons/Square310x310Logo.png b/clients/www/src-tauri/icons/Square310x310Logo.png new file mode 100644 index 0000000..b898e37 Binary files /dev/null and b/clients/www/src-tauri/icons/Square310x310Logo.png differ diff --git a/clients/www/src-tauri/icons/Square44x44Logo.png b/clients/www/src-tauri/icons/Square44x44Logo.png new file mode 100644 index 0000000..959a52b Binary files /dev/null and b/clients/www/src-tauri/icons/Square44x44Logo.png differ diff --git a/clients/www/src-tauri/icons/Square71x71Logo.png b/clients/www/src-tauri/icons/Square71x71Logo.png new file mode 100644 index 0000000..2a24711 Binary files /dev/null and b/clients/www/src-tauri/icons/Square71x71Logo.png differ diff --git a/clients/www/src-tauri/icons/Square89x89Logo.png b/clients/www/src-tauri/icons/Square89x89Logo.png new file mode 100644 index 0000000..8057e3a Binary files /dev/null and b/clients/www/src-tauri/icons/Square89x89Logo.png differ diff --git a/clients/www/src-tauri/icons/StoreLogo.png b/clients/www/src-tauri/icons/StoreLogo.png new file mode 100644 index 0000000..4ca0243 Binary files /dev/null and b/clients/www/src-tauri/icons/StoreLogo.png differ diff --git a/clients/www/src-tauri/icons/icon.icns b/clients/www/src-tauri/icons/icon.icns new file mode 100644 index 0000000..71ba99b Binary files /dev/null and b/clients/www/src-tauri/icons/icon.icns differ diff --git a/clients/www/src-tauri/icons/icon.ico b/clients/www/src-tauri/icons/icon.ico new file mode 100644 index 0000000..7643815 Binary files /dev/null and b/clients/www/src-tauri/icons/icon.ico differ diff --git a/clients/www/src-tauri/icons/icon.png b/clients/www/src-tauri/icons/icon.png new file mode 100644 index 0000000..8276154 Binary files /dev/null and b/clients/www/src-tauri/icons/icon.png differ diff --git a/clients/www/src-tauri/src/main.rs b/clients/www/src-tauri/src/main.rs new file mode 100644 index 0000000..f5c5be2 --- /dev/null +++ b/clients/www/src-tauri/src/main.rs @@ -0,0 +1,8 @@ +// Prevents additional console window on Windows in release, DO NOT REMOVE!! +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] + +fn main() { + tauri::Builder::default() + .run(tauri::generate_context!()) + .expect("error while running tauri application"); +} diff --git a/clients/www/src-tauri/tauri.conf.json b/clients/www/src-tauri/tauri.conf.json new file mode 100644 index 0000000..24cb318 --- /dev/null +++ b/clients/www/src-tauri/tauri.conf.json @@ -0,0 +1,66 @@ +{ + "$schema": "../../../node_modules/@tauri-apps/cli/schema.json", + "build": { + "beforeBuildCommand": "pnpm run build", + "beforeDevCommand": "pnpm run dev", + "devPath": "http://localhost:5173", + "distDir": "../build" + }, + "package": { + "productName": "zorascript", + "version": "0.1.0" + }, + "tauri": { + "allowlist": { + "all": false + }, + "bundle": { + "active": true, + "category": "DeveloperTool", + "copyright": "", + "deb": { + "depends": [] + }, + "externalBin": [], + "icon": [ + "icons/32x32.png", + "icons/128x128.png", + "icons/128x128@2x.png", + "icons/icon.icns", + "icons/icon.ico" + ], + "identifier": "io.github.rosstheross.zorascript", + "longDescription": "", + "macOS": { + "entitlements": null, + "exceptionDomain": "", + "frameworks": [], + "providerShortName": null, + "signingIdentity": null + }, + "resources": [], + "shortDescription": "", + "targets": "all", + "windows": { + "certificateThumbprint": null, + "digestAlgorithm": "sha256", + "timestampUrl": "" + } + }, + "security": { + "csp": null + }, + "updater": { + "active": false + }, + "windows": [ + { + "fullscreen": false, + "height": 600, + "resizable": true, + "title": "Zorascript", + "width": 800 + } + ] + } +} diff --git a/clients/www/static/font/ZeldaOracles.woff2 b/clients/www/static/font/ZeldaOracles.woff2 new file mode 100644 index 0000000..5dc300c Binary files /dev/null and b/clients/www/static/font/ZeldaOracles.woff2 differ diff --git a/clients/www/static/img/favicon (Custom).png b/clients/www/static/img/favicon (Custom).png new file mode 100644 index 0000000..64dfd1e Binary files /dev/null and b/clients/www/static/img/favicon (Custom).png differ diff --git a/clients/www/static/img/favicon.png b/clients/www/static/img/favicon.png index d4307cd..dc855a8 100644 Binary files a/clients/www/static/img/favicon.png and b/clients/www/static/img/favicon.png differ diff --git a/clients/www/static/img/pwa-192x192.png b/clients/www/static/img/pwa-192x192.png index d7fcf17..9f06844 100644 Binary files a/clients/www/static/img/pwa-192x192.png and b/clients/www/static/img/pwa-192x192.png differ diff --git a/clients/www/vite.config.ts b/clients/www/vite.config.ts index bd89f2f..6fbadb8 100644 --- a/clients/www/vite.config.ts +++ b/clients/www/vite.config.ts @@ -5,10 +5,10 @@ import { SvelteKitPWA } from '@vite-pwa/sveltekit'; export default defineConfig({ build: { - sourcemap: true + // sourcemap: true }, css: { - devSourcemap: false + devSourcemap: true }, plugins: [ sveltekit(), -- cgit v1.2.3