Skip to content

Commit

Permalink
Merge branch 'release/0.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
obcode committed May 29, 2019
2 parents f4fe097 + 1c1c578 commit 6bc83de
Show file tree
Hide file tree
Showing 15 changed files with 3,787 additions and 4,317 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
/node_modules
/dist
/releases
38 changes: 38 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
sudo: false

# Define Node.js as the programming language as we have a web application
language: node_js
node_js:
- node

os:
- linux
- osx

env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder

cache:
yarn: true
directories:
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
- $HOME/.npm/_prebuilds

before_cache:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then rm -rf $HOME/.cache/electron-builder/wine; fi

install:
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install yarn; fi
- yarn
- yarn build
- echo "Deploy linux version to GitHub"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then yarn release:linux; fi

- echo "Deploy windows version to GitHub"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then yarn release:win; fi

- echo "Deploy mac version to GitHub"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then yarn release:mac; fi
13 changes: 13 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
appId: obcode
artifactName: "${productName}-${os}-${arch}-${version}.${ext}"
asar: true
compression: maximum
copyright: "Copyright © Oliver Braun"
directories:
output: releases
files:
- "dist/"
- "static/"
- "node_modules/"
- "package.json"
productName: Elexams
Loading

0 comments on commit 6bc83de

Please sign in to comment.