1.2 KiB
1.2 KiB
Zenbook Duo Control UI
Build commands
npm run build: full Tauri release build with configured bundles.npm run build:local: release build without packaging bundles. Faster for local verification.npm run build:frontend: frontend-only production build.npm run build:rust: Rust-only release build for the Tauri backend.
Faster builds
The biggest speed win during iteration is to avoid full packaging unless you need .deb or .rpm.
- Use
npm run build:localfor local release checks. - Use
npm run build:frontendwhen changing only the UI. - Use
npm run build:rustwhen changing only Rust code. - Use
npm run devduring active development.
Cargo already uses multiple cores by default. You can cap or tune it explicitly when useful:
CARGO_BUILD_JOBS=8 npm run build:local
If sccache is installed, you can enable Rust compile caching:
RUSTC_WRAPPER=sccache npm run build:local
If mold is installed on Linux, you can reduce link time with a local Cargo config. An example is provided in .cargo/config.toml.example.
To set up the recommended local tooling automatically:
./scripts/setup-fast-build.sh