refactor(updater): accomodate to new tauri config restructure (#924)
* refactor(updater): accomodate to new tauri config restructure
RFC#5 f3e82a6b0c/texts/0005-tauri-config-restructure.md
RFC#5 PR implementation: https://github.com/tauri-apps/tauri/pull/8723
* lint and update configs
pull/862/head
parent
15dc7060e8
commit
506ce4835b
@ -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`.
|
@ -1,39 +1,28 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../../../../node_modules/.pnpm/@tauri-apps+cli@2.0.0-alpha.17/node_modules/@tauri-apps/cli/schema.json",
|
"identifier": "com.tauri.updater",
|
||||||
"build": {
|
"plugins": {
|
||||||
"distDir": [],
|
"updater": {
|
||||||
"devPath": []
|
"endpoints": ["http://localhost:3007"],
|
||||||
},
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEMwNjY1MEExMTFBMDU5RTUKUldUbFdhQVJvVkJtd09sZ1ROT25yVGFhU2o0ZnUyd1FlT0ZTQ2ZXamN3SXk4SjZLZmNwRnV5dTMK",
|
||||||
"tauri": {
|
|
||||||
"bundle": {
|
|
||||||
"active": true,
|
|
||||||
"targets": "all",
|
|
||||||
"identifier": "com.tauri.updater",
|
|
||||||
"icon": [
|
|
||||||
"icons/32x32.png",
|
|
||||||
"icons/128x128.png",
|
|
||||||
"icons/128x128@2x.png",
|
|
||||||
"icons/icon.icns",
|
|
||||||
"icons/icon.ico"
|
|
||||||
],
|
|
||||||
"category": "DeveloperTool",
|
|
||||||
"windows": {
|
"windows": {
|
||||||
"wix": {
|
"installMode": "quiet"
|
||||||
"skipWebviewInstall": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"updater": {
|
|
||||||
"active": true,
|
|
||||||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEMwNjY1MEExMTFBMDU5RTUKUldUbFdhQVJvVkJtd09sZ1ROT25yVGFhU2o0ZnUyd1FlT0ZTQ2ZXamN3SXk4SjZLZmNwRnV5dTMK",
|
|
||||||
"windows": {
|
|
||||||
"installMode": "quiet"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"plugins": {
|
"bundle": {
|
||||||
"updater": {
|
"active": true,
|
||||||
"endpoints": ["http://localhost:3007"]
|
"targets": "all",
|
||||||
|
"icon": [
|
||||||
|
"icons/32x32.png",
|
||||||
|
"icons/128x128.png",
|
||||||
|
"icons/128x128@2x.png",
|
||||||
|
"icons/icon.icns",
|
||||||
|
"icons/icon.ico"
|
||||||
|
],
|
||||||
|
"windows": {
|
||||||
|
"wix": {
|
||||||
|
"skipWebviewInstall": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue