New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nw-builder

Package Overview
Dependencies
Maintainers
3
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nw-builder

Build NW.js desktop applications for MacOS, Windows and Linux.

  • 4.5.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
823
decreased by-33.25%
Maintainers
3
Weekly downloads
 
Created
Source

nw-builder

npm Join the chat at https://gitter.im/nwjs/nw-builder

Build NW.js applications for Mac, Windows and Linux.

For version 3, please go to the corresponding branch.

Major Features

  • Get, run or build applications.
  • Integrate FFmpeg community builds
  • Configure executable fields and icons
  • Downloading from mirrors
  • Node Native Addon support

Check out the documentation if you wish to give nw-builder a try.

Please note that the documentation assumes you know how to write NW.js applications.

Installation

With npm:

npm install nw-builder -D

With yarn:

yarn add nw-builder -D

With pnpm:

pnpm add nw-builder -D

Usage

Here is two way to use nw-build to build your nwjs applications

CLI

  1. To get nwjs cache
    nwbuild --mode=get
    
  2. To run nwjs application
    nwbuild --mode=run
    
  3. To build nwjs application
    nwbuild --mode=build
    

JavaScript API

  1. Define an npm script
    {
      "scripts": {
        "build": "node scripts/build.js"
      }
    }
    
  2. Create a build script
    // scripts/build.js
    const { nwbuild } = require("nw-builder");
    await nwbuild({
      srcDir: "./nwapp/**/* ./other/**/*.js",
      mode: "build",
      version: "latest",
      flavor: "normal",
      platform: "linux",
      arch: "x64",
      outDir: "./build",
      cache: false,
      app: { ... },
    });
    
  3. Run the script
    npm run build
    

Alternatives

Keywords

FAQs

Package last updated on 21 Dec 2023

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