Skip to content

Commit

Permalink
App export
Browse files Browse the repository at this point in the history
  • Loading branch information
kahst committed Jan 3, 2020
1 parent 5d24805 commit c8359cb
Show file tree
Hide file tree
Showing 5 changed files with 685 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Exports
/birdnet-electron-*

# Logs
logs
*.log
Expand Down
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,27 @@ npm install audio-resampler
npm install array-normalize
npm install colormap
```

In order to package the app for stand-alone applications, we need electron-packager:

```
npm install electron-packager --save-dev
```

We can now add the export script in the <i>package.json</i>:

```
"scripts": {
"start": "electron .",
"export": "electron-packager ."
}
```

After that, we can export the app with:

```
npm run export
```



2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function createWindow () {
win.loadFile('index.html')

// Open the DevTools.
win.webContents.openDevTools()
//win.webContents.openDevTools()

// Emitted when the window is closed.
win.on('closed', () => {
Expand Down
Loading

0 comments on commit c8359cb

Please sign in to comment.