Skip to content

Commit

Permalink
add updater
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Sep 26, 2024
1 parent 540f93a commit b2de4c0
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 3 deletions.
167 changes: 166 additions & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ log = "0.4"
tauri = { version = "2.0.0-rc.15", features = [] }
tauri-plugin-log = "2.0.0-rc"
tauri-plugin-http = "2.0.0-rc.5"
tauri-plugin-updater = "2.0.0-beta.0"

[replace]
# using this version from github fixed data_directory for webkitgtk
Expand Down
17 changes: 15 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,19 @@
"devUrl": "http://localhost:3000",
"frontendDist": "../out"
},
"plugins": {},
"plugins": {
"updater": {
"active": true,
"dialog": false,
"windows": {
"installMode": "passive"
},
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IERFNDE4MENFM0Y1RTZBOTQKUldTVWFsNC96b0JCM3RqM2NmMnlFTmxIaStRaEJrTHNOU2VqRVlIV1hwVURoWUdVdEc1eDcxVEYK",
"endpoints": [
"https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/releases/latest/download/latest.json"
]
}
},
"app": {
"withGlobalTauri": true,
"windows": [
Expand Down Expand Up @@ -44,6 +56,7 @@
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
]
],
"createUpdaterArtifacts": "v1Compatible"
}
}

0 comments on commit b2de4c0

Please sign in to comment.