Expand description
nf build: check the app, compile it to machine code, and package it as a native app
for an operating system.
ModulesΒ§
- macos π
- macOS apps are bundles: a folder ending in
.appholding the executable and a description of the app. - windows π
- Windows apps are folders holding the executable, named after the app.
StructsΒ§
- Request π
EnumsΒ§
- Target π
ConstantsΒ§
- OUTPUT_
DIR π - Built apps go in this folder, next to the projectβs entry file.
FunctionsΒ§
- app_
name π - A project folderβs name, or a single fileβs name without
.nf. - build π
- Compiles and links
programin a scratch folder, then writes the app around the executable, so a failure leaves an earlier build as it was. Returns the app. - link_in π
- Compiles and links
programinto an executable inscratch, and returns its path. - output_
dir π - parse π
- run π
- runtime_
library π - The runtime library every app is linked against, installed next to
nf. Package managers put a link tonfon thePATH, so the lookup starts from where that link points.