Skip to content

Commit

Permalink
Added support for platform-specific manifest overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-lynch committed Oct 29, 2014
1 parent a2a49c5 commit eed864b
Show file tree
Hide file tree
Showing 14 changed files with 500 additions and 68 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ node_modules
cache
build
tmp/
test/temp/
.DS_Store
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,58 @@ Default value: `null`

WINDOWS ONLY: The path to your ICO icon file. If your don't provide your own it will use the one provided by node-webkit. If you are building on MAC or LINUX you must have [Wine](http://winehq.org) installed to use this option.

### Manifest Options

#### platformOverrides

Allows you to specify platform-specific manifest values. Example manifest:

```json
{
"name": "nw-demo",
"version": "0.1.0",
"main": "index.html",
"window": {
"frame": false,
"toolbar": false
},
"platformOverrides": {
"win": {
"window": {
"frame": true
}
},
"osx": {/*
...
*/},
"linux32": {/*
...
*/},
"linux64": {/*
...
*/},
}

```

The platform-specific options will override the others only when building that platform only and the `platformOverrides` property will be removed.

For example, when building for Windows, the manifest generated and put into the end app (from the manifest above) would be:

```json
{
"name": "nw-demo",
"version": "0.1.0",
"main": "index.html",
"window": {
"frame": true,
"toolbar": false
}
}
```

See [#85](https://github.com/mllrsohn/node-webkit-builder/issues/85) for more information. If you need this during development too, see [platform-overrides](http://github.com/adam-lynch/platform-overrides) and [gulp-platform-overrides](http://github.com/adam-lynch/gulp-platform-overrides).


## To Do:
- Test it on Linux and Windows
Expand Down
Loading

0 comments on commit eed864b

Please sign in to comment.