fix linux build
This commit is contained in:
parent
370c8da6d7
commit
3056829147
3 changed files with 275 additions and 286 deletions
19
.travis.yml
19
.travis.yml
|
@ -9,21 +9,19 @@ matrix:
|
||||||
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
||||||
- os: linux
|
- os: linux
|
||||||
services: docker
|
services: docker
|
||||||
language: generic
|
language: node_js
|
||||||
before_cache:
|
node_js: "9"
|
||||||
- rm -rf $HOME/.cache/electron-builder/wine
|
cache: false
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- node_modules
|
|
||||||
- $HOME/.cache/electron
|
|
||||||
- $HOME/.cache/electron-builder
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get -qq update
|
|
||||||
- sudo apt-get install -y libsecret-1-dev
|
|
||||||
- |
|
- |
|
||||||
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
||||||
mkdir -p /tmp/git-lfs && curl -L https://github.com/github/git-lfs/releases/download/v2.3.1/git-lfs-$([ "$TRAVIS_OS_NAME" == "linux" ] && echo "linux" || echo "darwin")-amd64-2.3.1.tar.gz | tar -xz -C /tmp/git-lfs --strip-components 1
|
mkdir -p /tmp/git-lfs && curl -L https://github.com/github/git-lfs/releases/download/v2.3.1/git-lfs-$([ "$TRAVIS_OS_NAME" == "linux" ] && echo "linux" || echo "darwin")-amd64-2.3.1.tar.gz | tar -xz -C /tmp/git-lfs --strip-components 1
|
||||||
export PATH="/tmp/git-lfs:$PATH"
|
export PATH="/tmp/git-lfs:$PATH"
|
||||||
|
else
|
||||||
|
sudo apt-get -qq update
|
||||||
|
sudo apt-get install -y libsecret-1-dev
|
||||||
|
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.6.0
|
||||||
|
export PATH="$HOME/.yarn/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
before_script:
|
before_script:
|
||||||
- git lfs pull
|
- git lfs pull
|
||||||
|
@ -40,7 +38,6 @@ script:
|
||||||
else
|
else
|
||||||
yarn build --publish onTag
|
yarn build --publish onTag
|
||||||
fi
|
fi
|
||||||
- yarn danger ci
|
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
- "/^v\\d+\\.\\d+\\.\\d+$/"
|
- "/^v\\d+\\.\\d+\\.\\d+$/"
|
||||||
|
|
|
@ -94,7 +94,7 @@
|
||||||
"del": "^3.0.0",
|
"del": "^3.0.0",
|
||||||
"devtron": "^1.4.0",
|
"devtron": "^1.4.0",
|
||||||
"electron": "^1.8.4",
|
"electron": "^1.8.4",
|
||||||
"electron-builder": "^20.8.1",
|
"electron-builder": "^20.13.3",
|
||||||
"electron-devtools-installer": "^2.2.3",
|
"electron-devtools-installer": "^2.2.3",
|
||||||
"electron-webpack": "^1.13.0",
|
"electron-webpack": "^1.13.0",
|
||||||
"eslint": "^4.19.0",
|
"eslint": "^4.19.0",
|
||||||
|
|
Loading…
Reference in a new issue