How to package and distribute Node Webkit NW.js app in windows with nw-builder How to package and distribute Node Webkit NW.js app in windows with nw-builder windows windows

How to package and distribute Node Webkit NW.js app in windows with nw-builder


  1. Zip up your entire application directory package.json should be inthe root of the zip file.

  2. Rename the zip to app.nw

  3. Run this command from the command line copy /b nw.exe+app.nwapp.exe

Please note that you must distribute the file nw.pak alongside with your newly created app.exe

This is a NullSoft Installer script you can use to package and distribute your app:

Name "App-name"OutFile "app-installer.exe"Requestexecutionlevel userInstallDir $PROGRAMFILES\app-namePage instfilesSection "instfiles"    SetOutPath $INSTDIR    File "app.exe"    File "nw.pak"    File "icudtl.dat"    WriteUninstaller $INSTDIR\Uninstall.exe    CreateDirectory "$SMPROGRAMS\app-name"    CreateShortCut "$SMPROGRAMS\app-name\Uninstall.lnk" "$INSTDIR\Uninstall.exe"    CreateShortCut "$SMPROGRAMS\app-name\run-app.lnk" "$INSTDIR\app.exe"SectionEndSection "uninstall"    Delete $INSTDIR\*    Delete $INSTDIR\uninstall.exe    RMDir $INSTDIR    Delete "$SMPROGRAMS\app-name\*"    RMDir "$SMPROGRAMS\app-name"SectionEnd

It's stripped down version of my own script I used for distributing a nw.js app.