Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.

Commit 1584998

Browse files
Merge pull request #194 from gnosis/develop
Add AppVeyor deployment
2 parents e2b4b3f + e0b4a44 commit 1584998

File tree

5 files changed

+71
-3
lines changed

5 files changed

+71
-3
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ script:
2626
- npm run test-dapp
2727
- npm run test
2828
before_deploy:
29-
- chmod +x prepare_deploy.sh
30-
- ./prepare_deploy.sh
29+
- chmod +x prepare_deploy_linux.sh
30+
- ./prepare_deploy_linux.sh
3131
deploy:
3232
- provider: s3
3333
bucket: wallet-development

appveyor.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
platform:
2+
- x64
3+
4+
# branches to build
5+
branches:
6+
# whitelist
7+
only:
8+
- master
9+
- develop
10+
11+
skip_tags: true
12+
13+
# Maximum number of concurrent jobs for the project
14+
max_jobs: 1
15+
16+
# set clone depth
17+
clone_depth: 5 # clone entire repository history if not defined
18+
19+
# to run your custom scripts instead of automatic tests
20+
# test_script:
21+
# - npm run test-dapp
22+
# - npm run test
23+
24+
# scripts that run after cloning repository
25+
install:
26+
- ps: Install-Product node 8 x64
27+
- ps: $env:DEBUG = "electron-builder"
28+
- npm i -g --production windows-build-tools
29+
- cd dapp && rm -rf node_modules && rm package-lock.json && yarn add secp256k1 && yarn install && cd ..
30+
31+
# to run your custom scripts instead of automatic MSBuild
32+
build_script:
33+
- cd dapp/ && mkdir dist && yarn run build-win
34+
35+
# scripts to run before deployment
36+
after_build:
37+
- chmod +x prepare_deploy_win.sh
38+
- prepare_deploy_win.sh
39+
- cp dapp/dist/*.exe .
40+
41+
artifacts:
42+
path: '*.exe'
43+
name: exe
44+
45+
environment:
46+
access_key_id:
47+
secure: RpimOJdJROGTnBToRjUoRBn7Tlnwc1eNHaAHpFcy1yk=
48+
secret_access_key:
49+
secure: LSAZENPbfm21aJt8qzYmuVmmlXnLGIwOKheK+hIlMd9jr2JsJyBjUhEbre6F6ZNq
50+
51+
deploy:
52+
provider: S3
53+
access_key_id: "%access_key_id%"
54+
secret_access_key: "%secret_access_key%"
55+
bucket: wallet-desktop-builds
56+
region: us-east-1
57+
artifact: "exe"

dapp/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
"electron": "1.8.4",
9696
"electron-builder": "20.15.1",
9797
"electron-packager": "8.7.2",
98-
"electron-rebuild": "1.7.3",
9998
"growl": "^1.10.5",
10099
"grunt": "1.0.0",
101100
"grunt-contrib-jshint": "1.1.0",
File renamed without changes.

prepare_deploy_win.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
echo "=== PREPARE DEPLOY ==="
4+
5+
if [[ ${APPVEYOR_REPO_TAG} == true ]]; then
6+
# it is a TAG
7+
# rename .exe file
8+
echo "Renaming multisigweb.*.exe to multisigweb-$APPVEYOR_REPO_TAG.exe"
9+
mv dapp/dist/multisigweb*.exe dapp/dist/multisigweb-$APPVEYOR_REPO_TAG.exe
10+
fi
11+
12+
echo "=== PREPARE DEPLOY DONE ==="

0 commit comments

Comments
 (0)