- Enter development environment
nix develop
or make sure node 16 npm 8 and rust 1.62 are installed. - Navigate to the native-addon package
cd packages/native-addon
- Build the Rust library:
nix build .#86_64-unknown-linux-gnu
ornix build .#86_64-pc-windows-gnu
with nix; orcargo build --release
without nix. - Package native-addon
node scripts/package.mjs
- If compiled with
nix build
remove ./result or electron-builder will bug out. - Navigate to the electron-app package
cd ../electron-app
- Install dependencies
npm i
- Start the app in dev mode
node scripts/dev.js
- Enter development environment
nix develop
or make sure node 16 npm 8 and rust 1.62 are installed. - Navigate to the native-addon package
cd packages/native-addon
- Build the Rust library:
nix build .#86_64-unknown-linux-gnu
ornix build .#86_64-pc-windows-gnu
with nix; orcargo build --release
without nix. - Package native-addon
node scripts/package.mjs
- If compiled with
nix build
remove ./result or electron-builder will bug out. - Navigate to the electron-app package
cd ../electron-app
- Install dependencies
npm i
- Build JS artifacts
npm run build
- (Optional) Preview the app in prod mode
npm run preview .
orelectron .
if Electron is natively installed (is is in nix) - Build the app with electron builder
npm run compile
(you can do this step in the electron-builder's docker image based container). Output wil be found in ./dist