Export and signing
The Export tab produces the application's deliverables: the installer for each system, for each processor, signed with your certificates. Everything starts when you ask for it, never automatically.
Choosing the deliverables
The tab shows the systems of the targets checked in the Project tab:
| Platform | Systems | Processors |
|---|---|---|
| Desktop | Windows | x86, x86_64, arm64 |
| Desktop | Linux | x86, x86_64, armv7, arm64, riscv64, ppc64le, s390x, loongarch64 |
| Desktop | macOS | x86_64, arm64 |
| Mobile | Android | x86, x86_64, armv7, arm64 |
| Mobile | iOS | arm64 |
| Web (server) | Linux, Windows, macOS, FreeBSD | depending on the system |
For Linux, tick the distribution families you target:
| Family | Package |
|---|---|
| Debian, Ubuntu | .deb |
| Fedora, RHEL, openSUSE | .rpm |
| Arch, Manjaro | .pkg.tar.zst |
| Flatpak (desktop) | .flatpak, for any distribution |
| Alpine (web server) | .apk |
| All | .tar.gz archive |
Where the build happens
For each deliverable, the tab shows where it will be built:
- this computer: natively, with your system's tools;
- this computer (Docker): in disposable containers. This is how Linux packages are made, from any system; they work on Debian 10, Ubuntu 20.04, RHEL 8 and every more recent distribution;
- this computer (Android SDK): with Android Studio's SDK and NDK;
- this computer (Xcode): on a Mac, for macOS and iOS;
- pipeline: by your Git repository's pipeline (see below);
- impossible: neither this computer nor the pipeline can produce it; the tab says why, and the box is greyed out.
Deliverables are stored in the export folder, named <package>-<version>-<system>-<processor>:
| System | Deliverables |
|---|---|
| Windows | .exe, and an .msi installer if WiX Toolset v3 is installed: for the current user by default, for the whole machine with ALLUSERS=1, with a shortcut and upgrade of the previous version |
| Linux | packages for each family; the desktop application installs its menu entry and icons |
| Android | .apk to install, .aab for Google Play |
| macOS | the .app application, as a .zip and a .dmg |
| iOS | .ipa |
| Web | the server, its system service (systemd; OpenRC on Alpine) and the HTTPS proxy configurations (see Web publishing) |
Signing with your certificates
A signed installer reassures the user and avoids system warnings. Khnoum signs with your certificates, set once and for all in "Signing certificates":
| System | Certificate |
|---|---|
| Windows | a PFX file and its password, or a certificate from the Windows store (subject and issuer, like signtool /n and /i); default timestamping: http://timestamp.digicert.com. Both the .exe and the .msi are signed. |
| Android | a keystore (.jks, .keystore, .p12), its alias and its passwords |
| Apple | the macOS signing identity, the Apple ID, the team and the app password (notarization), the iOS identity and profile, taken from the Mac's keychain |
Passwords are kept in the system credential store: Windows Credential Manager, macOS Keychain, Secret Service on Linux. They are written neither in the project nor in the settings.
Your Git repository's pipeline
What your computer cannot build (macOS and iOS without a Mac, for example) can be built by your Git repository's pipeline:
- GitHub (Actions);
- GitLab.com or self-hosted GitLab;
- Forgejo, Gitea or Codeberg;
- Bitbucket;
- Azure DevOps;
- your own build machines ("My own runners").
The steps are done one at a time, from the tab:
- Write the pipeline: Khnoum writes the pipeline file into the project.
- Commit and push…: you send it to your repository.
- Start the pipeline: it never starts on its own, only when you ask.
- Fetch the results: Khnoum downloads the deliverables and signs the Windows and Android ones on your computer.
Apple signing in the pipeline requires you to add your Apple certificates to your repository's secrets (KHNOUM_APPLE_CERTIFICAT, KHNOUM_APPLE_IDENTITE…); without them, the macOS application is produced unsigned.