2025-07-25 17:57:34 +03:00

1.2 KiB
Vendored

Build deliveries locally

In the project root:

Platform Architecture Application Build command
macOS x86_64 Desktop / Electron app ./bin/build-mac-x64.sh
ARM 64 Desktop / Electron app ./bin/build-mac-arm64.sh
Linux x86_64 Desktop / Electron app ./bin/build-linux-x64.sh
Server ./bin/build-server.sh
Windows x86_64 Desktop / Electron app ./bin/build-win-x64.sh

Under NixOS the following nix-shell is needed:

nix-shell -p jq

For Linux builds:

nix-shell -p jq fakeroot dpkg

The resulting build will be in the dist directory under the project root.

Testing the Linux builds under NixOS

Desktop clientServer
$ NIXPKGS_ALLOW_UNFREE=1 nix-shell -p steam-run
[nix-shell] cd dist/trilium-linux-x64
[nix-shell] steam-run ./trilium
$ NIXPKGS_ALLOW_UNFREE=1 nix-shell -p steam-run
[nix-shell] cd dist/trilium-linux-x64-server
[nix-shell] steam-run ./trilium.sh