Skip to content

Commit

Permalink
Add notes about building releases
Browse files Browse the repository at this point in the history
  • Loading branch information
shawncplus committed Aug 13, 2017
1 parent 206b705 commit 8402328
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ bower install
npm run start
```

## Creating Releases

To create distributables for Neuro simply run `npm run package-<platform>` where platform is one of `linux`, `win`, or
`mac`. Note for Mac there may be some extra signing process but I'm not sure since I've never used it, caveat emptor.

## Features

Neuro is a minimal client created in the same spirit as Ranvier: unopinionated but with sane examples for you to build
Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
<body>
<neuro-app></neuro-app>
<script>
require('./renderer.js')
if (require) {
require('./renderer.js')
}
</script>
</body>
</html>
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@
"client"
],
"scripts": {
"start": "electron ."
"start": "electron .",
"package-mac": "electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/mac/icon.icns --prune=true --out=release-builds",
"package-win": "electron-packager . --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=Neuro --version-string.FileDescription=Neuro --version-string.ProductName=\"Neuro\"",
"package-linux": "electron-packager . --overwrite --platform=linux --arch=x64 --icon=assets/icons/png/1024x1024.png --prune=true --out=release-builds"
},
"author": "Shawn Biddle <shawncplus@gmail.com>",
"license": "MIT",
"devDependencies": {
"electron": "~1.6.2"
"electron": "~1.6.2",
"electron-packager": "^8.7.2"
}
}
6 changes: 5 additions & 1 deletion src/neuro-app/neuro-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@
return;
}

if ((message === 'quit' || message === 'exit') && (!this.websocket || this.websocket.readyState === 3)) {
if (
require &&
(message === 'quit' || message === 'exit') &&
(!this.websocket || this.websocket.readyState === 3)
) {
require('electron').remote.getCurrentWindow().close();
}

Expand Down

0 comments on commit 8402328

Please sign in to comment.