fix build issue

This commit is contained in:
Ren Amamiya
2023-09-04 07:44:57 +07:00
parent 21ea8309c7
commit 5d45027776
10 changed files with 91 additions and 99 deletions

View File

@@ -16,7 +16,9 @@ tauri-build = { version = "1.4.0", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.4.0", features = [ "fs-read-dir", "fs-read-file",
tauri = { version = "1.4.0", features = [
"fs-read-dir",
"fs-read-file",
"window-start-dragging",
"path-all",
"http-all",
@@ -34,6 +36,9 @@ tauri = { version = "1.4.0", features = [ "fs-read-dir", "fs-read-file",
"dialog-all",
"macos-private-api",
] }
tauri-plugin-sql = { git = "hhttps://github.com/tauri-apps/plugins-workspace", branch = "v1", features = [
"sqlite",
] }
tauri-plugin-single-instance = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
tauri-plugin-autostart = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
tauri-plugin-stronghold = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
@@ -46,18 +51,10 @@ sqlx-cli = { version = "0.7.0", default-features = false, features = [
] }
rust-argon2 = "1.0"
[dependencies.tauri-plugin-sql]
git = "hhttps://github.com/tauri-apps/plugins-workspace"
branch = "v1"
features = ["sqlite"]
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
default = ["custom-protocol"]
# this feature is used used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = []
# this feature is used for production builds or when `devPath` points to the filesystem
# DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"]
# Optimized for bundle size. If you want faster builds comment out/delete this section.
[profile.release]