Skip to content

Commit

Permalink
Add script for signing
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer committed Apr 26, 2016
1 parent 9676439 commit 9a3b16f
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 24 deletions.
22 changes: 0 additions & 22 deletions package/mac/collect_files.sh

This file was deleted.

4 changes: 2 additions & 2 deletions package/mac/create_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ rm "gui/deploy/Bitsquare.html"
rm "gui/deploy/Bitsquare.jnlp"

mv "gui/deploy/bundles/Bitsquare-$fullVersion.dmg" "gui/deploy/Bitsquare-$fullVersion.dmg"
rm "gui/deploy/bundles"
rm -r "gui/deploy/bundles"

mv "gui/deploy/SeedNode.jar" "gui/deploy/SeedNode-0.4.4.jar"
mv "gui/deploy/SeedNode.jar" "gui/deploy/SeedNode-$fullVersion.jar"


cd package/mac
50 changes: 50 additions & 0 deletions package/mac/finalize.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash

version="0.4.4"

target_dir="/Users/mk/Documents/__bitsquare/_releases/$version"

cp "/Users/mk/Documents/_intellij/bitsquare/gui/deploy/Bitsquare-0.4.4.dmg" "$target_dir/Bitsquare-0.4.4.dmg"
cp "/Users/mk/Documents/_intellij/bitsquare/gui/deploy/SeedNode-0.4.4.jar" "$target_dir/SeedNode-0.4.4.jar"

linux32="Bitsquare-32bit-$version.deb"
cp "/Users/mk/vm_shared_ubuntu14_32bit/$linux32" "$target_dir/$linux32"

linux64="Bitsquare-64bit-$version.deb"
cp "/Users/mk/vm_shared_ubuntu/$linux64" "$target_dir/$linux64"

exe="Bitsquare.exe"
cp "/Users/mk/vm_shared_windows_32bit/bundles/$exe" "$target_dir/Bitsquare-32bit-$version.exe"
cp "/Users/mk/vm_shared_windows/bundles/$exe" "$target_dir/Bitsquare-64bit-$version.exe"
cp "/Users/mk/vm_shared_windows/bundles/$exe" "/Users/mk/vm_shared_win10/Bitsquare-64bit-$version.exe"

cp "hashes.template" "$target_dir/hashes.template"
cd "$target_dir"

MAC="Bitsquare-$version.dmg"
HASH_MAC="$(shasum -a 256 $MAC)"

DEB_64="Bitsquare-64bit-$version.deb"
HASH_DEB_64="$(shasum -a 256 $DEB_64)"

DEB_64="Bitsquare-64bit-$version.deb"
HASH_DEB_64="$(shasum -a 256 $DEB_64)"

DEB_32="Bitsquare-32bit-$version.deb"
HASH_DEB_32="$(shasum -a 256 $DEB_32)"

WIN_64="Bitsquare-64bit-$version.exe"
HASH_WIN_64="$(shasum -a 256 $WIN_64)"

WIN_32="Bitsquare-32bit-$version.exe"
HASH_WIN_32="$(shasum -a 256 $WIN_32)"

sed -e "s|HASH_MAC|$HASH_MAC|" -e "s|HASH_DEB_64|$HASH_DEB_64|" -e "s|HASH_DEB_32|$HASH_DEB_32|" -e "s|HASH_WIN_64|$HASH_WIN_64|" -e "s|HASH_WIN_32|$HASH_WIN_32|" hashes.template > hashes.txt

gpg --local-user manfred@bitsquare.io --output signed_hashes.txt --clearsign hashes.txt
gpg --verify signed_hashes.txt

rm "$target_dir/hashes.template"
rm "$target_dir/hashes.txt"

open "$target_dir"
5 changes: 5 additions & 0 deletions package/mac/hashes.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
HASH_MAC
HASH_DEB_64
HASH_DEB_32
HASH_WIN_64
HASH_WIN_32

0 comments on commit 9a3b16f

Please sign in to comment.