atlas pack command builds your project and packages it for distribution on the target platform. It creates platform-specific application bundles with all necessary resources.
Usage
atlas.toml is located).
Options
—release, -r
Build in release mode with optimizations enabled.0- Debug build (default)1or any non-zero value - Release build
0 (debug mode)
Build Process
The pack command performs the following steps:Platform-Specific Packaging
macOS
On macOS, the pack command creates a complete.app bundle:
Info.plist is automatically generated with values from atlas.toml:
Linux & Windows
On Linux and Windows, the pack command creates the executable in the build output directory:Configuration
Packing behavior is controlled by the[pack] section in atlas.toml:
Pack Configuration Options
icon
Path to the application icon file, relative to theassets/ directory.
- macOS: Use
.icnsformat - Windows: Use
.icoformat (when supported) - Linux: Varies by distribution
"none" or the file doesn’t exist, no icon will be included.
supported_platforms
Comma-separated list of platforms this application supports."all", "macos", "linux", "windows"
If the current platform is not in the list, a warning will be displayed but packing will continue.
version
Application version string used in platform metadata."1.0"
On macOS, this becomes the CFBundleVersion in Info.plist.
identifier
Bundle identifier prefix for macOS applications."example"
Generates bundle IDs like com.mycompany.mygame.
Example Output
Debug Build
Release Build
- macOS:
app/YourGame.app/ - Linux/Windows:
build/bin/
Distributing Your Application
After packing:macOS
-
Compress the
.appbundle: -
For wider distribution, consider code signing:
Linux
Create a tarball or use platform-specific packaging:Windows
Package the executable with any required DLLs:Troubleshooting
CMake Configuration Failed
Ensure all dependencies are installed:Build Errors
Check your C++ code for compilation errors. Build output is displayed during the pack process.Missing Executable
If “No executable found in build directory” appears:- Check for build errors in the output
- Verify
CMakeLists.txtis properly configured - Ensure source files are in the correct directory
Platform Not Supported
supported_platforms in atlas.toml to include your platform or use "all".