Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@nodegui/packer
Advanced tools
Packer is a npm module that allows you to package apps built with NodeGui or React NodeGui into a standalone executable. Packer works on Mac, Windows and Linux
This is a initial MVP release of the module.
On MacOS - Packer will output a dmg file
On Linux - Packer will output an AppImage which is something similar to a .app file in MacOS
On Windows - Packer outputs a folder containing the executable and all the dlls.
Currently if you need to produce a build you need to run the packer in different OS environments. That is, cross platform builds are not supported in this release.
First step is to install the packer as a dev dependency. You can do so by:
npm install --save-dev @nodegui/packer
Next you can run the init command:
npx nodegui-packer --init MyApp
This will produce the deploy directory containing the template. You can modify this to suite your needs. Like add icons, change the name, description and add other native features or dependencies. Make sure you commit this directory.
Next you can run the pack command:
npx nodegui-packer --pack <path to dist>
This command essential takes the dist folder as the input and puts it in the suitable location inside the standalone executable. Also it runs the correct deployment tool (macdeployqt incase of mac, etc) and packs in the dependencies. The output of the command is found under the build directory. You should gitignore the build directory.
macOS supports signing the application:
npx nodegui-packer --pack <path to dist>
Packer uses Qt's packaging tools in all three platforms.
Please feel free to help out with this in anyway you can.
FAQs
Package and deploy apps built with NodeGUI to all platforms
The npm package @nodegui/packer receives a total of 180 weekly downloads. As such, @nodegui/packer popularity was classified as not popular.
We found that @nodegui/packer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.