Apple2BuildPipeline/pkg/createPackage

21 lines
767 B
Bash
Executable File

#!/bin/bash
TMPDIR=/tmp/pkg.$$
cp -R pkg/Templates $TMPDIR
cp -R make $TMPDIR/'Apple ][/Apple ][ C Project.xctemplate/'
cp Makefile $TMPDIR/'Apple ][/Apple ][ C Project.xctemplate/'
cp main.c $TMPDIR/'Apple ][/Apple ][ C Project.xctemplate/'
cp -R make $TMPDIR/'Apple ][/Apple ][ Asm Project.xctemplate/'
cp Makefile $TMPDIR/'Apple ][/Apple ][ Asm Project.xctemplate/'
pkgbuild --root $TMPDIR --version 1.1 --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