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 backendwww
: Web frontendbuild.ts
: Script to build your frontendbundle.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
...
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 selectTerminal
and below enable the switchFinder
.