Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/nw.jsPublic

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.

License

NotificationsYou must be signed in to change notification settings

nwjs/nw.js

Repository files navigation

Gitter
Official site:https://nwjs.io

Introduction

NW.js is an app runtime based onChromium andnode.js. You canwrite native apps in HTML and JavaScript with NW.js. It also lets youcall Node.js modules directly from the DOM and enables a new way of writingnative applications with all Web technologies.

It was created in the Intel Open Source Technology Center.

Building a Cross-platform Desktop App with NW.js
Creating Desktop Applications With node-webkit
WebApp to DesktopApp with node-webkit (slides)
Essay on the history and internals of the project

Features

  • Apps written in modern HTML5, CSS3, JS and WebGL.
  • Complete support forNode.js APIs and all itsthird party modules.
  • Good performance: Node and WebKit run in the same thread: Function calls are made straightforward; objects are in the same heap and can just reference each other.
  • Easy to package and distribute apps.
  • Available on Linux, Mac OS X and Windows.

Downloads

Demos and real apps

You may also be interested inour demos repository and theList of apps and companies using nw.js.

Quick Start

Createindex.html:

<!DOCTYPE html><html><head><title>Hello World!</title></head><body><h1>Hello World!</h1>    We are using node.js<script>document.write(process.version)</script>.</body></html>

Createpackage.json:

{"name":"nw-demo","version":"0.0.1","main":"index.html"}

Run:

$ /path/to/nw.  (suppose the current directory contains'package.json')

Note: on Windows, you can drag the folder containingpackage.json tonw.exe to open it.

Note: on OSX, the executable binary is in a hidden directory within the .app file. To run node-webkit on OSX, type:
/path/to/nwjs.app/Contents/MacOS/nwjs .(suppose the current directory contains 'package.json')

Documents

Official documentation:http://docs.nwjs.io/

For more information on how to write/package/run apps, see:

And ourWiki for much more.

Community

We use thegoogle group asour mailing list (use English only). Subscribe vianwjs-general+subscribe@googlegroups.com.

NOTE: Links to the old google group (e.g.https://groups.google.com/forum/#!msg/node-webkit/doRWZ07LgWQ/4fheV8FF8zsJ) that are no longer working can be fixed by replacingnode-webkit withnwjs-general (e.ghttps://groups.google.com/forum/#!msg/nwjs-general/doRWZ07LgWQ/4fheV8FF8zsJ).

Issues are being tracked here on GitHub.

The source code for NW.js and the daily development spans multiple repositories in this organization. This repository is for issue tracking, landing page, and part of the source code.

Verifying Binaries

Starting from 0.32.0 the stable and nightly download directories contain a SHASUMS256.txtfile that lists the SHA checksums for each file available for download, as well as thechecksums for the files inside the download package.

The SHASUMS256.txt can be downloaded usingcurl.

$curl -O https://dl.nwjs.io/vx.y.z/SHASUMS256.txt

To check that a downloaded file matches the checksum, runit throughsha256sum with a command such as:

$grep nwjs-vx.y.z.tar.gz SHASUMS256.txt| sha256sum -c -

The stable releases (but not Nightlies) also have the GPG detachedsignature of SHASUMS256.txt available as SHASUMS256.txt.asc. You can usegpgto verify that SHASUMS256.txt has not been tampered with.

To verify SHASUMS256.txt has not been altered, you will first need to importthe GPG key of NW.js maintainer to create releases.Use this command to import the key:

$gpg --keyserver pool.sks-keyservers.net --recv-keys 78680FA9E21BB40A
(Key fingerprint is 1E8B EE8D 5B0C 4CBC D6D1  9E26 7868 0FA9 E21B B40A)

Next, download the SHASUMS256.txt.asc for the release:

$curl -O https://dl.nwjs.io/vx.y.z/SHASUMS256.txt.asc

After downloading the appropriate SHASUMS256.txt and SHASUMS256.txt.asc files,you can then usegpg --verify SHASUMS256.txt.asc SHASUMS256.txt to verifythat the file has been signed by an authorized member of the NW.js team.

Once verified, use the SHASUMS256.txt file to get the checksum forthe binary verification command above.

License

NW.js's code in this repo uses the MIT license, see ourLICENSE file. To redistribute the binary, seeHow to package and distribute your apps


[8]ページ先頭

©2009-2025 Movatter.jp