Persistent install adapter: you ship one polyglot pack (APE, fat Mach-O, or a ZIP of native slices). The user — or PackageHub on delivery — runs Binary Tailor, which strips non-target headers and writes a boring PE, ELF, or Mach-O the host antivirus and debugger already understand.
This kind of defeats a unified on-disk binary. It keeps a unified CI and download page.
binary-tailor inspect app.bin
binary-tailor tailor app.bin -o app.exe --target windows-x64
binary-tailor pack -o app.bin --name myapp windows-x64=./win.exe linux-x64=./lin macos-arm64=./mac
binary-tailor assimilate ape.com --target linux-x64
binary-tailor memload payload.dylibSibling checkout of macho-memload is required (../macho-memload).
dub build --compiler=ldc2