Resolve the path to a resource file.
The path to the resource. Must follow the same syntax as defined in tauri.conf.json > bundle > resources, i.e. keeping subfolders and parent dir components (../).
tauri.conf.json > bundle > resources
../
The full path to the resource.
import { resolveResource } from '@tauri-apps/api/path';const resourcePath = await resolveResource('script.sh'); Copy
import { resolveResource } from '@tauri-apps/api/path';const resourcePath = await resolveResource('script.sh');
1.0.0
Resolve the path to a resource file.