草 稿

在 Mac 上写一个简单的应用(with nw.js)

上周我买了个苹果电脑,昨天我写了个苹果应用。

 

You can check my app out in: https://github.com/bcho/enigma

  1. 安装 Homebrew

    One package manager to rule them all!

  2. 使用 Homebrew 安装 Node.js

    $ brew install node

  3. 使用 Homebrew 安装你最喜欢的编辑器

    Cool kids use vim.

  4. 初始化你的工作目录

    $ npm init

  5. 使用你最喜欢的编辑器写你最棒的代码

    When you writing js, do as the Frontend programmers do.

  6. 安装 node-webkit-builder 到你的包依赖中

    $ npm install node-webkit-builder --save-dev

  7. 使用 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.

  8. Feeling good? 发布你的应用

    $ ./node_modules/node-webkit-builder/bin/nwbuild -o build .

  9. 将你的应用拖到 Application 文件夹

    You may want to update icon, description etc, don't forget to checkout nw.js's wiki.

  10. 用起来!🍻

评论(5

作者
不能在描述里面按回车这是 bug or feature?
反馈收到,很快就修复。
作者
@禅叔 能再支持个 emoji 不?
取消
去弄第一个 star