diff options
author | Saúl Ibarra Corretgé <s@saghul.net> | 2020-04-08 10:34:55 +0200 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2020-04-08 11:38:12 +0200 |
commit | d8b24a075cce620bcfc9a3a773353e385768ed32 (patch) | |
tree | dd34065dca3a3618306cf3349846923c6e1b3995 | |
parent | 4546d718e3b02c8bf9f5b7094784beac101c4a28 (diff) |
Fix Chrome sandbox on Linux AppImage builds
-rw-r--r-- | .travis.yml | 13 |
1 files 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 |