Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Commit

Permalink
Feature/settings window (#15)
Browse files Browse the repository at this point in the history
* Add travis file

* Fix command

* update command

* add npm install

* typo

* set env

* Add dist script
  • Loading branch information
TheSimpleZ authored Aug 12, 2019
1 parent c302a61 commit 2b355ca
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 14 deletions.
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
matrix:
include:
- os: osx
osx_image: xcode10.2
language: node_js
node_js: "12"
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder

- os: linux
services: docker
language: generic
env:
- ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true

cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder

script:
- npm install
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run --rm \
--env-file <(env | grep -vE '\r|\n' | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_') \
-v ${PWD}:/project \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \
/bin/bash -c "/project/node_modules/.bin/vue-cli-service electron:build --windows --linux"
else
./node_modules/.bin/vue-cli-service electron:build
fi
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine

branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
91 changes: 79 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"dist": "npm run electron:generate-icons && ./node_modules/.bin/vue-cli-service electron:build --linux",
"electron:build": "vue-cli-service electron:build",
"electron:serve": "vue-cli-service electron:serve",
"postinstall": "electron-builder install-app-deps",
Expand All @@ -30,6 +31,7 @@
"d3-selection": "^1.4.0",
"d3-transition": "^1.2.0",
"d3-zoom": "^1.7.3",
"electron-preferences": "^1.3.0",
"gopher-hcl": "^0.1.0",
"lodash.merge": "^4.6.2",
"reflect-metadata": "^0.1.13",
Expand All @@ -38,7 +40,6 @@
"vue-class-component": "^7.0.2",
"vue-highlightjs": "^1.3.3",
"vue-property-decorator": "^8.1.0",
"vuebar": "0.0.20",
"vuetify": "^1.5.5",
"vuex": "^3.1.1",
"vuex-class-component": "^1.6.0",
Expand Down Expand Up @@ -71,4 +72,4 @@
"> 1%",
"last 2 versions"
]
}
}

0 comments on commit 2b355ca

Please sign in to comment.