build: production profile, justfile adjustments

This commit is contained in:
2026-05-17 23:10:58 +02:00
parent d891a14a46
commit 48b1d2821f
2 changed files with 64 additions and 58 deletions
+4 -2
View File
@@ -55,12 +55,14 @@ debug-assertions = true
overflow-checks = true overflow-checks = true
lto = false lto = false
panic = "unwind" panic = "unwind"
codegen-units = 1 incremental = true
[profile.release-lto] [profile.production]
inherits = "release" inherits = "release"
debug = false debug = false
strip = true strip = true
debug-assertions = false debug-assertions = false
overflow-checks = false overflow-checks = false
lto = true lto = true
incremental = false
codegen-units = 1
+8 -4
View File
@@ -2,14 +2,18 @@ export RUSTFLAGS := "-C target-cpu=native"
export WEBKIT_DISABLE_COMPOSITING_MODE := "1" export WEBKIT_DISABLE_COMPOSITING_MODE := "1"
export DOCKER_CONFIG := env_var_or_default("DOCKER_CONFIG", ".lanspread-peer-cli/docker-config") export DOCKER_CONFIG := env_var_or_default("DOCKER_CONFIG", ".lanspread-peer-cli/docker-config")
build:
cargo tauri build --no-bundle -- --profile dev
run: run:
cargo tauri dev cargo tauri dev --release
build:
cargo tauri build --no-bundle #-- --profile dev
bundle:
cargo tauri build -- --profile production
fmt: fmt:
cargo +nightly fmt cargo +nightly fmt
just --fmt
_fix: _fix:
cargo fix cargo fix