Skip to content

Commit c2ba0c8

Browse files
committed
🚧 tauri 2.0
1 parent ed135aa commit c2ba0c8

File tree

7 files changed

+53
-57
lines changed

7 files changed

+53
-57
lines changed

src-tauri/Cargo.lock

Lines changed: 16 additions & 22 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: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ crate-type = ["staticlib", "cdylib", "lib"]
1616
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1717

1818
[build-dependencies]
19-
tauri-build = { version = "2.0.0-rc.0", features = [] }
19+
tauri-build = { version = "2.0.3", features = [] }
2020

2121
[dependencies]
22-
serde_json = "1.0.116"
23-
serde = { version = "1.0.200", features = ["derive"] }
24-
tauri = { version = "2.0.0-rc.0", features = ["tray-icon", "image-ico", "image-png", "macos-proxy"] }
25-
tauri-plugin-window-state = "2.0.0"
22+
serde_json = "1.0.132"
23+
serde = { version = "1.0.214", features = ["derive"] }
24+
tauri = { version = "2.1.0", features = ["tray-icon", "image-ico", "image-png", "macos-proxy"] }
25+
tauri-plugin-window-state = "2.0.2"
2626
tauri-plugin-oauth = "2"
27-
tauri-plugin-clipboard-manager = "2.0.0"
28-
tauri-plugin-http = "2.0.0"
27+
tauri-plugin-clipboard-manager = "2.0.2"
28+
tauri-plugin-http = "2.0.3"
2929
[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
30-
tauri-plugin-global-shortcut = { version = "2.0.0" }
30+
tauri-plugin-global-shortcut = { version = "2.0.1" }
3131

3232
[dev-dependencies]
33-
cargo-bloat = "0.11.1"
33+
cargo-bloat = "0.12.1"
3434

3535
[features]
3636
# this feature is used for development builds from development cli

src-tauri/src/app/menu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use tauri::{
22
image::Image,
33
menu::{MenuBuilder, MenuItemBuilder},
4-
tray::{MouseButtonState, TrayIconBuilder, TrayIconEvent, MouseButton},
4+
tray::{MouseButton, MouseButtonState, TrayIconBuilder, TrayIconEvent},
55
AppHandle, Manager,
66
};
77
use tauri_plugin_window_state::{AppHandleExt, StateFlags};

src-tauri/tauri.conf.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
{
2-
"build": {
3-
"beforeBuildCommand": "",
4-
"frontendDist": "../dist",
5-
"beforeDevCommand": ""
6-
},
7-
"plugins": {},
82
"productName": "WeRead",
9-
"identifier":"com.pake.weread",
3+
"identifier": "com.pake.weread",
104
"version": "1.0.0",
5+
"plugins": {},
116
"app": {
127
"security": {
138
"csp": null
@@ -18,5 +13,10 @@
1813
"id": "pake-tray"
1914
},
2015
"withGlobalTauri": true
16+
},
17+
"build": {
18+
"beforeBuildCommand": "",
19+
"frontendDist": "../dist",
20+
"beforeDevCommand": ""
2121
}
2222
}

src-tauri/tauri.linux.conf.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2+
"productName": "weread",
23
"identifier": "com.pake.weread",
3-
4-
"bundle": {
5-
"icon": ["png/weread_512.png"],
6-
"active": true,
7-
"category": "DeveloperTool",
8-
"copyright": "",
9-
"linux": {
10-
"deb": {
11-
"depends": ["curl", "wget"],
12-
"files": { "/usr/share/applications/com-pake-weread.desktop": "assets/com-pake-weread.desktop" }
13-
}
14-
},
15-
"externalBin": [],
16-
"longDescription": "",
17-
"resources": [],
18-
"shortDescription": "",
19-
"targets": ["deb", "appimage"]
20-
}
4+
"bundle": {
5+
"icon": ["png/weread_512.png"],
6+
"active": true,
7+
"category": "DeveloperTool",
8+
"copyright": "",
9+
"linux": {
10+
"deb": {
11+
"depends": ["curl", "wget"],
12+
"files": { "/usr/share/applications/com-pake-weread.desktop": "assets/com-pake-weread.desktop" }
13+
}
14+
},
15+
"externalBin": [],
16+
"longDescription": "",
17+
"resources": [],
18+
"shortDescription": "",
19+
"targets": ["deb", "appimage"]
20+
}
2121
}

src-tauri/tauri.macos.conf.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"productName": "WeRead",
23
"identifier": "com.pake.weread",
34
"bundle": {
45
"icon": ["icons/weread.icns"],

src-tauri/tauri.windows.conf.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"identifier": "com.pake.weread",
3+
"productName": "WeRead",
34
"bundle": {
45
"icon": ["png/weread_256.ico", "png/weread_32.ico"],
56
"active": true,

0 commit comments

Comments
 (0)