Skip to content

Commit cff4ef6

Browse files
author
share121
committed
fix: 修复无法更新的 bug
1 parent 54faf1b commit cff4ef6

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

src-tauri/Cargo.lock

Lines changed: 8 additions & 7 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tauri-build = { version = "2.3.1", features = [] }
2121
serde_json = "1.0"
2222
serde = { version = "1.0", features = ["derive"] }
2323
log = "0.4"
24-
fast-down = "3.1.0"
24+
fast-down = "3.1.2"
2525
reqwest = { version = "0.12.22", features = [
2626
"brotli",
2727
"deflate",

src-tauri/src/updater.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub async fn update(app: tauri::AppHandle) -> tauri_plugin_updater::Result<()> {
4343
let app_clone = app.clone();
4444
let update_clone = update.clone();
4545
app.listen("accept_update", move |_| {
46-
let bytes = pusher.receive.blocking_lock();
46+
let bytes = pusher.receive.lock();
4747
if update_clone.install(&bytes[..]).is_ok() {
4848
relaunch::relaunch(app_clone.clone());
4949
}

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "fast-down-gui",
4-
"version": "0.1.20",
4+
"version": "0.1.21",
55
"identifier": "com.fast-down.fast-down-gui",
66
"build": {
77
"beforeDevCommand": "bun run dev",

0 commit comments

Comments
 (0)