All Projects → evshiron → Nwjs Builder Phoenix

evshiron / Nwjs Builder Phoenix

Licence: mit

Labels

Projects that are alternatives of or similar to Nwjs Builder Phoenix

Verge Core Installers
Verge Core Installers
Stars: ✭ 10 (-96.27%)
Mutual labels:  nsis
Stitch
Python Remote Administration Tool (RAT)
Stars: ✭ 2,018 (+652.99%)
Mutual labels:  nsis
electron-differential-updater
Differential updater for mac
Stars: ✭ 27 (-89.93%)
Mutual labels:  nsis
7z Build Nsis
7-zip build and package script with nsis script decompiling using ms visual studio
Stars: ✭ 61 (-77.24%)
Mutual labels:  nsis
Electron Builder
A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
Stars: ✭ 11,653 (+4248.13%)
Mutual labels:  nsis
Installer
Stars: ✭ 189 (-29.48%)
Mutual labels:  nsis
Satysfi Cross Windows
Crosscompiling SATySFi from Ubuntu to Windows
Stars: ✭ 16 (-94.03%)
Mutual labels:  nsis
node-makensis
A Node wrapper for makensis, the NSIS compiler
Stars: ✭ 19 (-92.91%)
Mutual labels:  nsis
Vcl Styles Plugins
Skin plugins for third party installers and apps
Stars: ✭ 131 (-51.12%)
Mutual labels:  nsis
ghidra-nsis-extension
Ghidra extension to disassemble NSIS installers
Stars: ✭ 17 (-93.66%)
Mutual labels:  nsis
Bulk Crap Uninstaller
Remove large amounts of unwanted applications quickly.
Stars: ✭ 1,212 (+352.24%)
Mutual labels:  nsis
Electron Builder Binaries
Stars: ✭ 110 (-58.96%)
Mutual labels:  nsis
Qnapi
Qt-based, multi-engine, multi-platform subtitle downloader
Stars: ✭ 226 (-15.67%)
Mutual labels:  nsis
Openconnect Gui
Mirror - Graphical OpenConnect client (beta phase)
Stars: ✭ 993 (+270.52%)
Mutual labels:  nsis
Documentation
A community-driven, Markdown-based documentation for Nullsoft Scriptable Install System (NSIS)
Stars: ✭ 34 (-87.31%)
Mutual labels:  nsis
Ultramodernui
The Ultra-Modern User Interface is a new interface with a style like the most recent installers for NSIS 3 (Nullsoft Scriptable Install System), the tool that allows programmers to create such installers for Windows.
Stars: ✭ 25 (-90.67%)
Mutual labels:  nsis
Nsis Ui
NSIS封包exe,牛牛安装包界面美化控件 [nsNiuniuSkin],包含3个实例,后两个是官网的,helloworld那个是根据上面两个例子改的。
Stars: ✭ 168 (-37.31%)
Mutual labels:  nsis
NSIS-UI-Plugin
Create NSIS Modern UI Setup by Using Thirdparty UI Library(such as Qt, DuiLib)
Stars: ✭ 55 (-79.48%)
Mutual labels:  nsis
installer
Installer and any other build related script or code
Stars: ✭ 16 (-94.03%)
Mutual labels:  nsis
Uget Integrator
Native messaging host to integrate uGet Download Manager with web browsers
Stars: ✭ 253 (-5.6%)
Mutual labels:  nsis

nwjs-builder-phoenix npm version Standard Version

A possible solution to build and package a ready for distribution NW.js app for Windows, macOS and Linux.

Why Bother?

We already had nw-builder, but it has made little progress on the way, and nwjs-builder has been hard to continue due to personal and historic reasons.

electron-builder inspired me when I became an Electron user later, loose files excluding, various target formats, auto updater, artifacts publishing and code signing, amazing!

Although NW.js has much lesser popularity than Electron, and is really troubled by historic headaches, let's have something modern.

Features

  • Building for Windows, macOS and Linux
    • Common: zip, 7z
    • Windows: nsis, nsis7z
    • macOS: TODO
    • Linux: TODO
  • Building for different platforms concurrently
  • Configurable executable fields and icons for Windows and macOS
  • Exclusion of loose files from node_modules
  • Chrome App support
  • nwjs-ffmpeg-prebuilt integration
  • Auto Updater
  • TODO Rebuilding native modules
  • TODO Code signing
  • Ideas appreciated :)

Getting Started

  • Make sure your NW.js project has a valid package.json (e.g. generated by npm init), and have basic fields like name, description and version filled.

  • For apps destined for Mac, providing a product_string in the package.json will allow the Helper app to be renamed for you.

  • Install nwjs-builder-phoenix as a devDependencies of your NW.js project as follows:

# Optional wine for building for Windows on other platforms.
# The command may differ in different Linux distributions.
#sudo apt-get install wine
npm install nwjs-builder-phoenix --save-dev

By installing it locally, build and run commands will be available in npm scripts. You can access option lists via ./node_modules/.bin/{ build, run } --help.

DO NOT install it globally, as the command names are just too common.

  • Add build properties at the root of the package.json, for example:
// package.json
{
    "build": {
        "nwVersion": "0.14.7"
    }
}

This will specify the NW.js version we are using. See more in the following Options section.

  • Add some helper npm scripts, for example:
// package.json
{
    "scripts": {
        // Deprecated. "dist": "build --win --mac --linux --x86 --x64 --mirror https://dl.nwjs.io/ .",
        "dist": "build --tasks win-x86,win-x64,linux-x86,linux-x64,mac-x64 --mirror https://dl.nwjs.io/ .",
        "start": "run --x86 --mirror https://dl.nwjs.io/ ."
    }
}

The above code snippet enables npm run dist and npm run start/npm start. The former builds for all major platforms and both x86 and x64 arch, and the latter runs the project with x86 binaries, both with the specified version of NW.js and use specified mirror to accelerate the download.

  • Well done.

This should be the common use case, read the following Options section and FAQs if something is missing.

See also sample project and test cases for reference.

Options

Passing and managing commandline arguments can be painful. In nwjs-builder-phoenix, we configure via the build property of the package.json of your NW.js project.

Also see all available options here.

Differences to nwjs-builder

  • nwjs-builder-phoenix queries versions.json only when a symbol like lts, stable or latest is used to specify a version.
  • nwjs-builder-phoenix uses rcedit instead of node-resourcehacker, thus it's up to you to create proper .ico files with different sizes.
  • nwjs-builder-phoenix supports node.js 4.x and later versions only.
  • nwjs-builder-phoenix writes with TypeScript and benefits from strong typing and async/await functions.

Development

git clone https://github.com/evshiron/nwjs-builder-phoenix
cd nwjs-builder-phoenix
npm install

npm test

By the way, I use some custom strings in NSIS scripts which might not be fully translated, if anyone is interested in translating them into languages that aren't available, feel free to fork and send PRs.

Available Mirrors

If you have difficulties connecting to the official download source, you can specify a mirror via --mirror argument of both build and run, or by setting NWJS_MIRROR environment variable. Environment variables like HTTP_PROXY, HTTPS_PROXY and ALL_PROXY should be useful too.

License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].