Skip to content

⬢ [NO LONGER MAINTAINED] Sample nw.js app with simple prewritten build scripts for Linux, Mac, and Windows.

License

Notifications You must be signed in to change notification settings

kethinov/nw.js-app-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nw.js app template

NOT CURRENTLY MAINTAINED AND MAY NOT WORK WITH THE LATEST VERSION OF NW.JS.

Sample nw.js app with all the boilerplate you need to just get started coding on your app with simple build scripts for Linux, Mac, and Windows.

Currently only Mac is fully supported. Linux is partially supported (run but not build) and Windows is not supported.

Get started

First, just download this code.

Then start hacking on your app and run it!

Run the app without building it

  • Mac: open dev/mac/start.command.
  • Linux: open dev/linux/start.sh.

Build an app executable for distribution

Customizing your app

App name

To set the app's name, you need to replace the placeholder text in the following files:

All platforms:

  • main.html: HTML page title sets window title
  • dev/appname.txt: sets the app's name on the task manager / dock (for builds only)

Mac only:

  • dev/mac/Info.plist: sets app name in the native Mac menubar

  • main.js: see the line which reads nativeMenuBar.createMacBuiltin('App Name', { ... to set the app's name in the native Mac menubar's menus

  • bower.json (bower doesn't allow name field to be empty)

App icon

To set the app icon, replace dev/appicon.png with your app icon. A resolution of 1024x1024 or higher is recommended to support all OS and screen combinations.

nw.js version

To set the version of nw.js your app is built from, change the version number in dev/nwversion.txt. See what the most recent version is here.

64 bit vs. 32 bit

To set the architecture nw.js is targeting, change architecture number in dev/nwarch.txt. Acceptable values are 32 and 64.

About

⬢ [NO LONGER MAINTAINED] Sample nw.js app with simple prewritten build scripts for Linux, Mac, and Windows.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published