Fix Chrome sandbox on Linux AppImage builds

This commit is contained in:
Saúl Ibarra Corretgé 2020-04-08 10:34:55 +02:00
parent 4546d718e3
commit d8b24a075c
1 changed files with 7 additions and 6 deletions

View File

@ -20,11 +20,12 @@ matrix:
- g++-4.8
- gcc-4.8
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
before_script:
- | # Fix chrome-sandbox: https://github.com/electron/electron/issues/17972
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
echo "Fixing chrome-sandbox permissions..."
sudo chown root ./node_modules/electron/dist/chrome-sandbox
sudo chmod 4755 ./node_modules/electron/dist/chrome-sandbox
fi
script:
- npm run dist