Skip to Content
CLI Referencetynd build

tynd build

tynd build # raw binary tynd build --bundle # + installers for the host OS tynd build --bundle app,dmg # specific installer formats

Flags

FlagValuesEffect
--cwd <dir>Run against a project in another directory
--outfile <path>Override output binary path (default release/<name>[.exe])
--bundle [targets]all, or comma-list of app,dmg,deb,rpm,appimage,nsis,msiProduce installers in addition to the raw binary. Omit the value to build every format applicable to the host OS.

Global flags: --verbose, --quiet.

Output

Written to release/:

  • Raw binary: <app>.exe (Windows), <app> (elsewhere).
  • Installers (with --bundle):
Host OSFormats
macOS.app, .dmg
Linux.deb, .rpm (if rpmbuild installed), .AppImage
WindowsNSIS .exe setup, .msi

Pipeline

frontend build ─▶ backend bundle ─▶ pack TYNDPKG ─▶ PE patch (Windows) ─▶ icon embed ─▶ sign ─▶ bundlers

See the Build Pipeline.

Signing

When bundle.sign is declared in tynd.config.ts, the raw binary is signed before any bundler copies it into an installer. Bundlers re-sign the outer artifact.

  • Windows — signtool.exe.
  • macOS — codesign --options runtime + optional notarytool submit + stapler.

See the Code Signing guide.

Cross-compilation

Not supported. Each host produces installers only for its own OS. Use a GitHub Actions matrix with windows-latest + macos-latest + ubuntu-latest runners.

See the Bundling guide.

Auto-downloaded tools

On first --bundle:

  • NSIS 3.09 (Windows nsis)
  • WiX v3.11.2 (Windows msi)
  • appimagetool latest (Linux appimage)

Cached to .tynd/cache/tools/<tool>/<version>/. rpmbuild must be installed separately (sudo apt install rpm / sudo dnf install rpm-build).

Last updated on