Crate - App packager for Nim
This tool packages your Nim GUI application for multiple platforms, handling cross-compilation automatically.
It takes your Nim binary and app resources and bundles them into "crates". For example, an .app
for Mac, .exe
for Windows, .html
for Web, etc.
Usage
- Install with
nimble install https://github.com/jjv360/nim-crate
- Add Crate details to your source (optional)
- Run
nimcrate myapp.nim
to build your app for each platform - Output apps are saved to the
dist/
folder.
Specifying Crate information
You can define extra Crate information by adding the crate:
section to the top of your main Nim file. Example:
import nimcrate
crate:
id = "com.myapp"
name = "My App"
See the docs for all available fields.