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

Commit ed4532c

Browse files
committed
Various bug fixes in build scripts
1 parent 4b016e5 commit ed4532c

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Scripts/BuildInstaller.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#
88

99
find ./Package/ -maxdepth 1 -type f -name "*.pkg" -delete
10+
find ./Binaries/ -maxdepth 1 -type f -name "*.pkg" -delete
1011
find ./Package/ -maxdepth 1 -type f -name "Distribution.xml" -delete
1112

1213
if [ "$1" == "clean" ]
@@ -84,4 +85,4 @@ sed -i '' 's/DISTRIBUTION_TITLE/'${project_name}' 'v${full_version}'/g' ./Packag
8485
productbuild --distribution "./Package/Distribution.xml" \
8586
--package-path "./Package/" \
8687
--resources "./Package/Resources" \
87-
"./Binaries/HWMonitor.unsigned.pkg"
88+
"./Binaries/${project_name}.${full_version}.unsigned.pkg"

Scripts/GenerateAppcast.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#
88

99
find ./Binaries/ -maxdepth 1 -type f -name "*.tar.gz" -delete
10-
find ./Binaries/ -maxdepth 1 -type f -name "*.zip" -delete
1110
find ./Binaries/ -maxdepth 1 -type f -name "*.tar.gz.dsa" -delete
1211

1312
if [ "$1" == "clean" ]
@@ -21,7 +20,7 @@ last_revision=$(<"./revision.txt")
2120
full_version=${project_version}'.'${last_revision}
2221
zip_filename=${project_name}.${full_version}.tar.gz
2322

24-
cp ./Binaries/HWSensors.${full_version}.pkg ./Binaries/HWMonitor.pkg
23+
cp ./Binaries/${project_name}.${full_version}.pkg ./Binaries/HWMonitor.pkg
2524
tar -zcvf ./Binaries/${zip_filename} ./Binaries/HWMonitor.pkg
2625
rm ./Binaries/HWMonitor.pkg
2726

Scripts/SignInstaller.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ project_name=$(/usr/libexec/PlistBuddy -c "Print 'Project Name'" "./version.plis
1616
project_version=$(/usr/libexec/PlistBuddy -c "Print 'Project Version'" "./version.plist")
1717
last_revision=$(<"./revision.txt")
1818
full_version=${project_version}'.'${last_revision}
19-
pkg_filename=${project_name}.${full_version}.pkg
19+
unsigned_pkg=${project_name}.${full_version}.unsigned.pkg
20+
signed_pkg=${project_name}.${full_version}.pkg
2021

21-
productsign --sign "Developer ID Installer" ./Binaries/HWMonitor.unsigned.pkg ./Binaries/HWMonitor.pkg
22-
spctl -a -v --type install ./Binaries/HWMonitor.pkg
22+
productsign --sign "Developer ID Installer" ./Binaries/${unsigned_pkg} ./Binaries/${signed_pkg}
23+
spctl -a -v --type install ./Binaries/${signed_pkg}
2324

2425
if [ $? -eq 0 ]; then
25-
rm ./Binaries/HWMonitor.unsigned.pkg
26+
rm ./Binaries/${unsigned_pkg}
2627
else
2728
exit 1
2829
fi

0 commit comments

Comments
 (0)