before_install: if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
before_script:
- - npm install electron-prebuilt -g
+ - npm install electron -g
- npm run build
- wget --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-3.0.2-64bit-static.tar.xz"
- tar xf ffmpeg-release-3.0.2-64bit-static.tar.xz
# apt-get update
# apt-get install ffmpeg mongodb openssl xvfb curl sudo git build-essential libgtk2.0-0 libgconf-2-4 libnss3 libasound2 libxtst6 libxss1 libnotify-bin
# npm install -g npm@3
- # npm install -g electron-prebuilt
+ # npm install -g electron
#### Other distribution... (PR welcome)
// Run a timeout of 30s after which we exit the process
const timeoutWebtorrentProcess = setTimeout(function () {
- throw new Error('Timeout : cannot run the webtorrent process. Please ensure you have electron-prebuilt npm package installed with xvfb-run.')
+ throw new Error('Timeout : cannot run the webtorrent process. Please ensure you have electron npm package installed with xvfb-run.')
}, 30000)
ipc.server.on(processKey + '.ready', function () {