Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Aluxian/nwjs-starter
:zap: NW.js starter project powered by Gulp. :zap:
https://github.com/Aluxian/nwjs-starter
Last synced: about 2 months ago
JSON representation
:zap: NW.js starter project powered by Gulp. :zap:
- Host: GitHub
- URL: https://github.com/Aluxian/nwjs-starter
- Owner: aluxian
- License: mit
- Archived: true
- Created: 2015-07-06T18:51:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-17T12:45:06.000Z (over 6 years ago)
- Last Synced: 2024-02-14T20:34:55.137Z (11 months ago)
- Language: JavaScript
- Size: 9.14 MB
- Stars: 124
- Watchers: 10
- Forks: 42
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
- awesome-nwjs - NW.js starter project powered by Gulp: nwjs-starter
README
# NW.js Starter
[![Join the chat at https://gitter.im/Aluxian/nwjs-starter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Aluxian/nwjs-starter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/aluxian)This is a sample project to get you up and running with [NW.js](http://nwjs.io/).
If you need help, read my tutorial [here](http://blog.aluxian.com/how-to-create-cross-platform-desktop-apps-with-nw-js/). This is a screenshot of the app that the tutorial guides you through, Klout:
![Cross-platform screenshot](screenshot.jpg)
## Features
* native notifications
* auto update
* gulp tasks to
* build each release
* sign the OS X app
* pack
* Windows: nsis installer
* OSX: dmg
* Linux: deb package
* upload to GitHub
* remembers window position when closed
* customizable settings in the right-click menu
* run as menu bar app
* launch on OS startup
* open links in the browserWhat doesn't work:
* tray icon on linux
* rpm buildsNot done yet:
* Windows binary signing## Pre-requisites
# install gulp
npm install -g gulp# install dependencies
npm install* **wine**: If you're on OS X/Linux and want to build for Windows, you need [Wine](http://winehq.org/) installed. Wine is required in order
to set the correct icon for the exe. If you don't have Wine, you can comment out the `winIco` field in `gulpfile`.
* **makensis**: Required by the `pack:win32` task in `gulpfile` to create the Windows installer.
* [**fpm**](https://github.com/jordansissel/fpm): Required by the `pack:linux{32|64}:deb` tasks in `gulpfile` to create the Linux installers.Quickly install this on OS X:
brew install wine makensis
sudo gem install fpm## Build
### OS X: pack the app in a .dmg
gulp pack:osx64
### Windows: create the installer
gulp pack:win32
### Linux 32/64-bit: pack the app in a .deb
gulp pack:linux{32|64}:deb
The output is in `./dist`. Take a look at `gulpfile.coffee` for additional tasks.
## Tips
Use the `--toolbar` parameter to quickly build the app with the toolbar on. E.g. `gulp build:win32 --toolbar`.
Use `gulp build:win32 --noicon` to quickly build the Windows app without the icon, which normally takes some seconds.
For OS X, use the `run:osx64` task to build the app and run it immediately.
Use these to create the .tiff images for the OS X menu bar:
$ tiffutil -cathidpicheck icon_menubar.png [email protected] -out icon_menubar.tiff
$ tiffutil -cathidpicheck icon_menubar_alert.png [email protected] -out icon_menubar_alert.tiff## Contributions
Contributions are welcome! For feature requests and bug reports please [submit an issue](https://github.com/Aluxian/nwjs-starter/issues).
## License
The MIT License (MIT)
Copyright (c) 2015 Alexandru Rosianu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.