Fetching documentation…
morph build --static produces a fully self-contained binary with zero external dependencies.
morph build --static
# Output: .morph/output/my-app
./my-app # runs anywhere on the same OS/arch| Platform | Recommended Format | Tool |
|---|---|---|
| Linux | AppImage | appimagetool |
| Linux | Flatpak / Snap | flatpak-builder / snapcraft |
| macOS | .app + DMG |
create-dmg, notarytool |
| Windows | MSI / portable ZIP | WiX, signtool |
codesign --deep --sign "Developer ID Application: ..." + notarytool submit + stapler staplesigntool sign /tr http://timestamp.digicert.com /fd sha256Pin the runtime version and commit the lock file:
{
"runtime": { "type": "cpp", "version": "0.2.0" }
}Commit morph.lock — it records the exact SHA256.
See the full Deployment & Packaging guide for AppDir layouts, .app bundles, WiX XML, CI/CD workflows, and size optimization.