Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grunt node-webkit build util #157

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ src/rubygems/gems
src/rubygems/specifications
*.DS_Store
*.map
node_modules
20 changes: 20 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = function(grunt) {

grunt.initConfig({
nodewebkit: {
options: {
build_dir: './build',
mac: true,
win: true,
linux32: false,
linux64: false,
mac_icns: './nw.icns'
},
// 应用路径
src: './src/**/*'
},
});

grunt.loadNpmTasks('grunt-node-webkit-builder');
grunt.registerTask('default', ['nodewebkit']);
};
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Koala is a GUI application for LESS, Sass and CoffeeScript compilation, to help

[项目中文主页](http://koala-app.com/index-zh.html)

## Downloads
## Downloads
v2.0.0 release [Changelog](http://koala-app.com/#changelog)

[Download](http://koala-app.com)
[Download](http://koala-app.com)


## Features
Expand All @@ -27,16 +27,19 @@ v2.0.0 release [Changelog](http://koala-app.com/#changelog)

## Documents

`koala` is built with [node-webkit](https://github.com/rogerwang/node-webkit). node-webkit is an app runtime based on Chromium and node.js. You can write native apps in HTML and Javascript with node-webkit.
`koala` is built with [node-webkit](https://github.com/rogerwang/node-webkit). node-webkit is an app runtime based on Chromium and node.js. You can write native apps in HTML and Javascript with node-webkit.

### How to run Koala source code?
1. Clone Koala to the local;
2. Download [node-webkit](https://github.com/rogerwang/node-webkit) prebuilt binaries for your system environment.
3. For windows, copy `nw.exe, nw.pak, icudt.dll` to `koala/src` directory, and install [Ruby](http://www.ruby-lang.org/) to `koala/src/ruby`;
For Linux, copy `nw, nw.pak`, install Ruby: `sudo apt-get install ruby`;
3. For windows, copy `nw.exe, nw.pak, icudt.dll` to `koala/src` directory, and install [Ruby](http://www.ruby-lang.org/) to `koala/src/ruby`;
For Linux, copy `nw, nw.pak`, install Ruby: `sudo apt-get install ruby`;
For Mac OS X, copy `node-webkit.app`, OS X already have Ruby installed.
4. Run the `nw` executable file.

##### build for grunt-node-webkit-builder
`npm install -g grunt-cli && npm install && grunt`

## License

`koala`'s code uses the Apache license, Version 2.0, see our `LICENSE` file.
Binary file added nw.icns
Binary file not shown.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "koala",
"version": "2.0.1",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-node-webkit-builder": "~0.1"
}
}