Added code signing to make_oxs_package.sh.
This commit is contained in:
parent
598fe37a36
commit
8cbaa0b6f7
1 changed files with 9 additions and 1 deletions
|
@ -7,6 +7,8 @@ ROOT=$DIST/pandoc
|
||||||
SCRIPTS=osx-resources
|
SCRIPTS=osx-resources
|
||||||
BASE=pandoc-$VERSION
|
BASE=pandoc-$VERSION
|
||||||
ME=jgm
|
ME=jgm
|
||||||
|
CODESIGNID="Developer ID Application: John Macfarlane"
|
||||||
|
PACKAGEMAKER=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
|
||||||
|
|
||||||
echo Removing old files...
|
echo Removing old files...
|
||||||
rm -rf $DIST
|
rm -rf $DIST
|
||||||
|
@ -29,7 +31,9 @@ chmod +r $ROOT/usr/local/share/man/man?/*.*
|
||||||
echo Copying license...
|
echo Copying license...
|
||||||
cp COPYING $RESOURCES/License.txt
|
cp COPYING $RESOURCES/License.txt
|
||||||
|
|
||||||
PACKAGEMAKER=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
|
echo Signing pandoc executable...
|
||||||
|
|
||||||
|
codesign --force --sign "$CODESIGNID" $ROOT/usr/local/bin/pandoc
|
||||||
|
|
||||||
echo Creating OSX package...
|
echo Creating OSX package...
|
||||||
|
|
||||||
|
@ -42,6 +46,10 @@ sudo $PACKAGEMAKER \
|
||||||
--scripts $SCRIPTS \
|
--scripts $SCRIPTS \
|
||||||
--out $BASE.pkg
|
--out $BASE.pkg
|
||||||
|
|
||||||
|
echo Signing package...
|
||||||
|
|
||||||
|
codesign --force --sign "$CODESIGNID" $BASE.pkg
|
||||||
|
|
||||||
echo Creating disk image...
|
echo Creating disk image...
|
||||||
|
|
||||||
sudo hdiutil create "$BASE.dmg" \
|
sudo hdiutil create "$BASE.dmg" \
|
||||||
|
|
Loading…
Reference in a new issue