From 37e03ba8958276f34c87066f2142d4a9289bf997 Mon Sep 17 00:00:00 2001 From: Tillmann <112912081+tillmann-crabnebula@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:06:33 +0900 Subject: [PATCH] Change V1 links to V2 site --- .devcontainer/Dockerfile | 2 +- .github/CONTRIBUTING.md | 2 +- ARCHITECTURE.md | 2 +- README.md | 2 +- crates/tauri-cli/src/info/env_system.rs | 4 +-- .../tauri-cli/src/interface/rust/desktop.rs | 4 +-- .../src/migrate/migrations/v1/frontend.rs | 4 +-- .../tauri-app/src-tauri/src/lib.rs | 2 +- .../tauri-app/src/lib/Greet.svelte | 2 +- crates/tauri-runtime-wry/src/lib.rs | 2 +- crates/tauri-utils/src/config.rs | 36 +++++++++---------- crates/tauri/src/app.rs | 4 +-- examples/api/src/App.svelte | 2 +- packages/api/src/core.ts | 8 ++--- packages/api/src/event.ts | 2 +- packages/api/src/menu.ts | 2 +- packages/api/src/path.ts | 10 +++--- packages/api/src/tray.ts | 2 +- 18 files changed, 46 insertions(+), 46 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 63d7bcd3ae6e..f80ffd87ad1c 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -5,7 +5,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} # Derived from Tauri contribution and setup guides: # See: https://github.com/tauri-apps/tauri/blob/dev/.github/CONTRIBUTING.md#development-guide -# See: https://tauri.app/v1/guides/getting-started/prerequisites/#setting-up-linux +# See: https://v2.tauri.app/start/prerequisites/ ARG TAURI_BUILD_DEPS="build-essential curl libappindicator3-dev libgtk-3-dev librsvg2-dev libssl-dev libwebkit2gtk-4.1-dev wget" RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 1dd125c4d8da..bf5fd16860e2 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -51,7 +51,7 @@ Hi! We, the maintainers, are really excited that you are interested in contribut First, [join our Discord server](https://discord.gg/SpmNs4S) and let us know that you want to contribute. This way we can point you in the right direction and help ensure your contribution will be as helpful as possible. -To set up your machine for development, follow the [Tauri setup guide](https://tauri.app/v1/guides/getting-started/prerequisites/) to get all the tools you need to develop Tauri apps. The only additional tool you may need is [PNPM](https://pnpm.io/), it is only required if you are developing the Node CLI or API packages (`packages/cli` and `packages/api`). Next, fork and clone this repo. It is structured as a monorepo, which means that all the various Tauri packages are under the same repository. The development process varies depending on what part of Tauri you are contributing to, see the guides below for per-package instructions. +To set up your machine for development, follow the [Tauri setup guide](https://v2.tauri.app/start/prerequisites/) to get all the tools you need to develop Tauri apps. The only additional tool you may need is [PNPM](https://pnpm.io/), it is only required if you are developing the Node CLI or API packages (`packages/cli` and `packages/api`). Next, fork and clone this repo. It is structured as a monorepo, which means that all the various Tauri packages are under the same repository. The development process varies depending on what part of Tauri you are contributing to, see the guides below for per-package instructions. Some Tauri packages will be automatically built when running one of the examples. Others, however, will need to be built beforehand. To build these automatically, run the `.scripts/setup.sh` (Linux and macOS) or `.scripts/setup.ps1` (Windows) script. This will install the Rust and Node.js CLI and build the JS API. After that, you should be able to run all the examples. Note that the setup script should be executed from the root folder of the repository in order to run correctly. diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 7aac5ff048e5..56630ea06c76 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -103,7 +103,7 @@ This plugin allows you to very quickly install tauri in a vue-cli project. This project enhances the VS Code interface with several nice-to-have features. -# Tauri Plugins [documentation](https://tauri.app/v1/guides/features/plugin/) +# Tauri Plugins [documentation](https://v2.tauri.app/develop/plugins/) Generally speaking, plugins are authored by third parties (even though there may be official, supported plugins). A plugin generally does 3 things: diff --git a/README.md b/README.md index ab9ae506d997..99624ebd89b2 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ To learn more about the details of how all of these pieces fit together, please If you are interested in making a tauri app, please visit the [documentation website](https://tauri.app). -The quickest way to get started is to install the [prerequisites](https://tauri.app/v1/guides/getting-started/prerequisites) for your system and create a new project with [`create-tauri-app`](https://github.com/tauri-apps/create-tauri-app/#usage). For example with `npm`: +The quickest way to get started is to install the [prerequisites](https://v2.tauri.app/start/prerequisites/) for your system and create a new project with [`create-tauri-app`](https://github.com/tauri-apps/create-tauri-app/#usage). For example with `npm`: ```sh npm create tauri-app@latest diff --git a/crates/tauri-cli/src/info/env_system.rs b/crates/tauri-cli/src/info/env_system.rs index 3bef7b87d534..a0570c28afc6 100644 --- a/crates/tauri-cli/src/info/env_system.rs +++ b/crates/tauri-cli/src/info/env_system.rs @@ -243,7 +243,7 @@ pub fn items() -> Vec { format!( "webkit2gtk-4.1: {}\nVisit {} to learn more about tauri prerequisites", "not installed".red(), - "https://tauri.app/v1/guides/getting-started/prerequisites".cyan() + "https://v2.tauri.app/start/prerequisites/".cyan() ), Status::Error, ) @@ -265,7 +265,7 @@ pub fn items() -> Vec { format!( "rsvg2: {}\nVisit {} to learn more about tauri prerequisites", "not installed".red(), - "https://tauri.app/v1/guides/getting-started/prerequisites".cyan() + "https://v2.tauri.app/start/prerequisites/".cyan() ), Status::Error, ) diff --git a/crates/tauri-cli/src/interface/rust/desktop.rs b/crates/tauri-cli/src/interface/rust/desktop.rs index 8cef75f6f67f..be730eb706dc 100644 --- a/crates/tauri-cli/src/interface/rust/desktop.rs +++ b/crates/tauri-cli/src/interface/rust/desktop.rs @@ -207,7 +207,7 @@ fn build_dev_app, ExitReason) + Send + 'static>( "`{}` command not found.{}", runner, if runner == "cargo" { - " Please follow the Tauri setup guide: https://tauri.app/v1/guides/getting-started/prerequisites" + " Please follow the Tauri setup guide: https://v2.tauri.app/start/prerequisites/" } else { "" } @@ -276,7 +276,7 @@ fn build_production_app( "`{}` command not found.{}", runner, if runner == "cargo" { - " Please follow the Tauri setup guide: https://tauri.app/v1/guides/getting-started/prerequisites" + " Please follow the Tauri setup guide: https://v2.tauri.app/start/prerequisites/" } else { "" } diff --git a/crates/tauri-cli/src/migrate/migrations/v1/frontend.rs b/crates/tauri-cli/src/migrate/migrations/v1/frontend.rs index 0b51cb628368..b1399f962dea 100644 --- a/crates/tauri-cli/src/migrate/migrations/v1/frontend.rs +++ b/crates/tauri-cli/src/migrate/migrations/v1/frontend.rs @@ -522,7 +522,7 @@ function App() { const [name, setName] = useState(""); async function greet() { - // Learn more about Tauri commands at https://tauri.app/v1/guides/features/command + // Learn more about Tauri commands at https://v2.tauri.app/develop/calling-rust/#commands setGreetMsg(await invoke("greet", { name })); await open(); await dialog.save(); @@ -596,7 +596,7 @@ function App() { const [name, setName] = useState(""); async function greet() { - // Learn more about Tauri commands at https://tauri.app/v1/guides/features/command + // Learn more about Tauri commands at https://v2.tauri.app/develop/calling-rust/#commands setGreetMsg(await invoke("greet", { name })); await open(); await dialog.save(); diff --git a/crates/tauri-cli/templates/plugin/__example-api/tauri-app/src-tauri/src/lib.rs b/crates/tauri-cli/templates/plugin/__example-api/tauri-app/src-tauri/src/lib.rs index 9a2e880f446a..cfe473dc233c 100644 --- a/crates/tauri-cli/templates/plugin/__example-api/tauri-app/src-tauri/src/lib.rs +++ b/crates/tauri-cli/templates/plugin/__example-api/tauri-app/src-tauri/src/lib.rs @@ -1,4 +1,4 @@ -// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command +// Learn more about Tauri commands at https://v2.tauri.app/develop/calling-rust/#commands #[tauri::command] fn greet(name: &str) -> String { format!("Hello, {}! You've been greeted from Rust!", name) diff --git a/crates/tauri-cli/templates/plugin/__example-api/tauri-app/src/lib/Greet.svelte b/crates/tauri-cli/templates/plugin/__example-api/tauri-app/src/lib/Greet.svelte index 4f9be745f1f6..41e901b54bc8 100644 --- a/crates/tauri-cli/templates/plugin/__example-api/tauri-app/src/lib/Greet.svelte +++ b/crates/tauri-cli/templates/plugin/__example-api/tauri-app/src/lib/Greet.svelte @@ -5,7 +5,7 @@ let greetMsg = "" async function greet(){ - // Learn more about Tauri commands at https://tauri.app/v1/guides/features/command + // Learn more about Tauri commands at https://v2.tauri.app/develop/calling-rust/#commands greetMsg = await invoke("greet", { name }) } diff --git a/crates/tauri-runtime-wry/src/lib.rs b/crates/tauri-runtime-wry/src/lib.rs index 545c4a559d8c..4e6045e48a70 100644 --- a/crates/tauri-runtime-wry/src/lib.rs +++ b/crates/tauri-runtime-wry/src/lib.rs @@ -763,7 +763,7 @@ impl WindowBuilder for WindowBuilderWrapper { if config.transparent { eprintln!( "The window is set to be transparent but the `macos-private-api` is not enabled. - This can be enabled via the `tauri.macOSPrivateApi` configuration property + This can be enabled via the `tauri.macOSPrivateApi` configuration property "); } diff --git a/crates/tauri-utils/src/config.rs b/crates/tauri-utils/src/config.rs index 28fd4870e69b..36440c9e7afd 100644 --- a/crates/tauri-utils/src/config.rs +++ b/crates/tauri-utils/src/config.rs @@ -307,7 +307,7 @@ impl BundleTarget { /// Configuration for AppImage bundles. /// -/// See more: +/// See more: #[derive(Debug, Default, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] #[serde(rename_all = "camelCase", deny_unknown_fields)] @@ -323,7 +323,7 @@ pub struct AppImageConfig { /// Configuration for Debian (.deb) bundles. /// -/// See more: +/// See more: #[skip_serializing_none] #[derive(Debug, Default, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] @@ -373,7 +373,7 @@ pub struct DebConfig { /// Configuration for Linux bundles. /// -/// See more: +/// See more: #[skip_serializing_none] #[derive(Debug, Default, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] @@ -485,7 +485,7 @@ pub struct Size { /// Configuration for Apple Disk Image (.dmg) bundles. /// -/// See more: +/// See more: #[skip_serializing_none] #[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] @@ -549,7 +549,7 @@ where /// Configuration for the macOS bundles. /// -/// See more: +/// See more: #[skip_serializing_none] #[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] @@ -622,7 +622,7 @@ fn ios_minimum_system_version() -> String { /// Configuration for a target language for the WiX build. /// -/// See more: +/// See more: #[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] #[serde(rename_all = "camelCase", deny_unknown_fields)] @@ -653,7 +653,7 @@ impl Default for WixLanguage { /// Configuration for the MSI bundle using WiX. /// -/// See more: +/// See more: #[derive(Debug, Default, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] #[serde(rename_all = "camelCase", deny_unknown_fields)] @@ -858,7 +858,7 @@ pub struct NsisConfig { /// Install modes for the Webview2 runtime. /// Note that for the updater bundle [`Self::DownloadBootstrapper`] is used. /// -/// For more information see . +/// For more information see . #[derive(Debug, PartialEq, Eq, Clone, Serialize, Deserialize)] #[serde(tag = "type", rename_all = "camelCase", deny_unknown_fields)] #[cfg_attr(feature = "schema", derive(JsonSchema))] @@ -936,7 +936,7 @@ pub enum CustomSignCommandConfig { /// Windows bundler configuration. /// -/// See more: +/// See more: #[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] #[serde(rename_all = "camelCase", deny_unknown_fields)] @@ -1136,7 +1136,7 @@ pub enum V1Compatible { /// Configuration for tauri-bundler. /// -/// See more: +/// See more: #[skip_serializing_none] #[derive(Debug, Default, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] @@ -1260,7 +1260,7 @@ pub struct WindowEffectsConfig { /// The window configuration object. /// -/// See more: +/// See more: #[skip_serializing_none] #[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] @@ -1746,7 +1746,7 @@ impl FsScope { /// Config for the asset custom protocol. /// -/// See more: +/// See more: #[derive(Debug, Default, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] #[serde(rename_all = "camelCase", deny_unknown_fields)] @@ -1761,7 +1761,7 @@ pub struct AssetProtocolConfig { /// Security configuration. /// -/// See more: +/// See more: #[skip_serializing_none] #[derive(Debug, Default, PartialEq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] @@ -1855,7 +1855,7 @@ impl Default for PatternKind { /// The App configuration object. /// -/// See more: +/// See more: #[skip_serializing_none] #[derive(Debug, Default, PartialEq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] @@ -1916,7 +1916,7 @@ impl AppConfig { /// Configuration for application tray icon. /// -/// See more: +/// See more: #[skip_serializing_none] #[derive(Debug, Default, PartialEq, Eq, Clone, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] @@ -2077,7 +2077,7 @@ pub enum HookCommand { /// The Build configuration object. /// -/// See more: +/// See more: #[skip_serializing_none] #[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize, Default)] #[cfg_attr(feature = "schema", derive(JsonSchema))] @@ -2196,7 +2196,7 @@ where /// configure the bundler and define a tray icon. /// /// The configuration file is generated by the -/// [`tauri init`](https://tauri.app/v1/api/cli#init) command that lives in +/// [`tauri init`](https://v2.tauri.app/reference/cli/#init) command that lives in /// your Tauri application source directory (src-tauri). /// /// Once generated, you may modify it at will to customize your Tauri application. @@ -2298,7 +2298,7 @@ pub struct Config { /// The plugin configs holds a HashMap mapping a plugin name to its configuration object. /// -/// See more: +/// See more: #[derive(Debug, Clone, Default, PartialEq, Eq, Deserialize, Serialize)] #[cfg_attr(feature = "schema", derive(JsonSchema))] pub struct PluginConfig(pub HashMap); diff --git a/crates/tauri/src/app.rs b/crates/tauri/src/app.rs index 6aec362de7ab..a5c034731fac 100644 --- a/crates/tauri/src/app.rs +++ b/crates/tauri/src/app.rs @@ -267,8 +267,8 @@ impl AssetResolver { /// Gets the app asset associated with the given path. /// /// Resolves to the embedded asset that is part of the app - /// in dev when [`devPath`](https://tauri.app/v1/api/config/#buildconfig.devpath) points to a folder in your filesystem - /// or in production when [`distDir`](https://tauri.app/v1/api/config/#buildconfig.distdir) + /// in dev when [`devUrl`](https://v2.tauri.app/reference/config/#devurl) points to a folder in your filesystem + /// or in production when [`frontendDist`](https://v2.tauri.app/reference/config/#frontenddist) /// points to your frontend assets. /// /// Fallbacks to reading the asset from the [distDir] folder so the behavior is consistent in development. diff --git a/examples/api/src/App.svelte b/examples/api/src/App.svelte index 91f1d03f241a..da3373ae2950 100644 --- a/examples/api/src/App.svelte +++ b/examples/api/src/App.svelte @@ -267,7 +267,7 @@ Documentation diff --git a/packages/api/src/core.ts b/packages/api/src/core.ts index 48b93a3d0f29..50d8f61f7edd 100644 --- a/packages/api/src/core.ts +++ b/packages/api/src/core.ts @@ -5,7 +5,7 @@ /** * Invoke your custom commands. * - * This package is also accessible with `window.__TAURI__.tauri` when [`app.withGlobalTauri`](https://tauri.app/v1/api/config/#appconfig.withglobaltauri) in `tauri.conf.json` is set to `true`. + * This package is also accessible with `window.__TAURI__.tauri` when [`app.withGlobalTauri`](https://v2.tauri.app/reference/config/#withglobaltauri) in `tauri.conf.json` is set to `true`. * @module */ @@ -182,11 +182,11 @@ async function invoke( /** * Convert a device file path to an URL that can be loaded by the webview. - * Note that `asset:` and `http://asset.localhost` must be added to [`tauri.security.csp`](https://tauri.app/v1/api/config/#securityconfig.csp) in `tauri.conf.json`. + * Note that `asset:` and `http://asset.localhost` must be added to [`app.security.csp`](https://v2.tauri.app/reference/config/#csp-1) in `tauri.conf.json`. * Example CSP value: `"csp": "default-src 'self' ipc: http://ipc.localhost; img-src 'self' asset: http://asset.localhost"` to use the asset protocol on image sources. * - * Additionally, `asset` must be added to [`tauri.allowlist.protocol`](https://tauri.app/v1/api/config/#allowlistconfig.protocol) - * in `tauri.conf.json` and its access scope must be defined on the `assetScope` array on the same `protocol` object. + * Additionally, `"enable" : "true"` must be added to [`app.security.assetProtocol`](https://v2.tauri.app/reference/config/#assetprotocolconfig) + * in `tauri.conf.json` and its access scope must be defined on the `scope` array on the same `assetProtocol` object. * * @param filePath The file path. * @param protocol The protocol to use. Defaults to `asset`. You only need to set this when using a custom protocol. diff --git a/packages/api/src/event.ts b/packages/api/src/event.ts index 118630cc8a34..4ba54311efb5 100644 --- a/packages/api/src/event.ts +++ b/packages/api/src/event.ts @@ -5,7 +5,7 @@ /** * The event system allows you to emit events to the backend and listen to events from it. * - * This package is also accessible with `window.__TAURI__.event` when [`app.withGlobalTauri`](https://tauri.app/v1/api/config/#appconfig.withglobaltauri) in `tauri.conf.json` is set to `true`. + * This package is also accessible with `window.__TAURI__.event` when [`app.withGlobalTauri`](https://v2.tauri.app/reference/config/#withglobaltauri) in `tauri.conf.json` is set to `true`. * @module */ diff --git a/packages/api/src/menu.ts b/packages/api/src/menu.ts index 069967781bdb..fa923d3120db 100644 --- a/packages/api/src/menu.ts +++ b/packages/api/src/menu.ts @@ -12,6 +12,6 @@ export * from './menu/predefinedMenuItem' /** * Menu types and utilities. * - * This package is also accessible with `window.__TAURI__.menu` when [`app.withGlobalTauri`](https://tauri.app/v1/api/config/#appconfig.withglobaltauri) in `tauri.conf.json` is set to `true`. + * This package is also accessible with `window.__TAURI__.menu` when [`app.withGlobalTauri`](https://v2.tauri.app/reference/config/#withglobaltauri) in `tauri.conf.json` is set to `true`. * @module */ diff --git a/packages/api/src/path.ts b/packages/api/src/path.ts index ca91c4e78d49..dd81affd49eb 100644 --- a/packages/api/src/path.ts +++ b/packages/api/src/path.ts @@ -5,7 +5,7 @@ /** * The path module provides utilities for working with file and directory paths. * - * This package is also accessible with `window.__TAURI__.path` when [`app.withGlobalTauri`](https://tauri.app/v1/api/config/#appconfig.withglobaltauri) in `tauri.conf.json` is set to `true`. + * This package is also accessible with `window.__TAURI__.path` when [`app.withGlobalTauri`](https://v2.tauri.app/reference/config/#withglobaltauri) in `tauri.conf.json` is set to `true`. * * It is recommended to allowlist only the APIs you use for optimal bundle size and security. * @module @@ -45,7 +45,7 @@ enum BaseDirectory { /** * Returns the path to the suggested directory for your app's config files. - * Resolves to `${configDir}/${bundleIdentifier}`, where `bundleIdentifier` is the value [`tauri.bundle.identifier`](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in `tauri.conf.json`. + * Resolves to `${configDir}/${bundleIdentifier}`, where `bundleIdentifier` is the [`identifier`](https://v2.tauri.app/reference/config/#identifier) value configured in `tauri.conf.json`. * @example * ```typescript * import { appConfigDir } from '@tauri-apps/api/path'; @@ -62,7 +62,7 @@ async function appConfigDir(): Promise { /** * Returns the path to the suggested directory for your app's data files. - * Resolves to `${dataDir}/${bundleIdentifier}`, where `bundleIdentifier` is the value [`tauri.bundle.identifier`](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in `tauri.conf.json`. + * Resolves to `${dataDir}/${bundleIdentifier}`, where `bundleIdentifier` is the [`identifier`](https://v2.tauri.app/reference/config/#identifier) value configured in `tauri.conf.json`. * @example * ```typescript * import { appDataDir } from '@tauri-apps/api/path'; @@ -79,7 +79,7 @@ async function appDataDir(): Promise { /** * Returns the path to the suggested directory for your app's local data files. - * Resolves to `${localDataDir}/${bundleIdentifier}`, where `bundleIdentifier` is the value [`tauri.bundle.identifier`](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in `tauri.conf.json`. + * Resolves to `${localDataDir}/${bundleIdentifier}`, where `bundleIdentifier` is the [`identifier`](https://v2.tauri.app/reference/config/#identifier) value configured in `tauri.conf.json`. * @example * ```typescript * import { appLocalDataDir } from '@tauri-apps/api/path'; @@ -96,7 +96,7 @@ async function appLocalDataDir(): Promise { /** * Returns the path to the suggested directory for your app's cache files. - * Resolves to `${cacheDir}/${bundleIdentifier}`, where `bundleIdentifier` is the value [`tauri.bundle.identifier`](https://tauri.app/v1/api/config/#bundleconfig.identifier) is configured in `tauri.conf.json`. + * Resolves to `${cacheDir}/${bundleIdentifier}`, where `bundleIdentifier` is the [`identifier`](https://v2.tauri.app/reference/config/#identifier) value configured in `tauri.conf.json`. * @example * ```typescript * import { appCacheDir } from '@tauri-apps/api/path'; diff --git a/packages/api/src/tray.ts b/packages/api/src/tray.ts index dd37d29cf8d4..cda1ff0d051d 100644 --- a/packages/api/src/tray.ts +++ b/packages/api/src/tray.ts @@ -91,7 +91,7 @@ export type TrayIconEvent = /** * Tray icon types and utilities. * - * This package is also accessible with `window.__TAURI__.tray` when [`app.withGlobalTauri`](https://tauri.app/v1/api/config/#appconfig.withglobaltauri) in `tauri.conf.json` is set to `true`. + * This package is also accessible with `window.__TAURI__.tray` when [`app.withGlobalTauri`](https://v2.tauri.app/reference/config/#withglobaltauri) in `tauri.conf.json` is set to `true`. * @module */