This repository was archived by the owner on Oct 12, 2018. It is now read-only.
File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 7
7
#
8
8
9
9
find ./Package/ -maxdepth 1 -type f -name " *.pkg" -delete
10
+ find ./Binaries/ -maxdepth 1 -type f -name " *.pkg" -delete
10
11
find ./Package/ -maxdepth 1 -type f -name " Distribution.xml" -delete
11
12
12
13
if [ " $1 " == " clean" ]
@@ -84,4 +85,4 @@ sed -i '' 's/DISTRIBUTION_TITLE/'${project_name}' 'v${full_version}'/g' ./Packag
84
85
productbuild --distribution " ./Package/Distribution.xml" \
85
86
--package-path " ./Package/" \
86
87
--resources " ./Package/Resources" \
87
- " ./Binaries/HWMonitor .unsigned.pkg"
88
+ " ./Binaries/${project_name} . ${full_version} .unsigned.pkg"
Original file line number Diff line number Diff line change 7
7
#
8
8
9
9
find ./Binaries/ -maxdepth 1 -type f -name " *.tar.gz" -delete
10
- find ./Binaries/ -maxdepth 1 -type f -name " *.zip" -delete
11
10
find ./Binaries/ -maxdepth 1 -type f -name " *.tar.gz.dsa" -delete
12
11
13
12
if [ " $1 " == " clean" ]
@@ -21,7 +20,7 @@ last_revision=$(<"./revision.txt")
21
20
full_version=${project_version} ' .' ${last_revision}
22
21
zip_filename=${project_name} .${full_version} .tar.gz
23
22
24
- cp ./Binaries/HWSensors .${full_version} .pkg ./Binaries/HWMonitor.pkg
23
+ cp ./Binaries/${project_name} .${full_version} .pkg ./Binaries/HWMonitor.pkg
25
24
tar -zcvf ./Binaries/${zip_filename} ./Binaries/HWMonitor.pkg
26
25
rm ./Binaries/HWMonitor.pkg
27
26
Original file line number Diff line number Diff line change @@ -16,13 +16,14 @@ project_name=$(/usr/libexec/PlistBuddy -c "Print 'Project Name'" "./version.plis
16
16
project_version=$( /usr/libexec/PlistBuddy -c " Print 'Project Version'" " ./version.plist" )
17
17
last_revision=$( < " ./revision.txt" )
18
18
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
20
21
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}
23
24
24
25
if [ $? -eq 0 ]; then
25
- rm ./Binaries/HWMonitor.unsigned.pkg
26
+ rm ./Binaries/${unsigned_pkg}
26
27
else
27
28
exit 1
28
29
fi
You can’t perform that action at this time.
0 commit comments