$ npm clone https://github.com/ssbc/patchwork-builder
$ cd patchwork-builder
$ npm install
$ git clone https://github.com/ssbc/patchwork app
$ npm run update
$ npm run release
You'll need some more dependencies to create builds.
See the electron-builder
wiki page: Multi Platform Build
On linux you'll need a few more deps:
sudo apt-get install icnsutils graphicsmagick