fix testapp

This commit is contained in:
Max Ogden 2015-06-27 20:07:33 -05:00
parent 86edff69d8
commit 2d128d8e99
3 changed files with 13 additions and 4 deletions

View File

@ -62,14 +62,12 @@ This will:
You should be able to launch the app on the platform you built for. If not, check your settings and try again.
**Be careful** not to include node_modules you don't want into your final app. `Electron-packager`, `electron-prebuilt` and `.git` will be ignored by default. You can use `--ignore` to ignore files and folders, e.g. `--ignore=node_modules/electron-packager` or `--ignore="node_modules/(electron-packager|electron-prebuilt)"`.
**Be careful** not to include node_modules you don't want into your final app. `electron-packager`, `electron-prebuilt` and `.git` will be ignored by default. You can use `--ignore` to ignore files and folders, e.g. `--ignore=node_modules/electron-packager` or `--ignore="node_modules/(electron-packager|electron-prebuilt)"`.
### API
```javascript
var packager = require('electron-packager')
packager(opts, function done (err, appPath) {
})
packager(opts, function done (err, appPath) { })
```
#### packager(opts, callback)

11
test/testapp/package.json Normal file
View File

@ -0,0 +1,11 @@
{
"name": "testapp",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "BSD-2-Clause"
}