Skip to content

Commit 08c506e

Browse files
committed
chore: $ cargo tauri add updater
1 parent a6fbea8 commit 08c506e

File tree

6 files changed

+151
-0
lines changed

6 files changed

+151
-0
lines changed

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@tauri-apps/plugin-os": "^2.2.1",
1919
"@tauri-apps/plugin-shell": "^2.2.1",
2020
"@tauri-apps/plugin-store": "^2.2.0",
21+
"@tauri-apps/plugin-updater": "^2.7.0",
2122
"@tauri-apps/plugin-upload": "^2.2.1",
2223
"react": "^18.3.1",
2324
"react-dom": "^18.3.1",

src-tauri/Cargo.lock

Lines changed: 132 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ tauri-plugin-store = "2"
3333

3434
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
3535
tauri-plugin-single-instance = "2"
36+
tauri-plugin-updater = "2"
3637

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"identifier": "desktop-capability",
3+
"platforms": ["macOS", "windows", "linux"],
4+
"windows": ["main"],
5+
"permissions": ["updater:default"]
6+
}

src-tauri/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub fn run() {
2626
}
2727
}
2828
}))
29+
.plugin(tauri_plugin_updater::Builder::new().build())
2930
.plugin(tauri_plugin_store::Builder::new().build())
3031
.plugin(
3132
tauri_plugin_log::Builder::new()

0 commit comments

Comments
 (0)