-
Hi! Have been following the documentation on how to embed external files as resources, and have listed the file I want to embed in the tauri.conf.json file under resources. It seems it registers the file as when I move it the build no longer succeeds. The issue is when I tried to access via a command like When using npm run tauri android dev (and wired connection to phone) I only receive a file not found error occuring on File::Open. Have tried all sorts of combinations to no avail! Is there some kind of permissions issue or something I'm missing? Help would be appreciated!! In Tauri’s permission system, absolute paths and paths containing parent components (../) can only be allowed via "$RESOURCE/**". Relative paths like "path/to/file.txt" can be allowed explicitly via "$RESOURCE/path/to/file.txt". *********Update: I defined and added the capability to the main window like }` which I gathered from the documents but still haven't had any luck here. Have seen the file itself embeded in the release directory of the rust build however. Solved |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
its necessary to use the file system plugin, and you can only access the application directory! |
Beta Was this translation helpful? Give feedback.
its necessary to use the file system plugin, and you can only access the application directory!