Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Commit

Permalink
Build only binaries image
Browse files Browse the repository at this point in the history
  • Loading branch information
CozmoNate committed Aug 26, 2017
1 parent d8e907d commit be781de
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Scripts/BuildImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,4 @@ hdiutil detach "/Volumes/${bin_volumename}"
hdiutil convert ./Binaries/TEMP.${bin_filename} -format UDZO -imagekey zlib-level=9 -o ./Binaries/${bin_filename}
rm ./Binaries/TEMP.${bin_filename}

# compressed update
dmg_filename=${project_name}.${full_version}.Update.dmg
dmg_volumename=${project_name}" v"${full_version}
hdiutil create -megabytes 10 -fs HFS+ -volname "${dmg_volumename}" ./Binaries/TEMP.${dmg_filename}
hdiutil attach ./Binaries/TEMP.${dmg_filename} -readwrite -mount required

cp ./Binaries/${project_name}.${full_version}.pkg "/Volumes/${dmg_volumename}/HWMonitor.pkg"

hdiutil detach "/Volumes/${dmg_volumename}"
hdiutil convert ./Binaries/TEMP.${dmg_filename} -format UDZO -imagekey zlib-level=9 -o ./Binaries/${dmg_filename}
rm ./Binaries/TEMP.${dmg_filename}
openssl="/usr/bin/openssl"
dsa_signature=$(${openssl} dgst -sha1 -binary < ./Binaries/${dmg_filename} | ${openssl} dgst -dss1 -sign ./Appcast/dsa_priv.pem | ${openssl} enc -base64)
echo ${dsa_signature} > ./Binaries/${dmg_filename}.sha1

0 comments on commit be781de

Please sign in to comment.