heroku-electron-buildpack

by ubuntugod

GitHub Readme.md

Electron buildpack

This downloads the linux x64 binary of electron and places it in /app/vendor/electron.

Prerequisites

Your .buildpacks will need the following:

https://github.com/ddollar/heroku-buildpack-apt.git
https://github.com/captain401/heroku-buildpack-xvfb.git
https://github.com/ubuntugod/heroku-electron-buildpack.git
https://github.com/heroku/heroku-buildpack-nodejs.git
  • Specifically, you want 'captain401/xvfb' because it creates the correct links for Xvfb. Otherwise it'll crash /app/.apt/

Your Aptfile should look like this:

xvfb
x11-xkb-utils
xfonts-100dpi
xfonts-75dpi
xfonts-scalable
xfonts-cyrillic
libxfont1
libnotify4

Your Procfile will need to be run with xvfb-run. Here's an example of mine:

web: DEBUG=* xvfb-run --server-args="-screen 0 1280x1028x24 -ac +extension GLX +render" node server.js

Credits: https://github.com/benschwarz/heroku-electron-buildpack/pull/2