Need help understand tauri "resource" word uses in docs #13385
-
For the tauri team, do you guy considered "resource folder" as the folder that holding the .exe? Because at first, i always thought when you guy mentioned "resource folder" or "$RESOURCE" in the docs, you guy meant the resource folders that i have defined in tauri.conf.json:
so whenever you guy mentioned restriction or scope about "resource" folders, i imagined it will only applied to But recently when i use resourceDir(), i noticed that instead of return an array of defined resource path So is resourceDir basically executable dir? And any "resource folder" mentioned in the docs meant the whole folder contains the .exe and all subfolders, files; instead of only the folders defined in tauri.conf.json? (what baffled is in past few days, i thought tauri path api didnt have any function to return the executable dir, which is ridiculous. So i have to blindly copy-paste a chatgpt rust code just to get it, turn out it is resourceDir() ?!!!) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment · 2 replies
-
The exact location of the resource dir is more of an implementation detail that may change without notice. It's also only on Windows where the resource dir is the exe location. |
Beta Was this translation helpful? Give feedback.
The exact location of the resource dir is more of an implementation detail that may change without notice.
It's also only on Windows where the resource dir is the exe location.