Tauri Core API - v2.6.0
    Preparing search index...

    Function resolveResource

    • Resolve the path to a resource file.

      Parameters

      • resourcePath: 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 (../).

      Returns Promise<string>

      The full path to the resource.

      import { resolveResource } from '@tauri-apps/api/path';
      const resourcePath = await resolveResource('script.sh');

      1.0.0