在 Mac 上写一个简单的应用(with nw.js)
安装 Homebrew
One package manager to rule them all!
使用 Homebrew 安装 Node.js
$ brew install node
Homebrew (The missing package manager for OS X) formula list to search and discover new formulas使用 Homebrew 安装你最喜欢的编辑器
Cool kids use vim.
Homebrew (The missing package manager for OS X) formula list to search and discover new formulas初始化你的工作目录
$ npm init
使用你最喜欢的编辑器写你最棒的代码
When you writing js, do as the Frontend programmers do.
安装 node-webkit-builder 到你的包依赖中
$ npm install node-webkit-builder --save-dev
使用 node-webkit-builder 来试运行你的应用
$ ./node_modules/node-webkit-builder/bin/nwbuild -r . # Hint: you may want to use python-livereload to help developing on the fly.
Feeling good? 发布你的应用
$ ./node_modules/node-webkit-builder/bin/nwbuild -o build .
nw.js - Call all Node.js modules directly from DOM and enable a new way of writing applications with all Web technologies.将你的应用拖到 Application 文件夹
You may want to update icon, description etc, don't forget to checkout nw.js's wiki.
nw.js - Call all Node.js modules directly from DOM and enable a new way of writing applications with all Web technologies.用起来!🍻
评论(5)