Table of Content
MacGap 是一个生成 WebApp 的终端工具, 安装很容易:
gem install macgap
使用起来也很简单, 随意在什么路径下创建一个 app, 例如我在 ~ 目录新建一个叫 MyBlog 的 app:
$ cd ~
$ macgap new MyBlog
本例中, MacGap 会在 ~ 下创建 MyBlog 文件夹, 包含 index.html 文件。
修改 MyBlog/index.html 甚至添加其它资源到 Blog/ 中, 然后开始构建:
macgap build MyBlog
构建完成后会生成 MyBlog.app 文件。