refactor(updater): accomodate to new tauri config restructure (#924)

* refactor(updater): accomodate to new tauri config restructure

RFC#5 https://github.com/tauri-apps/rfcs/blob/f3e82a6b0c5390401e855850d47dc7b7d9afd684/texts/0005-tauri-config-restructure.md

RFC#5 PR implementation: https://github.com/tauri-apps/tauri/pull/8723

* lint and update configs
This commit is contained in:
Amr Bashir
2024-02-03 14:14:39 +02:00
committed by GitHub
parent 15dc7060e8
commit 506ce4835b
12 changed files with 349 additions and 271 deletions
+21
View File
@@ -0,0 +1,21 @@
---
"updater": "patch"
---
Refactored the updater plugin to accommodate to the new changes in tauri config:
- JSON plugin config:
- Added `pubkey` option.
- Added `windows` option which is a Windows-specific options.
- Renamed `installer_args` to `installerArgs`.
- Moved `installerArgs` option to the new `windows` object.
- Rust crate changes:
- Added `pubkey` field for `Config`.
- Added `windows` field for `Config` option which is a Windows-specific options.
- Added `WindowsConfig` and `WindowsUpdateInstallMode`.
- Moved `installerArgs` option to the new `windows` object.
- Added `Builder::pubkey` and `UpdaterBuilder::pubkey`.
- Changed `Builder::installer_args` and `UpdaterBuilder::installer_args` to add to existing installer args, instead of replacing them, use `Builder/UpdaterBuilder::clear_installer_args` to clear existing args.
- Added `Builder::installer_arg`, `Builder::clear_installer_args`, `UpdaterBuilder::installer_arg` and `UpdaterBuilder::clear_installer_args`.