KScript docs
EN

Programs: kscript compile

On each platform

macOS

Programs are signed ad hoc, which Apple Silicon needs before it will run them, even when they're built on Linux or Windows. On a Mac, kscript compile also seals the .app with Apple's codesign. Ad hoc signing isn't notarization: a program you download from the internet opens after right-clicking it and choosing Open. To publish an app outside your own Macs, sign it with your Developer ID and notarize it.

Windows

hello.exe runs from a terminal. Name.exe for a desktop app opens a window when double-clicked. Programs aren't Authenticode-signed, so SmartScreen may ask before the first run of a downloaded one.

Linux

Make sure the program is executable after copying it (chmod +x). To add a desktop app to your launcher, copy Name.desktop to ~/.local/share/applications, Name.png to ~/.local/share/icons, and the program to a folder on your PATH such as ~/.local/bin.

Edit this page on GitHub