build: production profile, justfile adjustments
This commit is contained in:
+4
-2
@@ -55,12 +55,14 @@ debug-assertions = true
|
||||
overflow-checks = true
|
||||
lto = false
|
||||
panic = "unwind"
|
||||
codegen-units = 1
|
||||
incremental = true
|
||||
|
||||
[profile.release-lto]
|
||||
[profile.production]
|
||||
inherits = "release"
|
||||
debug = false
|
||||
strip = true
|
||||
debug-assertions = false
|
||||
overflow-checks = false
|
||||
lto = true
|
||||
incremental = false
|
||||
codegen-units = 1
|
||||
|
||||
@@ -2,14 +2,18 @@ export RUSTFLAGS := "-C target-cpu=native"
|
||||
export WEBKIT_DISABLE_COMPOSITING_MODE := "1"
|
||||
export DOCKER_CONFIG := env_var_or_default("DOCKER_CONFIG", ".lanspread-peer-cli/docker-config")
|
||||
|
||||
build:
|
||||
cargo tauri build --no-bundle -- --profile dev
|
||||
|
||||
run:
|
||||
cargo tauri dev
|
||||
cargo tauri dev --release
|
||||
|
||||
build:
|
||||
cargo tauri build --no-bundle #-- --profile dev
|
||||
|
||||
bundle:
|
||||
cargo tauri build -- --profile production
|
||||
|
||||
fmt:
|
||||
cargo +nightly fmt
|
||||
just --fmt
|
||||
|
||||
_fix:
|
||||
cargo fix
|
||||
|
||||
Reference in New Issue
Block a user