forked from gnosis/MultiSigWallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepare_deploy_linux.sh
32 lines (24 loc) · 1.17 KB
/
prepare_deploy_linux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
ENABLED_BRANCH="develop"
echo "=== PREPARE DEPLOY ==="
# Check dist is for desktop devices and the commit was towards
if [[ ${DIST} == "desktop" ]] && [[ ${TRAVIS_BRANCH} == ${ENABLED_BRANCH} || ${TRAVIS_BRANCH} == ${TRAVIS_TAG} ]] && [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
cd dapp/ && mkdir dist && npm run build-libs-electron && npm run build-linux;
if [[ ${TRAVIS_BRANCH} == ${TRAVIS_TAG} ]]; then
# it is a TAG
mv multisigweb*.deb multisigweb-$TRAVIS_TAG.deb;
fi
fi
if [[ ${DIST} == "desktop" ]] && [[ ${TRAVIS_BRANCH} == ${ENABLED_BRANCH} || ${TRAVIS_BRANCH} == ${TRAVIS_TAG} ]] && [[ ${TRAVIS_OS_NAME} == "osx" ]]; then
cd dapp/ && mkdir dist && npm run build-libs-electron && npm run build-osx;
if [[ ${TRAVIS_BRANCH} == ${TRAVIS_TAG} ]]; then
# it is a TAG
mv multisigweb*-mac.zip multisigweb-$TRAVIS_TAG-mac.zip;
mv multisigweb*.dmg multisigweb-$TRAVIS_TAG.dmg;
fi
fi
if [[ ${DIST} == "web" ]] && [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
# Copy package.json into the web project, it's required to load the APP version on the UI
cd dapp/ && npm run build-libs-web && npm run copy-package;
fi
echo "=== PREPARE DEPLOY DONE ==="