mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-23 02:32:28 +03:00
0876bbbb57
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> |
||
---|---|---|
.. | ||
src-tauri | ||
index.html | ||
package.json | ||
README.md |
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
.