travis 18

This commit is contained in:
Cutls 2019-05-27 02:28:08 +09:00
parent 7a1a6354df
commit 938ff926c3

View File

@ -9,7 +9,7 @@ script: node -v
before_deploy:
- npm install electron-builder -g
- cd app
- VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
- VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
- npm install
- if [ "$TRAVIS_OS_NAME" = "osx" ];then electron-builder --mac -p never;else :;fi
- if [ "$TRAVIS_OS_NAME" = "linux" ];then electron-builder --linux --x64 -p never;else :;fi