Skip to content

sparkartgroup/heroku-electron-buildpack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%