I assumed Node Webkit would make it simple to package up and add to Windows as a single executable file, however it seems it doesn't and they recommend using https://github.com/evshiron/nwjs-builder
So I installed nw-builder and managed to get a build folder containing all the files needed and the .exe file.
What next? There are no other clear instructions on that page! How is this then installed onto windows?
Can anyone help direct me to or provide simple step by step instructions for dummies? I find all this really confusing.
please help, thanks :)
April 22, 2021 5 min read. NW. js, previously known as node-webkit, is among the community's favorite Electron alternatives for native application development. Like its competitor, NW. js also enables the easy setup of cross-platform desktop applications simply by using the core trio of HTML, CSS, and JavaScript.
Zip up your entire application directory package.json
should be in
the root of the zip file.
Rename the zip to app.nw
Run this command from the command line copy /b nw.exe+app.nw
app.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 user
InstallDir $PROGRAMFILES\app-name
Page instfiles
Section "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"
SectionEnd
Section "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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With