chore: add release profile for updater and api examples

This commit is contained in:
Lucas Nogueira 2021-12-09 18:26:44 -03:00
parent d7c02a30a5
commit 73274a895f
No known key found for this signature in database
GPG Key ID: 2714B66BCFB01F7F
3 changed files with 17 additions and 1 deletions

View File

@ -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",

View File

@ -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"

View File

@ -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"