2018-06-25 11:21:45 +02:00
|
|
|
#!/usr/bin/env bash
|
2018-01-10 03:58:12 +01:00
|
|
|
|
|
|
|
set -e # fail on any error
|
2018-02-07 15:02:13 +01:00
|
|
|
#ARGUMENTS: 1. BUILD_PLATFORM (target for binaries) 2. PLATFORM (target for cargo) 3. ARC (architecture) 4. & 5. CC & CXX flags 6. binary identifier
|
2018-01-10 03:58:12 +01:00
|
|
|
BUILD_PLATFORM=$1
|
|
|
|
PLATFORM=$2
|
|
|
|
ARC=$3
|
|
|
|
CC=$4
|
|
|
|
CXX=$5
|
2018-02-07 15:02:13 +01:00
|
|
|
IDENT=$6
|
2018-02-12 10:54:15 +01:00
|
|
|
VER="$(grep -m 1 "version =" Cargo.toml | awk '{print $3}' | tr -d '"' | tr -d "\n")"
|
2018-01-15 06:20:04 +01:00
|
|
|
S3WIN=""
|
2018-01-10 03:58:12 +01:00
|
|
|
echo "--------------------"
|
|
|
|
echo "Build for platform: " $BUILD_PLATFORM
|
2018-02-07 15:02:13 +01:00
|
|
|
echo "Build identifier: " $IDENT
|
2018-01-10 03:58:12 +01:00
|
|
|
echo "Cargo target: " $PLATFORM
|
|
|
|
echo "CC&CXX flags: " $CC ", " $CXX
|
|
|
|
echo "Architecture: " $ARC
|
|
|
|
echo "Parity version: " $VER
|
|
|
|
echo "Branch: " $CI_BUILD_REF_NAME
|
2018-06-02 04:13:28 +02:00
|
|
|
echo "Protect? " $protect
|
2018-01-10 03:58:12 +01:00
|
|
|
echo "--------------------"
|
|
|
|
|
2018-06-13 11:26:35 +02:00
|
|
|
# NOTE for sha256 we want to display filename as well
|
2018-02-13 19:31:06 +01:00
|
|
|
# hence we use --* instead of -p *
|
|
|
|
SHA256_BIN="rhash --sha256"
|
|
|
|
|
2018-01-10 03:58:12 +01:00
|
|
|
set_env () {
|
2018-06-02 04:13:28 +02:00
|
|
|
echo "__________Set ENVIROMENT__________"
|
2018-01-10 09:44:36 +01:00
|
|
|
export HOST_CC=gcc
|
|
|
|
export HOST_CXX=g++
|
2018-01-10 03:58:12 +01:00
|
|
|
rm -rf .cargo
|
|
|
|
mkdir -p .cargo
|
|
|
|
echo "[target.$PLATFORM]" >> .cargo/config
|
|
|
|
echo "linker= \"$CC\"" >> .cargo/config
|
|
|
|
cat .cargo/config
|
|
|
|
}
|
2018-01-15 06:20:04 +01:00
|
|
|
set_env_win () {
|
|
|
|
set PLATFORM=x86_64-pc-windows-msvc
|
|
|
|
set INCLUDE="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include;C:\vs2015\VC\include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt"
|
|
|
|
set LIB="C:\vs2015\VC\lib;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64"
|
|
|
|
set RUST_BACKTRACE=1
|
|
|
|
#export RUSTFLAGS=$RUSTFLAGS
|
|
|
|
rustup default stable-x86_64-pc-windows-msvc
|
|
|
|
echo "@ signtool sign /f "\%"1 /p "\%"2 /tr http://timestamp.comodoca.com /du https://parity.io "\%"3" > sign.cmd
|
|
|
|
}
|
2018-01-10 03:58:12 +01:00
|
|
|
build () {
|
2018-06-02 04:13:28 +02:00
|
|
|
echo "__________Build parity__________"
|
|
|
|
time cargo build --target $PLATFORM --features final --release
|
|
|
|
echo "__________Build evmbin__________"
|
|
|
|
time cargo build --target $PLATFORM --release -p evmbin
|
|
|
|
echo "__________Build ethstore-cli__________"
|
|
|
|
time cargo build --target $PLATFORM --release -p ethstore-cli
|
|
|
|
echo "__________Build ethkey-cli__________"
|
|
|
|
time cargo build --target $PLATFORM --release -p ethkey-cli
|
2018-01-15 06:20:04 +01:00
|
|
|
}
|
2018-02-13 19:31:06 +01:00
|
|
|
strip_binaries () {
|
2018-06-02 04:13:28 +02:00
|
|
|
echo "__________Strip binaries__________"
|
2018-01-10 03:58:12 +01:00
|
|
|
$STRIP_BIN -v target/$PLATFORM/release/parity
|
|
|
|
$STRIP_BIN -v target/$PLATFORM/release/parity-evm
|
|
|
|
$STRIP_BIN -v target/$PLATFORM/release/ethstore
|
2018-06-02 04:13:28 +02:00
|
|
|
$STRIP_BIN -v target/$PLATFORM/release/ethkey;
|
2018-02-13 19:31:06 +01:00
|
|
|
}
|
|
|
|
calculate_checksums () {
|
2018-06-02 04:13:28 +02:00
|
|
|
echo "__________Checksum calculation__________"
|
2018-02-13 19:31:06 +01:00
|
|
|
rhash --version
|
2018-02-20 23:45:41 +01:00
|
|
|
|
2018-02-07 15:02:13 +01:00
|
|
|
rm -rf *.sha256
|
2018-02-20 23:45:41 +01:00
|
|
|
BIN="target/$PLATFORM/release/parity$S3WIN"
|
|
|
|
export SHA3="$($BIN tools hash $BIN)"
|
2018-02-13 19:31:06 +01:00
|
|
|
|
|
|
|
echo "Parity file SHA3: $SHA3"
|
|
|
|
$SHA256_BIN target/$PLATFORM/release/parity$S3WIN > parity$S3WIN.sha256
|
|
|
|
$SHA256_BIN target/$PLATFORM/release/parity-evm$S3WIN > parity-evm$S3WIN.sha256
|
|
|
|
$SHA256_BIN target/$PLATFORM/release/ethstore$S3WIN > ethstore$S3WIN.sha256
|
|
|
|
$SHA256_BIN target/$PLATFORM/release/ethkey$S3WIN > ethkey$S3WIN.sha256
|
2018-05-09 23:26:30 +02:00
|
|
|
$SHA256_BIN target/$PLATFORM/release/whisper$S3WIN > whisper$S3WIN.sha256
|
2018-01-10 03:58:12 +01:00
|
|
|
}
|
2018-02-13 19:31:06 +01:00
|
|
|
sign_exe () {
|
2018-06-02 04:13:28 +02:00
|
|
|
if [[ -z "$protect" ]]; then echo "__________Skipping sign binaries__________"&&return; fi
|
2018-01-15 06:20:04 +01:00
|
|
|
./sign.cmd $keyfile $certpass "target/$PLATFORM/release/parity.exe"
|
2018-08-02 13:58:36 +02:00
|
|
|
<<<<<<< HEAD:scripts/gitlab/build.sh
|
2018-06-02 04:13:28 +02:00
|
|
|
./sign.cmd $keyfile $certpass windows/ptray/x64/release/ptray.exe
|
2018-02-13 19:31:06 +01:00
|
|
|
}
|
|
|
|
make_exe () {
|
2018-01-15 06:20:04 +01:00
|
|
|
./msbuild.cmd
|
2018-06-02 04:13:28 +02:00
|
|
|
sign_exe
|
2018-01-15 06:20:04 +01:00
|
|
|
cd nsis
|
|
|
|
curl -sL --url "https://github.com/paritytech/win-build/raw/master/vc_redist.x64.exe" -o vc_redist.x64.exe
|
|
|
|
echo "makensis.exe installer.nsi" > nsis.cmd
|
|
|
|
./nsis.cmd
|
|
|
|
cd ..
|
2018-02-07 15:02:13 +01:00
|
|
|
cp nsis/installer.exe "parity_"$VER"_"$IDENT"_"$ARC"."$EXT
|
|
|
|
./sign.cmd $keyfile $certpass "parity_"$VER"_"$IDENT"_"$ARC"."$EXT
|
2018-02-13 19:31:06 +01:00
|
|
|
$MD5_BIN "parity_"$VER"_"$IDENT"_"$ARC"."$EXT -p %h > "parity_"$VER"_"$IDENT"_"$ARC"."$EXT".md5"
|
|
|
|
$SHA256_BIN "parity_"$VER"_"$IDENT"_"$ARC"."$EXT -p %h > "parity_"$VER"_"$IDENT"_"$ARC"."$EXT".sha256"
|
2018-08-02 13:58:36 +02:00
|
|
|
=======
|
2018-06-22 11:56:06 +02:00
|
|
|
./sign.cmd $keyfile $certpass "target/$PLATFORM/release/parity-evm.exe"
|
|
|
|
./sign.cmd $keyfile $certpass "target/$PLATFORM/release/ethstore.exe"
|
|
|
|
./sign.cmd $keyfile $certpass "target/$PLATFORM/release/ethkey.exe"
|
|
|
|
./sign.cmd $keyfile $certpass "target/$PLATFORM/release/whisper.exe"
|
2018-08-02 13:58:36 +02:00
|
|
|
>>>>>>> master:scripts/gitlab-build.sh
|
2018-01-15 06:20:04 +01:00
|
|
|
}
|
2018-06-02 04:13:28 +02:00
|
|
|
push_snap () {
|
|
|
|
if [[ -z "$protect" ]]; then echo "__________Skipping push and release snap__________"&&return; fi
|
|
|
|
snapcraft_login=$(expect -c "
|
|
|
|
spawn snapcraft login
|
|
|
|
expect \"Email:\"
|
|
|
|
send \"$SNAP_EMAIL\n\"
|
|
|
|
expect \"Password:\"
|
|
|
|
send \"$SNAP_PASS\n\"
|
|
|
|
expect \"\$\"
|
|
|
|
")
|
|
|
|
echo "$snapcraft_login"
|
|
|
|
snapcraft push "parity_"$VER"_"$ARC".snap" >> push.log
|
|
|
|
cat push.log
|
|
|
|
REVISION="$(grep -m 1 "Revision " push.log | awk '{print $2}')"
|
|
|
|
echo "__________Revision__________"
|
|
|
|
echo $REVISION
|
|
|
|
sleep 120
|
|
|
|
if [[ "$CI_BUILD_REF_NAME" = "beta" || "$VER" == *1.9* ]];
|
|
|
|
then
|
|
|
|
snapcraft release parity_"$VER"_"$ARC".snap $REVISION beta
|
|
|
|
snapcraft release parity_"$VER"_"$ARC".snap $REVISION candidate;
|
|
|
|
fi
|
|
|
|
if [[ "$CI_BUILD_REF_NAME" = "nightly" ]];
|
|
|
|
then
|
|
|
|
snapcraft release parity_"$VER"_"$ARC".snap $REVISION edge;
|
|
|
|
fi
|
|
|
|
if [[ "$CI_BUILD_REF_NAME" = "beta" || "$VER" == *1.8* ]];
|
|
|
|
then
|
|
|
|
snapcraft release parity_"$VER"_"$ARC".snap $REVISION stable;
|
|
|
|
fi
|
|
|
|
snapcraft status parity
|
|
|
|
snapcraft logout
|
|
|
|
}
|
|
|
|
make_snap () {
|
|
|
|
export HOST_CC=gcc
|
|
|
|
export HOST_CXX=g++
|
|
|
|
apt install -y expect zip rhash
|
|
|
|
snapcraft clean
|
|
|
|
echo "__________ Prepare snapcraft.yaml for build on Gitlab CI in Docker image __________"
|
|
|
|
sed -i 's/git/'"$VER"'/g' snap/snapcraft.yaml
|
|
|
|
if [[ "$CI_BUILD_REF_NAME" = "beta" || "$VER" == *1.9* ]];
|
|
|
|
then
|
|
|
|
sed -i -e 's/grade: devel/grade: stable/' snap/snapcraft.yaml;
|
|
|
|
fi
|
|
|
|
if [[ "$ARC" = "i386" ]];
|
|
|
|
then
|
|
|
|
export ARCH=i686&&ln -s /usr/bin/gcc /usr/bin/i386-linux-gnu-gcc;
|
|
|
|
fi
|
|
|
|
mv -f snap/snapcraft.yaml snapcraft.yaml
|
|
|
|
snapcraft --target-arch=$ARC -d
|
|
|
|
echo "__________Build comlete__________"
|
|
|
|
push_snap
|
|
|
|
echo "__________Checksum calculation__________"
|
|
|
|
$MD5_BIN "parity_"$VER"_"$ARC".snap" > "parity_"$VER"_"$ARC".snap.md5"
|
|
|
|
$SHA256_BIN "parity_"$VER"_"$ARC".snap" > "parity_"$VER"_"$ARC".snap.sha256"
|
|
|
|
echo "__________Copy all artifacts to one place__________"
|
|
|
|
rm -rf artifacts
|
|
|
|
mkdir -p artifacts
|
|
|
|
cp "parity_"$VER"_"$ARC".snap" artifacts
|
|
|
|
cp "parity_"$VER"_"$ARC".snap.md5" artifacts
|
|
|
|
cp "parity_"$VER"_"$ARC".snap.sha256" artifacts
|
|
|
|
}
|
2018-01-10 03:58:12 +01:00
|
|
|
push_binaries () {
|
2018-06-02 04:13:28 +02:00
|
|
|
if [[ -z "$protect" ]]; then echo "__________Skipping push to S3__________"&&return; fi
|
|
|
|
echo "__________Push binaries to AWS S3__________"
|
2018-01-10 03:58:12 +01:00
|
|
|
aws configure set aws_access_key_id $s3_key
|
|
|
|
aws configure set aws_secret_access_key $s3_secret
|
2018-06-18 11:49:15 +02:00
|
|
|
if [[ "$CI_BUILD_REF_NAME" = "beta" || "$CI_BUILD_REF_NAME" = "stable" || "$CI_BUILD_REF_NAME" = "nightly" ]];
|
2018-01-10 03:58:12 +01:00
|
|
|
then
|
|
|
|
export S3_BUCKET=builds-parity-published;
|
|
|
|
else
|
|
|
|
export S3_BUCKET=builds-parity;
|
|
|
|
fi
|
|
|
|
aws s3 rm --recursive s3://$S3_BUCKET/$CI_BUILD_REF_NAME/$BUILD_PLATFORM
|
2018-01-15 06:20:04 +01:00
|
|
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity$S3WIN --body target/$PLATFORM/release/parity$S3WIN
|
2018-02-07 15:02:13 +01:00
|
|
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity$S3WIN.sha256 --body parity$S3WIN.sha256
|
2018-01-15 06:20:04 +01:00
|
|
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity-evm$S3WIN --body target/$PLATFORM/release/parity-evm$S3WIN
|
2018-02-07 15:02:13 +01:00
|
|
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/parity-evm$S3WIN.sha256 --body parity-evm$S3WIN.sha256
|
2018-01-15 06:20:04 +01:00
|
|
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethstore$S3WIN --body target/$PLATFORM/release/ethstore$S3WIN
|
2018-02-07 15:02:13 +01:00
|
|
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethstore$S3WIN.sha256 --body ethstore$S3WIN.sha256
|
2018-01-15 06:20:04 +01:00
|
|
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethkey$S3WIN --body target/$PLATFORM/release/ethkey$S3WIN
|
2018-02-07 15:02:13 +01:00
|
|
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/ethkey$S3WIN.sha256 --body ethkey$S3WIN.sha256
|
2018-05-09 23:26:30 +02:00
|
|
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/whisper$S3WIN --body target/$PLATFORM/release/whisper$S3WIN
|
|
|
|
aws s3api put-object --bucket $S3_BUCKET --key $CI_BUILD_REF_NAME/$BUILD_PLATFORM/whisper$S3WIN.sha256 --body whisper$S3WIN.sha256
|
2018-01-10 03:58:12 +01:00
|
|
|
}
|
2018-06-18 11:49:15 +02:00
|
|
|
|
2018-01-10 03:58:12 +01:00
|
|
|
make_archive () {
|
|
|
|
echo "add artifacts to archive"
|
|
|
|
rm -rf parity.zip
|
2018-06-13 11:26:35 +02:00
|
|
|
zip -r parity.zip target/$PLATFORM/release/parity$S3WIN target/$PLATFORM/release/parity-evm$S3WIN target/$PLATFORM/release/ethstore$S3WIN target/$PLATFORM/release/ethkey$S3WIN target/$PLATFORM/release/whisper$S3WIN parity$S3WIN.sha256 parity-evm$S3WIN.sha256 ethstore$S3WIN.sha256 ethkey$S3WIN.sha256 whisper$S3WIN.sha256
|
2018-01-10 03:58:12 +01:00
|
|
|
}
|
2018-02-13 19:31:06 +01:00
|
|
|
updater_push_release () {
|
2018-06-02 04:13:28 +02:00
|
|
|
echo "__________Build comlete__________"
|
|
|
|
if [[ -z "$protect" ]]; then echo "__________Skipping push release__________"&&return; fi
|
|
|
|
echo "__________Push release___________"
|
2018-02-13 19:31:06 +01:00
|
|
|
DATA="commit=$CI_BUILD_REF&sha3=$SHA3&filename=parity$S3WIN&secret=$RELEASES_SECRET"
|
|
|
|
# Mainnet
|
|
|
|
source scripts/safe_curl.sh $DATA "http://update.parity.io:1337/push-build/$CI_BUILD_REF_NAME/$BUILD_PLATFORM"
|
|
|
|
# Kovan
|
|
|
|
source scripts/safe_curl.sh $DATA "http://update.parity.io:1338/push-build/$CI_BUILD_REF_NAME/$BUILD_PLATFORM"
|
2018-01-10 03:58:12 +01:00
|
|
|
}
|
2018-06-02 04:13:28 +02:00
|
|
|
build_and_push () {
|
|
|
|
build
|
|
|
|
strip_binaries
|
|
|
|
calculate_checksums
|
|
|
|
make_deb
|
|
|
|
prepare_artifacts
|
|
|
|
push_binaries
|
|
|
|
updater_push_release
|
|
|
|
}
|
2018-01-10 03:58:12 +01:00
|
|
|
case $BUILD_PLATFORM in
|
|
|
|
x86_64-unknown-linux-gnu)
|
|
|
|
#set strip bin
|
|
|
|
STRIP_BIN="strip"
|
2018-01-10 09:44:36 +01:00
|
|
|
#package extention
|
2018-01-10 03:58:12 +01:00
|
|
|
build
|
2018-02-13 19:31:06 +01:00
|
|
|
strip_binaries
|
|
|
|
calculate_checksums
|
2018-01-10 03:58:12 +01:00
|
|
|
make_archive
|
|
|
|
push_binaries
|
2018-06-02 04:13:28 +02:00
|
|
|
updater_push_release
|
2018-01-10 03:58:12 +01:00
|
|
|
;;
|
|
|
|
i686-unknown-linux-gnu)
|
|
|
|
STRIP_BIN="strip"
|
|
|
|
set_env
|
2018-08-02 13:58:36 +02:00
|
|
|
<<<<<<< HEAD:scripts/gitlab/build.sh
|
2018-06-02 04:13:28 +02:00
|
|
|
build_and_push
|
2018-08-02 13:58:36 +02:00
|
|
|
=======
|
2018-01-10 03:58:12 +01:00
|
|
|
build
|
2018-02-13 19:31:06 +01:00
|
|
|
strip_binaries
|
|
|
|
calculate_checksums
|
2018-01-10 03:58:12 +01:00
|
|
|
make_archive
|
|
|
|
push_binaries
|
2018-08-02 13:58:36 +02:00
|
|
|
>>>>>>> master:scripts/gitlab-build.sh
|
2018-01-10 03:58:12 +01:00
|
|
|
;;
|
|
|
|
armv7-unknown-linux-gnueabihf)
|
|
|
|
STRIP_BIN="arm-linux-gnueabihf-strip"
|
|
|
|
set_env
|
|
|
|
build
|
2018-02-13 19:31:06 +01:00
|
|
|
strip_binaries
|
|
|
|
calculate_checksums
|
2018-01-10 03:58:12 +01:00
|
|
|
make_archive
|
|
|
|
push_binaries
|
|
|
|
;;
|
|
|
|
arm-unknown-linux-gnueabihf)
|
|
|
|
STRIP_BIN="arm-linux-gnueabihf-strip"
|
|
|
|
set_env
|
|
|
|
build
|
2018-02-13 19:31:06 +01:00
|
|
|
strip_binaries
|
|
|
|
calculate_checksums
|
2018-01-10 03:58:12 +01:00
|
|
|
make_archive
|
|
|
|
push_binaries
|
|
|
|
;;
|
|
|
|
aarch64-unknown-linux-gnu)
|
|
|
|
STRIP_BIN="aarch64-linux-gnu-strip"
|
|
|
|
set_env
|
|
|
|
build
|
2018-02-13 19:31:06 +01:00
|
|
|
strip_binaries
|
|
|
|
calculate_checksums
|
2018-01-10 03:58:12 +01:00
|
|
|
make_archive
|
|
|
|
push_binaries
|
|
|
|
;;
|
|
|
|
x86_64-apple-darwin)
|
|
|
|
STRIP_BIN="strip"
|
|
|
|
PLATFORM="x86_64-apple-darwin"
|
|
|
|
build
|
2018-02-13 19:31:06 +01:00
|
|
|
strip_binaries
|
|
|
|
calculate_checksums
|
2018-01-10 03:58:12 +01:00
|
|
|
make_archive
|
|
|
|
push_binaries
|
2018-02-13 19:31:06 +01:00
|
|
|
updater_push_release
|
2018-01-10 03:58:12 +01:00
|
|
|
;;
|
|
|
|
x86_64-unknown-snap-gnu)
|
|
|
|
ARC="amd64"
|
|
|
|
EXT="snap"
|
2018-04-25 16:25:57 +02:00
|
|
|
apt update
|
2018-02-14 22:19:59 +01:00
|
|
|
apt install -y expect zip rhash
|
2018-02-14 12:39:08 +01:00
|
|
|
snapcraft clean
|
|
|
|
echo "Prepare snapcraft.yaml for build on Gitlab CI in Docker image"
|
|
|
|
sed -i 's/git/'"$VER"'/g' snap/snapcraft.yaml
|
2018-07-20 19:55:17 +02:00
|
|
|
if [[ "$CI_BUILD_REF_NAME" = "stable" || "$CI_BUILD_REF_NAME" = "beta" || "$VER" == *1.11* || "$VER" == *2.0* ]];
|
2018-02-14 12:39:08 +01:00
|
|
|
then
|
|
|
|
sed -i -e 's/grade: devel/grade: stable/' snap/snapcraft.yaml;
|
|
|
|
fi
|
|
|
|
mv -f snap/snapcraft.yaml snapcraft.yaml
|
|
|
|
snapcraft -d
|
|
|
|
snapcraft_login=$(expect -c "
|
|
|
|
spawn snapcraft login
|
|
|
|
expect \"Email:\"
|
|
|
|
send \"$SNAP_EMAIL\n\"
|
|
|
|
expect \"Password:\"
|
|
|
|
send \"$SNAP_PASS\n\"
|
|
|
|
expect \"\$\"
|
|
|
|
")
|
|
|
|
echo "$snapcraft_login"
|
|
|
|
snapcraft push "parity_"$VER"_amd64.snap"
|
|
|
|
snapcraft status parity
|
|
|
|
snapcraft logout
|
2018-02-14 22:19:59 +01:00
|
|
|
$SHA256_BIN "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.sha256"
|
2018-02-14 12:39:08 +01:00
|
|
|
echo "add artifacts to archive"
|
|
|
|
rm -rf parity.zip
|
2018-06-13 11:26:35 +02:00
|
|
|
zip -r parity.zip "parity_"$VER"_amd64.snap" "parity_"$VER"_amd64.snap.sha256"
|
2018-01-10 03:58:12 +01:00
|
|
|
;;
|
|
|
|
x86_64-pc-windows-msvc)
|
2018-01-15 06:20:04 +01:00
|
|
|
set_env_win
|
|
|
|
EXT="exe"
|
|
|
|
S3WIN=".exe"
|
|
|
|
build
|
2018-02-13 19:31:06 +01:00
|
|
|
sign_exe
|
|
|
|
calculate_checksums
|
2018-01-15 06:20:04 +01:00
|
|
|
make_archive
|
|
|
|
push_binaries
|
2018-02-13 19:31:06 +01:00
|
|
|
updater_push_release
|
2018-01-10 03:58:12 +01:00
|
|
|
esac
|