From d8b24a075cce620bcfc9a3a773353e385768ed32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 8 Apr 2020 10:34:55 +0200 Subject: [PATCH] Fix Chrome sandbox on Linux AppImage builds --- .travis.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 47e2221..4ad1031 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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