• This repository has been archived on 26/Oct/2019
  • Stars
    star
    123
  • Rank 290,145 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

⚑ NW.js starter project powered by Gulp. ⚑

NW.js Starter

Join the chat at https://gitter.im/Aluxian/nwjs-starter Get help on Codementor

This is a sample project to get you up and running with NW.js.

If you need help, read my tutorial here. This is a screenshot of the app that the tutorial guides you through, Klout:

Cross-platform screenshot

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 browser

What doesn't work:

  • tray icon on linux
  • rpm builds

Not 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 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: 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.

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.

More Repositories

1

Messenger-for-Desktop

This is not an official Facebook product, and is not affiliated with, or sponsored or endorsed by, Facebook.
JavaScript
2,170
star
2

electron-superkit

⚑ An Electron starter kit with super powers. ⚑
CoffeeScript
214
star
3

squirrel-updates-server

A simple node.js server for Squirrel.Mac and Squirrel.Windows which uses GitHub releases.
JavaScript
134
star
4

fish-kube-prompt

⎈ kubectl context/namespace in your fish shell prompt
Shell
77
star
5

CPP-ML-LinearRegression

A linear regression implementation in C++
C++
47
star
6

gulp-github-release

Create GitHub releases and upload assets.
JavaScript
16
star
7

Tweeather

ML project that correlates Twitter sentiment to European weather.
Scala
8
star
8

aluxian.com

My home on the interwebs!
HTML
8
star
9

klout-desktop

Unofficial desktop client for Klout. Runs on OS X, Windows and Linux.
JavaScript
8
star
10

gulp-appdmg

Generate beautiful DMG-images for your OS X applications.
JavaScript
7
star
11

FII-Lorem-UI

Sample Android app with Material Design.
Java
7
star
12

Codementor

An Android app I built for chatting on Codementor.
Java
5
star
13

heroku-buildpack-logstash

Shell
5
star
14

Butler

Butler is a personal, voice-powered assistant for Android.
Java
4
star
15

UniNet

A social network for universities. Coded together with @datBumbleB at FII Practic Hackathon 2015.
CSS
4
star
16

Coursera-Coding-the-Matrix

Homework for the "Coding the Matrix" course on Coursera (not completed).
Python
3
star
17

Assignment-Problem-Weighted-Bipartite-Matching

Assignment Problem (Weighted Bipartite Matching)
Java
3
star
18

SusuCatBot

The perfect companion for students.
Scala
2
star
19

Coursera-Machine-Learning

My homework for the "Machine Learning" course on Coursera that I completed in December 2014.
MATLAB
2
star
20

dotfiles-fish

My fish shell config
Shell
1
star
21

WHIX

Campus Hack 19 - Social media app
Swift
1
star
22

CHS-Cattics

Community for Cat Lovers. http://alux-cattics.herokuapp.com/
JavaScript
1
star
23

CNRV-RO-Website

JavaScript
1
star
24

zsh-gpt

Shell
1
star
25

docker-sentry-github

Official Sentry image with GitHub plugin
1
star
26

node-fbmessages

Builders for messages on Facebook Messenger Bot Platform
JavaScript
1
star
27

node-acrypto

Promise based version of Node.js crypto module which only includes randomBytes and pbkdf2.
JavaScript
1
star
28

CodeCon-Problems

Solutions and attempts to problems from Bloomberg's CodeCon
Scala
1
star
29

FPPiS

Functional Programming Principles in Scala
Scala
1
star
30

HackerRank-Problems

Solutions and attempts at problems from HackerRank
Scala
1
star
31

FlightManager-WinForms

A flight management dashboard written in C#
C#
1
star
32

alablad

Cryptocoin
C++
1
star
33

node-envv

Simple util for config files that checks and returns an env var.
JavaScript
1
star
34

hapi-auth-ownership

Ownership-based access control for your routes.
JavaScript
1
star
35

UoS-CS2-LaBASIC

LaBASIC is a BASIC interpreter for the LaFortuna board
C
1
star