safing-portmaster/desktop/tauri/src-tauri
2025-02-25 11:34:21 +02:00
..
capabilities [desktop] update tauri npm packages 2024-09-02 09:55:21 +03:00
gen/schemas [desktop] Tauri update v2.2.5 2025-02-24 10:44:13 +02:00
src Add missing TODOs 2024-12-10 14:21:34 +02:00
templates Fix loggin dir 2024-12-12 16:33:02 +02:00
.gitignore Migrate tauri from portmaster-ui to desktop/tauri. Update build system 2024-03-22 11:45:18 +01:00
build.rs Migrate tauri from portmaster-ui to desktop/tauri. Update build system 2024-03-22 11:45:18 +01:00
Cargo.lock [desktop] Add rust-dark-light as direct dependency 2025-02-25 11:34:21 +02:00
Cargo.toml [desktop] Add rust-dark-light as direct dependency 2025-02-25 11:34:21 +02:00
Cross.toml Update Earthfile to hopefully get cross-compilation for rust to work 2024-03-26 15:38:47 +01:00
README.md [WIP] updater rafactoring, minor improvments 2024-09-17 12:36:44 +03:00
tauri.conf.json5 [WIP] Fix tauri notifications 2024-12-03 17:28:40 +02:00

Update Tauri guide

Check latest versions of tauri packages and update them accordingly:

[build-dependencies]
tauri-build = { version = "2.0.0-beta.19", features = [] } # Update to latest

[dependencies]
# Tauri
tauri = { version = "2.0.0-beta.24", features = ["tray-icon", "image-png", "config-json5", "devtools"] } # Update to latest
tauri-plugin-shell = "2.0.0-beta"
tauri-plugin-dialog = "2.0.0-beta"
tauri-plugin-clipboard-manager = "2.0.0-beta"
tauri-plugin-os = "2.0.0-beta"
tauri-plugin-single-instance = "2.0.0-beta"
tauri-plugin-cli = "2.0.0-beta"
tauri-plugin-notification = "2.0.0-beta"
tauri-plugin-log = "2.0.0-beta"
tauri-plugin-window-state = "2.0.0-beta"

tauri-cli = "2.0.0-beta.21" # Update to latest

The plugins will be auto updated based on tauri version.

Run:

cargo update

Update WIX installer template:

  1. Get the latests main.wxs template from the repository.
  2. Replace the contents of templates/main_original.wxs with the repository version.
  3. Replace the contents of templates/main.wsx and add the fallowing lines at the end of the file, inside the Product tag.
    <!-- Service fragments -->
    <CustomActionRef Id='InstallPortmasterService' />
    <CustomActionRef Id='StopPortmasterService' />
    <CustomActionRef Id='DeletePortmasterService' />
    <!-- End Service fragments -->