Build Mortise from source
Build Mortise yourself to run a version that has no release, or to work on it. To install a release instead, see Install Mortise.
Run Mortise from source
Section titled “Run Mortise from source”-
Install rustup. Mortise needs Rust 1.100. The file
rust-toolchain.tomlin the repository selects it, and rustup installs it on the first build. -
On Linux, install the libraries the window needs. On Debian and Ubuntu:
Terminal window sudo apt-get install -y libxkbcommon-dev libwayland-devmacOS and Windows need nothing more.
-
Clone the repository:
Terminal window git clone https://github.com/mortise-dev/mortise.gitcd mortise -
Run Mortise. The path of a Laravel app is optional:
Terminal window cargo run -p mortise-app -- /path/to/laravel-app
The window opens. Its binary is mortise-desktop. For a build without the debug checks, add --release after run.
To keep the settings of this build apart from those of your installed Mortise, see the environment variables in Files and folders.
Build the command line tool
Section titled “Build the command line tool”The command line tool is the binary mortise, in the crate mortise-cli. It needs no window
libraries. Run it from the clone:
cargo run -p mortise-cli -- check /path/to/laravel-appOr install it on your path:
cargo install --locked --path crates/mortise-cliSee Command line tool for what it prints.
Build the installers
Section titled “Build the installers”-
Install cargo-packager, at the version the project uses:
Terminal window cargo install cargo-packager --locked --version 0.11.8 -
Build the installers of your platform. cargo-packager builds Mortise in release mode first.
Terminal window cargo packager -p mortise-app --release --formats app,dmgA local build is signed ad hoc, not with a Developer ID.
Terminal window cargo packager -p mortise-app --release --formats nsisThe setup is not signed.
Terminal window cargo packager -p mortise-app --release --formats appimage,debThe release builds these on Ubuntu 22.04. They are not signed.
The installers are in target/packages.