Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

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/benschwarz/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

About

No description, website, or topics provided.

Resources

Stars

20 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages