|
|
@ -24,8 +24,21 @@ if [ -z "$GH_TOKEN" ]; then |
|
|
|
fi |
|
|
|
|
|
|
|
if [ ! -d "static/fonts/museosans" ]; then |
|
|
|
echo "static/fonts/museosans is required for a release" >&2 |
|
|
|
exit 1 |
|
|
|
if ! command -v aws ; then |
|
|
|
runJob "sudo apt install awscli" "installing aws cli..." "installed aws cli" "failed to install aws cli" |
|
|
|
fi |
|
|
|
|
|
|
|
runJob \ |
|
|
|
"set -e ;\ |
|
|
|
rm -rf /tmp/museosans* ;\ |
|
|
|
aws s3 cp s3://ledger-ledgerlive-resources-dev/resources/museosans.zip /tmp/museosans.zip ;\ |
|
|
|
unzip /tmp/museosans.zip -d /tmp/museosans ;\ |
|
|
|
mv /tmp/museosans/museosans static/fonts ;\ |
|
|
|
rm static/fonts/museosans/.DS_Store # remove crappy macOS file ;\ |
|
|
|
rm -rf /tmp/museosans*" \ |
|
|
|
"no museosans font. fetching it from private bucket..." \ |
|
|
|
"successfully fetched museosans" \ |
|
|
|
"error fetching museosans" |
|
|
|
fi |
|
|
|
|
|
|
|
if ! git diff-index --quiet HEAD --; then |
|
|
@ -33,10 +46,13 @@ if ! git diff-index --quiet HEAD --; then |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
|
|
|
|
# TODO check if version is not already there |
|
|
|
# TODO check if local git HEAD is EXACTLY our remote master HEAD |
|
|
|
originRemote=$(git config --get remote.origin.url) |
|
|
|
if [ "$originRemote" != "https://github.com/LedgerHQ/ledger-live-desktop.git" ]; then |
|
|
|
echo "the origin remote is incorrect ($originRemote)" |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
|
|
|
|
yarn compile |
|
|
|
runJob "yarn compile" "compiling..." "compiled" "failed to compile" "verbose" |
|
|
|
|
|
|
|
runJob \ |
|
|
|
"DEBUG=electron-builder electron-builder build --publish always" \ |
|
|
|