virtuoushub / deno-model-synthesisaurus

Tauri - bundling the frontend made with React using Deno with esbuild.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deno 🦕 + Tauri

Starter template for Tauri, bundling the frontend made with React using Deno with esbuild.

You can use TypeScript or JavaScript. With React or any other library, or just vanilla, with no extra steps.

  • src-tauri: Rust backend
  • www: Web frontend
  • build.ts: Script to build your frontend
  • bundle.ts: Script to bundle your frontend while developing

Prerequisites:


cargo install tauri-cli

Development:

cargo tauri dev

Building:

cargo tauri build

Formatting:

deno fmt www
cargo fmt

Linting:

deno lint www
cargo clippy

deno bench > "bench/deno_bench_$(date +'%s').log" --allow-sys=hostname
deno test  --allow-sys=hostname

gotchas

Error failed to bundle project: error running bundle_dmg.sh

...
    Finished release [optimized] target(s) in 2m 04s
    Bundling tauri-deno-starter.app (/Users/pc/dev/code/tauri-playground/deno-model-synthesisaurus/src-tauri/target/release/bundle/macos/tauri-deno-starter.app)
    Bundling tauri-deno-starter_0.1.0_x64.dmg (/Users/pc/dev/code/tauri-playground/deno-model-synthesisaurus/src-tauri/target/release/bundle/dmg/tauri-deno-starter_0.1.0_x64.dmg)
     Running bundle_dmg.sh
       Error failed to bundle project: error running bundle_dmg.sh
...

This worked for me on macOS Sonoma:

Give Terminal.app the permissions to control Finder.app: Go to System-Settings -> Privacy & Security -> Automation There select Terminal and below enable the switch Finder.


About

Tauri - bundling the frontend made with React using Deno with esbuild.


Languages

Language:TypeScript 82.9%Language:Rust 11.4%Language:HTML 5.6%