haveno/desktop/package/macosx/finalize.sh

70 lines
2.1 KiB
Bash
Raw Normal View History

2021-05-05 00:20:01 +00:00
#!/bin/bash
cd ../../
2022-07-15 16:08:37 +00:00
version="0.0.1-SNAPSHOT"
2021-05-05 00:20:01 +00:00
target_dir="releases/$version"
# Set HAVENO_GPG_USER as environment var to the email address used for gpg signing. e.g. HAVENO_GPG_USER=manfred@bitsquare.io
# Set HAVENO_VM_PATH as environment var to the directory where your shared folders for virtual box are residing
2021-05-05 00:20:01 +00:00
vmPath=$HAVENO_VM_PATH
2021-05-05 00:20:01 +00:00
linux64=$vmPath/vm_shared_ubuntu
win64=$vmPath/vm_shared_windows
macos=$vmPath/vm_shared_macosx
deployDir=deploy
rm -r $target_dir
mkdir -p $target_dir
# sig key mkarrer
cp "$target_dir/../../package/F379A1C6.asc" "$target_dir/"
# sig key cbeams
cp "$target_dir/../../package/5BC5ED73.asc" "$target_dir/"
# sig key Christoph Atteneder
cp "$target_dir/../../package/29CDFD3B.asc" "$target_dir/"
# signing key
cp "$target_dir/../../package/signingkey.asc" "$target_dir/"
dmg="Haveno-$version.dmg"
2021-05-05 00:20:01 +00:00
cp "$macos/$dmg" "$target_dir/"
deb="haveno_$version-1_amd64.deb"
deb64="Haveno-64bit-$version.deb"
2021-05-05 00:20:01 +00:00
cp "$linux64/$deb" "$target_dir/$deb64"
rpm="haveno-$version-1.x86_64.rpm"
rpm64="Haveno-64bit-$version.rpm"
2021-05-05 00:20:01 +00:00
cp "$linux64/$rpm" "$target_dir/$rpm64"
exe="Haveno-$version.exe"
exe64="Haveno-64bit-$version.exe"
2021-05-05 00:20:01 +00:00
cp "$win64/$exe" "$target_dir/$exe64"
rpi="jar-lib-for-raspberry-pi-$version.zip"
cp "$deployDir/$rpi" "$target_dir/"
cd "$target_dir"
echo Create signatures
gpg --digest-algo SHA256 --local-user $HAVENO_GPG_USER --output $dmg.asc --detach-sig --armor $dmg
gpg --digest-algo SHA256 --local-user $HAVENO_GPG_USER --output $deb64.asc --detach-sig --armor $deb64
gpg --digest-algo SHA256 --local-user $HAVENO_GPG_USER --output $rpm64.asc --detach-sig --armor $rpm64
gpg --digest-algo SHA256 --local-user $HAVENO_GPG_USER --output $exe64.asc --detach-sig --armor $exe64
gpg --digest-algo SHA256 --local-user $HAVENO_GPG_USER --output $rpi.asc --detach-sig --armor $rpi
2021-05-05 00:20:01 +00:00
echo Verify signatures
gpg --digest-algo SHA256 --verify $dmg{.asc*,}
gpg --digest-algo SHA256 --verify $deb64{.asc*,}
gpg --digest-algo SHA256 --verify $rpm64{.asc*,}
gpg --digest-algo SHA256 --verify $exe64{.asc*,}
gpg --digest-algo SHA256 --verify $rpi{.asc*,}
mkdir $win64/$version
cp -r . $win64/$version
open "."