tauri/examples/resources
2022-02-18 10:39:10 -03:00
..
src-tauri chore(deps): update to wry v0.13.2 (#3503) 2022-02-18 10:39:10 -03:00
index.html refactor(examples): improve security when rendering HTML strings [TRI-003] (#14) 2022-01-09 14:35:30 -03:00
package.json refactor(cli): rename tooling/cli.rs folder to tooling/cli (#3388) 2022-02-10 17:23:10 -03:00
README.md docs(examples): add missing Readme and clarify existing (#3327) 2022-02-04 17:56:57 -03:00

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 > tauri > bundle > resources) and executes it using Node.js, locating the JavaScript file using the tauri::api::path::resolve_path API.

To execute run the following on the root directory of the repository: cargo run --example resources.