language: node_js
node_js:
  - "4.4"
cache:
  directories:
    - node_modules
    - app/node_modules
    - $HOME/.electron
    - $HOME/.cache
script:
  - npm run dist

language: node_js
node_js:
  - "4.4"
cache:
  directories:
    - node_modules
    - app/node_modules
    - $HOME/.electron
    - $HOME/.cache
sudo: required 
dist: trusty 
script:
  - npm run dist

Use dist:trusty to workaround icns2png bug
Use dist:trusty to workaround icns2png bug

See https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build#linux