-
Notifications
You must be signed in to change notification settings - Fork 5
/
publish.sh
executable file
·22 lines (18 loc) · 1.06 KB
/
publish.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
brew install rpm
git clone https://github.com/atomiclabs/hyperdex
cd hyperdex/app
LATEST_COMMIT_SHA=$(git rev-parse HEAD)
LATEST_COMMIT_SHA_SHORT=$(git rev-parse --short HEAD)
npx dot-json package.json name 'hyperdex-nightly'
npx dot-json package.json productName 'HyperDEX Nightly'
npx dot-json package.json version "0.0.0-$LATEST_COMMIT_SHA_SHORT-$(echo $(npx utc-version))"
cd ..
LATEST_NIGHTLY_TAG=$(cd .. && git describe --tags $(git rev-list --tags --max-count=1))
NIGHTLY_HYPERDEX_COMMIT=$(git rev-parse $(echo "$LATEST_NIGHTLY_TAG" | cut -d- -f2))
RELEASE_NOTES="Changes: https://github.com/atomiclabs/hyperdex/compare/$NIGHTLY_HYPERDEX_COMMIT...$LATEST_COMMIT_SHA"
npx dot-json package.json repository 'atomiclabs/hyperdex-nightlies'
npx dot-json package.json build.appId 'com.lukechilds.hyperdex-nightly'
npm install
webpack --mode=production
electron-builder --mac --linux --win --publish=always --config.releaseInfo.releaseNotes "$RELEASE_NOTES" --config.publish.provider=github --config.publish.releaseType=release --config.publish.publishAutoUpdate=false