resolveResource
resolveResource(
resourcePath):Promise<string>
Defined in: path.ts:515
Resolve the path to a resource file.
string
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 (../).
Promise<string>
The full path to the resource.
import { resolveResource } from '@tauri-apps/api/path';const resourcePath = await resolveResource('script.sh');1.0.0
© 2025 Tauri Contributors. CC-BY / MIT