-
-
Notifications
You must be signed in to change notification settings - Fork 0
Building from Source
Kenneth LaCroix edited this page Apr 13, 2026
·
1 revision
sudo apt install -y \
libwebkit2gtk-4.1-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
# Optional — hardware key (FIDO2/YubiKey) support:
sudo apt install -y libudev-dev
git clone https://github.com/kenlacroix/moodhaven-journal.git
cd moodhaven-journal
npm install
npm run tauri buildOutput: src-tauri/target/release/bundle/ — .AppImage + .deb
xcode-select --install
git clone https://github.com/kenlacroix/moodhaven-journal.git
cd moodhaven-journal
npm install
npm run tauri build
# Universal binary (Intel + Apple Silicon):
npm run tauri build -- --target universal-apple-darwinOutput: .app bundle + .dmg
- Install Visual Studio Build Tools 2022 with Desktop development with C++
- WebView2 Runtime is pre-installed on Windows 10/11
git clone https://github.com/kenlacroix/moodhaven-journal.git
cd moodhaven-journal
npm install
npm run tauri buildOutput: .msi + .exe NSIS installer
npm run tauri dev # Desktop dev server with hot reload
npm run dev:web # Browser dev server (no Rust needed)
VITE_DEV_MODE=bypass npm run dev:web # Skip auth gate for browser dev
npm run build:web # Browser build → dist-web/cd src-tauri
cargo build --release --features hardware-keyLinux note: Requires
libudev-devat compile time andlibudev1at runtime. Iflibudevis unavailable, omit--features hardware-keyand the feature will simply be absent from the build.
| Issue | Solution |
|---|---|
| Rust compilation errors | rustup update |
| WebKit not found (Linux) | Install libwebkit2gtk-4.1-dev
|
libudev not found (Linux) |
Install libudev-dev OR build without --features hardware-key
|
| Code signing failed (macOS) | Check certificate and key paths in environment |
npm run tauri dev opens blank window |
Check src-tauri/tauri.conf.json dev URL matches the Vite port |
- Version bumped:
package.json,Cargo.toml,tauri.conf.json -
npm run typecheckpasses (zero errors) -
cargo checkpasses -
npm test— all tests pass -
npm audit+cargo auditclean - Linux: AppImage works on Ubuntu 22.04+
- Windows: MSI installs on Windows 10/11
- macOS: DMG installs on macOS 10.15+
- GitHub release created with CHANGELOG entry
Full reference: .claude/docs/build.md