Skip to content

Commit c26826e

Browse files
committed
🚨 修复构建错误
1 parent b565cc2 commit c26826e

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
contents: write
1717
steps:
1818
- uses: actions/checkout@v4
19-
- run: gh release create "v${{ github.event.inputs.version }}" --title "Release v${{ github.event.inputs.version }}" --notes "如果下面没有可下载的文件,说明构建失败,请联系开发者"
19+
- run: gh release create "v${{ github.event.inputs.version }}" --title "Release v${{ github.event.inputs.version }}" --notes "如果下面没有可下载的文件,说明构建失败,请联系开发者" || true # 忽略错误,防止失败导致整个流程失败
2020
env:
2121
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ crate-type = ["lib", "cdylib", "staticlib"]
1515
tauri-build = { version = "2.0.0-rc", features = [] }
1616

1717
[dependencies]
18-
tauri = { version = "2.0.0", features = ["macos-private-api"] }
18+
tauri = { version = "2.0.0", features = ["macos-private-api", "devtools"] }
1919
tauri-plugin-shell = "2.0.0"
2020
serde = { version = "1", features = ["derive"] }
2121
serde_json = "1"

src-tauri/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::io::Read;
44
use base64::engine::general_purpose;
55
use base64::Engine;
66

7-
#[cfg(debug_assertions)]
87
use tauri::Manager;
98
use tauri::Runtime;
109

0 commit comments

Comments
 (0)