Build a Single Executable Application (SEA) from a Node.js project with ease. SEA-Builder streamlines the process of packaging your Node.js application into a standalone executable for Windows, Linux, and macOS platforms.
- Cross-Platform Support: Build executables for Windows, Linux, and macOS.
- Easy to Use: Simple command-line interface with clear usage instructions.
- Customizable: Set your application's icon on Windows and specify the output executable name.
- Efficient: Utilizes
esbuild
for fast bundling of your Node.js project. - Logging: Detailed logs help you track the build process and troubleshoot issues.
- Security (Optional): Implements obfuscation that allows you to be a step ahead of those pesky reverse engineers.
To use SEA-Builder, you must have Node.js installed on your system. Once you have Node.js, you can install SEA-Builder globally or locally in your project.
npm install -g sea-builder
npm install --save-dev sea-builder
sea-builder -i server.ts -p win32
-i, --input <file>
: Input file (e.g.,server.ts
).-icon, --icon <file>
: Icon file (e.g.,icon.ico
) [Windows only].-p, --platform <platform>
: Target platform (win32
,linux
, ormacos
).-o, --obfuscate
: (Optional) Obfuscates the produced bundled script right before baking it into the executable.
Build for Windows:
sea-builder -i server.ts -p win32
Build for Linux:
sea-builder -i server.ts -p linux
Build for macOS:
sea-builder -i server.ts -p macos
Contributions are welcome! If you have a feature request, bug report, or a pull request, please open an issue or submit a PR.
MIT © AxDSan
- Thanks to the contributors who help maintain and improve this project.
- Special thanks to the creators and maintainers of the dependencies used in this project.