2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 23:00:56 +00:00

chore: Travis script for electron build

This commit is contained in:
Faris Ansari 2019-12-13 15:35:01 +05:30
parent 20b7f0d0ac
commit ffcd81c7bc
3 changed files with 48 additions and 1 deletions

43
.travis.yml Normal file
View File

@ -0,0 +1,43 @@
matrix:
include:
- os: osx
osx_image: xcode10.2
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 | \
grep -Eo '^[^\s=]*(DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_)[^\s=]*' | \
sed '/^$/d;s/^/-e /' | \
paste -sd ' ' \
) \
-v ${PWD}:/project \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \
/bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn electron:build --linux --win"
else
yarn electron:build
fi
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"

5
electron-builder.yml Normal file
View File

@ -0,0 +1,5 @@
productName: Frappe Accounting
appId: io.frappe.accounting
snap:
publish:
- github

View File

@ -1,7 +1,6 @@
{
"name": "frappe-accounting",
"description": "Simple Accounting app for everyone",
"productName": "Frappe Accounting",
"version": "0.0.2",
"author": {
"name": "Frappe Technologies Pvt. Ltd.",