mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-10-28 19:14:38 +08:00
* `cargo fix --edition`
* update editions
* `cargo fmt`
* revert drop orders change from `cargo fix --edition`
* resolver v3
* fix audit
* implicit readme links
* update schemars to 0.8.22
* clippy
* remove redundant unsafe
* revert to 2021 fmt to keep the changes small
* move all expr to 2024
* Revert "clippy"
This reverts commit 671cd0caa1.
* minor clippy fixes
* Setup workspace lints and ignore `collapsible_if`
* unsafe set var for mac
* revert all format changes (hopefully)
* more unsafe set var
* `no_mangle` is now unsafe
* Bump schemars fork
* rename `gen`s
* audit unsafe env var modifications
* revert more formatting diffs
* Add change file
* edition 2024 notice
* fix bench warnings
Resource example
This example demonstrates the Tauri bundle resources functionality. The example adds src-tauri/assets/index.js as a resource (defined on tauri.conf.json > bundle > resources) and executes it using Node.js, locating the JavaScript file using the tauri::App::path_resolver APIs.
Running the example
- Compile Tauri go to root of the Tauri repo and run: Linux / Mac:
# choose to install node cli (1)
bash .scripts/setup.sh
Windows:
./.scripts/setup.ps1
- Install dependencies (Run inside of this folder
examples/resources/)
$ pnpm i
- Run the app in development mode (Run inside of this folder
examples/resources/)
$ pnpm tauri dev
- Build an run the release app (Run inside of this folder
examples/resources/)
$ pnpm tauri build
$ ./src-tauri/target/release/app