Răsfoiți Sursa

chore: add release profile for updater and api examples

Lucas Nogueira 3 ani în urmă
părinte
comite
73274a895f

+ 1 - 1
examples/api/src-tauri/Cargo.lock

@@ -3753,7 +3753,7 @@ dependencies = [
 [[package]]
 name = "wry"
 version = "0.12.2"
-source = "git+https://github.com/tauri-apps/wry?rev=27cf3735f717ffcc409e79031356ea0c99cadf8a#27cf3735f717ffcc409e79031356ea0c99cadf8a"
+source = "git+https://github.com/tauri-apps/wry?rev=11557f15cf759fcf3008598b684c009f03a8c645#11557f15cf759fcf3008598b684c009f03a8c645"
 dependencies = [
  "cocoa",
  "core-graphics 0.22.3",

+ 8 - 0
examples/api/src-tauri/Cargo.toml

@@ -17,3 +17,11 @@ tauri = { path = "../../../core/tauri", features = ["api-all", "cli", "system-tr
 [features]
 default = [ "custom-protocol" ]
 custom-protocol = [ "tauri/custom-protocol" ]
+
+# default to small, optimized release binaries
+[profile.release]
+panic = "abort"
+codegen-units = 1
+lto = true
+incremental = false
+opt-level = "s"

+ 8 - 0
examples/updater/src-tauri/Cargo.toml

@@ -21,3 +21,11 @@ custom-protocol = [ "tauri/custom-protocol" ]
 [[bin]]
 name = "updater-example"
 path = "src/main.rs"
+
+# default to small, optimized release binaries
+[profile.release]
+panic = "abort"
+codegen-units = 1
+lto = true
+incremental = false
+opt-level = "s"