Skip to content

Commit

Permalink
docs: add note about postinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Aug 1, 2016
1 parent c89ef9f commit e6ce209
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .idea/dictionaries/develar.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ For a production app you need to sign your application, see [Where to buy code s
4. Add [scripts](https://docs.npmjs.com/cli/run-script) to the development `package.json`:
```json
"scripts": {
"postinstall": "install-app-deps",
"pack": "build --dir",
"dist": "build"
}
```
And then you can run `npm run dist` (to package in a distributable format (e.g. dmg, windows installer, deb package)) or `npm run pack` (useful to test).

Add script `"postinstall": "install-app-deps"` if two package.json structure is used to automatically install application dependencies.

5. Install [required system packages](https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build).

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
]
},
"devDependencies": {
"@develar/semantic-release": "^6.3.3",
"@develar/semantic-release": "^6.3.4",
"@types/debug": "0.0.28",
"@types/mime": "0.0.28",
"@types/progress": "^1.1.27",
Expand Down

0 comments on commit e6ce209

Please sign in to comment.