KScript docs
EN

Desktop apps

Building the app

kscript compile turns a window script into an app that runs on computers without kscript or .NET:

CommandWhat it does
kscript compile counter.kscript --name "Counter"For this computer.
kscript compile counter.kscript --target allFor every platform.

This builds dist/mac-arm64/Counter.app for a Mac, dist/win-x64/Counter.exe for Windows (with the app's icon, and no console window), and dist/linux-x64/Counter with a .desktop file for Linux. Each one holds the script's folder, or its whole kscript.json project so imports and data files come along, and only the parts of kscript the app uses.

In a project, the app section of kscript.json names the main script and the app's name, version and icon, so kscript compile needs no arguments. See Programs for the targets, icons and signing.

kscript make project my-app starts a project with a desktop app already set up: desktop.kscript and the app section of kscript.json. Leave them out with --no-desktop.