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

Commit

Permalink
#1 [CI] Auto deploy using travis
Browse files Browse the repository at this point in the history
  • Loading branch information
hleb-albau committed Oct 23, 2018
1 parent 581e768 commit 4e84d4b
Show file tree
Hide file tree
Showing 6 changed files with 1,796 additions and 19,121 deletions.
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

if: tag IS present
tags: true
all_branches: true
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+

matrix:
include:
- os: osx
osx_image: xcode10
language: node_js
node_js: "10"
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder

- os: linux
services: docker
language: generic

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

script:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run --rm \
--env-file <(env | grep -v '\r' | 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 ' CI=false yarn --link-duplicates --pure-lockfile && CI=false yarn run release --publish onTag --linux --win'
else
CI=false yarn run release --publish onTag
fi
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine

48 changes: 48 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
appId: cyb
productName: cyb
compression: normal

directories:
output: dist
buildResources: ./
app: .


publish:
provider: github
releaseType: release

# Mac builds
###########################################################
mac:
artifactName: ${name}-${version}-${os}-${arch}.${ext}
category: public.app-category.productivity
icon: ./assets/icon/logo_cyb_512x512.png
target:
- target: dmg
- target: zip


# Linux builds
###########################################################
linux:
artifactName: ${name}-${version}-${os}-${arch}.${ext}
icon: ./assets/icon/logo_cyb_512x512.png
synopsis: cyb
description: Web 3 Browser
category: WebBrowser
target:
- target: deb
- target: tar.gz


# Win builds
###########################################################
win:
artifactName: ${name}-${version}-${os}-${arch}.${ext}
icon: ./icons/icon-512x512.png
target:
- target: nsis

nsis:
artifactName: ${name}-${version}-${os}-${arch}.${ext}
15 changes: 0 additions & 15 deletions electron/config.json

This file was deleted.

Loading

0 comments on commit 4e84d4b

Please sign in to comment.