Skip to content

Commit

Permalink
Only compile openssl during build on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
inkfarer committed Apr 7, 2024
1 parent f3dc7a9 commit b4ef7c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ rm_rf = "0.6.1"
futures-util = "0.3.30"
flate2 = "1.0.28"
tar = "0.4.40"
openssl = { version = "0.10", features = ["vendored"] }
fix-path-env = { git = "https://github.com/tauri-apps/fix-path-env-rs" }
thiserror = "1.0.58"
reqwest = { version = "^0.11", features = ["json"] }
Expand All @@ -35,6 +34,12 @@ tauri-plugin-shell = "2.0.0-beta.3"
tauri-plugin-http = "2.0.0-beta.4"
tauri-plugin-store = "2.0.0-beta.4"

[target.'cfg(macos)'.dependencies]
openssl = { version = "0.10", features = ["vendored"] }

[target.'cfg(not(macos))'.dependencies]
openssl = { version = "0.10" }

[dependencies.tauri]
version = "2.0.0-beta"
features = [ "macos-private-api"]
Expand Down

0 comments on commit b4ef7c9

Please sign in to comment.