Skip to content

Commit ec853c5

Browse files
authored
feat: update migration guide following latest changes (tauri-apps#2779)
1 parent 26c3ee3 commit ec853c5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/content/docs/start/migrate/from-tauri-1.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ Below is a summary of the changes from Tauri 1.0 to Tauri 2.0:
7373

7474
### Tauri Configuration
7575

76-
- `package > productName` and `package > version` moved to top-level field.
76+
- `package > productName` and `package > version` moved to top-level object.
77+
- the binary name is no longer renamed to match `productName` automatically, so you must add a `mainBinaryName` string to the top-level object matching `productName`.
7778
- `package` removed.
7879
- `tauri` key renamed to `app`.
7980
- `tauri > allowlist` removed. Refer to [Migrate Permissions](#migrate-permissions).
@@ -83,6 +84,8 @@ Below is a summary of the changes from Tauri 1.0 to Tauri 2.0:
8384
- `tauri > updater > active` removed.
8485
- `tauri > updater > dialog` removed.
8586
- `tauri > updater` moved to `plugins > updater`.
87+
- `bundle > createUpdaterArtifacts` added, must be set when using the app updater.
88+
- set it to `v1Compatible` when upgrading from v1 apps that were already distributed. See the [updater guide](/plugin/updater) for more information.
8689
- `tauri > systemTray` renamed to `app > trayIcon`.
8790
- `tauri > pattern` moved to `app > security > pattern`.
8891
- `tauri > bundle` moved top-level.
@@ -92,6 +95,7 @@ Below is a summary of the changes from Tauri 1.0 to Tauri 2.0:
9295
- `tauri > bundle > macOS > license` removed, use `bundle > licenseFile` instead.
9396
- `tauri > bundle > windows > wix > license` removed, use `bundle > licenseFile` instead.
9497
- `tauri > bundle > windows > nsis > license` removed, use `bundle > licenseFile` instead.
98+
- `tauri > bundle > windows > webviewFixedRuntimePath` removed, use `bundle > windows > webviewInstallMode` instead.
9599
- `build > withGlobalTauri` moved to `app > withGlobalTauri`.
96100
- `build > distDir` renamed to `frontendDist`.
97101
- `build > devPath` renamed to `devUrl`.
@@ -156,6 +160,8 @@ The `@tauri-apps/api` package no longer provides non-core modules. Only the prev
156160
- `@tauri-apps/api/updater` module removed. Use `@tauri-apps/plugin-updater` instead [Migration](#migrate-to-updater-plugin)
157161
- `@tauri-apps/api/window` module renamed to `@tauri-apps/api/webviewWindow`. [Migration](#migrate-to-new-window-api)
158162

163+
The v1 plugins are now published as `@tauri-apps/plugin-<plugin-name>`. Previously they were available from git as `tauri-plugin-<plugin-name>-api`.
164+
159165
### Environment Variables Changes
160166

161167
Most of the environment variables read and written by the Tauri CLI were renamed for consistency and prevention of mistakes:

0 commit comments

Comments
 (0)