Apple2BuildPipeline/pkg/createPackage

21 lines
767 B
Plaintext
Raw Normal View History

#!/bin/bash
TMPDIR=/tmp/pkg.$$
cp -R pkg/Templates $TMPDIR
2014-10-26 03:09:50 +00:00
cp -R make $TMPDIR/'Apple II/Apple II C Project.xctemplate/'
cp Makefile $TMPDIR/'Apple II/Apple II C Project.xctemplate/'
cp main.c $TMPDIR/'Apple II/Apple II C Project.xctemplate/'
2014-10-26 03:09:50 +00:00
cp -R make $TMPDIR/'Apple II/Apple II Asm Project.xctemplate/'
cp Makefile $TMPDIR/'Apple II/Apple II Asm Project.xctemplate/'
pkgbuild --root $TMPDIR --version 1.4 --identifier com.halcyontouch.Apple2Template.pkg --install-location /Library/Developer/Xcode/Templates/ --scripts pkg/scripts/ AppleXcodeTemplate.pkg
productbuild --distribution pkg/Distribution.xml --resource ./pkg temp.pkg
rm AppleXcodeTemplate.pkg
productsign --sign "Developer ID Installer" temp.pkg AppleXcodeTemplate.pkg
rm temp.pkg
rm -rf $TMPDIR