Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jam-pack-nodegui

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jam-pack-nodegui

Tool to package NodeGui applications

  • 0.20.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
62
decreased by-15.07%
Maintainers
0
Weekly downloads
 
Created
Source

Jam Pack Nodegui

Jam NodeGui applications into neat little packages.

Jam Pack NodeGui is a packing tool for NodeGui applications.

It can aid in producing packages in the following formats:

  • Zip
  • AppImage (Linux)
  • Debian (Linux)
  • NSIS installer (Windows)
  • DMG (macOS)

It aims to produce small packages which only include the files needed to run the application.

This tool has been spun off from my work on Extraterm and NodeGui. -- Simon

Packaging Approach

JPN is designed around some key guidelines:

  • Keep the development file structure where possible
  • Operate on a clean source tree
  • Use bundling to minimize the size of your application and run-time files
  • Whitelist files to include in the package, i.e. opt-in

The packaging process consists of a number of steps and is driven by a configuration file to customise each step.

Bundling your application into one file is recommended but not required. Bundling your application collects its dependencies into one file and separates them from any other test files or documentation that maybe be stored in your node_modules directory.

Why not use macdeployqt, linuxdeployqt and friends?

Many tools for packaging non-C++ Qt applications like NodeGui with JS, try to rely on C++ oriented tools like macdeployqt or linuxdeployqt to do their work. These tools are often a poor fit because they are busy with solving C++ executable and library problems which appear when trying to create portable binaries which can run on end user systems. In the case of NodeGui applications this is problem has already been solved by the NodeGui developers. The pre-compiled binaries and libraries which are downloaded when running a tool like npm are already suitable for redistribution. That's just how npm works! By expending some effort to eliminate unnecessary files, we can package and ship the project's file structure, as used during development, as the final file structure used on end user machines.

Besides a much simpler packaging process another big benefit is fewer differences between the file layout at development time and that used by the end user. Libraries and files aren't shuffled around as much, relative file paths remain the same, therefore reducing the chance of things working during development but not for end users.

Installing

JPN can be installed using npm install --save jam-pack-nodegui or yarn add --dev jam-pack-nodegui if you are using yarn.

Usage

License

MIT

Developer

Simon Edwards simon@simonzone.com

FAQs

Package last updated on 02 Dec 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc