Skip to content

Commit

Permalink
Upgrade to Tauri 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnze committed Oct 12, 2024
1 parent c926a37 commit fe7a713
Show file tree
Hide file tree
Showing 20 changed files with 11,402 additions and 1,303 deletions.
2,540 changes: 1,478 additions & 1,062 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@fluent/bundle": "0.18.0",
"@tauri-apps/api": "1.6.0",
"@tauri-apps/api": "2.0.0",
"@tauri-apps/plugin-clipboard-manager": "^2.0.0",
"@tauri-apps/plugin-fs": "^2.0.0",
"@tauri-apps/plugin-process": "^2.0.0",
"@tauri-apps/plugin-updater": "^2.0.0",
"@vueuse/core": "11.1.0",
"d3": "^7.9.0",
"el-table-infinite-scroll": "3.0.6",
Expand All @@ -28,7 +32,7 @@
},
"devDependencies": {
"@babel/types": "7.25.8",
"@tauri-apps/cli": "1.6.0",
"@tauri-apps/cli": "2.0.0",
"@types/d3": "^7.4.3",
"@types/lodash-es": "4.17.12",
"@types/node": "22.7.5",
Expand Down
141 changes: 90 additions & 51 deletions pnpm-lock.yaml

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

20 changes: 9 additions & 11 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ version = "0.0.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[build-dependencies]
tauri-build = { version = "1.5", features = [] }
tauri-build = { version = "2", features = [] }

[dependencies]
crossbeam-channel = "0.5.13"
futures = "0.3"
micro_ndarray = "0.6"
msgbox = "0.7.0"
native-dialog = "0.7.0"
num_cpus = "1.16.0"
percent-encoding = "2.3.1"
rand = "0.8.5"
Expand All @@ -29,16 +29,14 @@ sea-orm = { version = "1.0.1", features = [
] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tauri = { version = "1.8", features = [
"shell-open",
"clipboard-write-text",
"fs-all",
"dialog-open",
"dialog-save",
"updater",
] }
tokio = "1.40"
window-vibrancy = "0.4"
window-vibrancy = "0.5"

tauri = { version = "2", features = [] }
tauri-plugin-fs = "2"
tauri-plugin-process = "2"
tauri-plugin-updater = "2"
tauri-plugin-clipboard-manager = "2"

# internal deps
app-libs = { path = "../src-libs" }
Expand Down
14 changes: 14 additions & 0 deletions src-tauri/capabilities/migrated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"identifier": "migrated",
"description": "permissions that were migrated from v1",
"local": true,
"windows": [
"main"
],
"permissions": [
"core:default",
"fs:allow-appdata-read",
"fs:allow-appdata-write",
"updater:default"
]
}
1 change: 1 addition & 0 deletions src-tauri/gen/schemas/acl-manifests.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src-tauri/gen/schemas/capabilities.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","local":true,"windows":["main"],"permissions":["core:default","fs:allow-appdata-read","fs:allow-appdata-write","updater:default"]}}
Loading

0 comments on commit fe7a713

Please sign in to comment.