mirror of
https://github.com/jeremysrand/Apple2BuildPipeline.git
synced 2024-12-04 20:49:21 +00:00
21 lines
767 B
Bash
Executable File
21 lines
767 B
Bash
Executable File
#!/bin/bash
|
|
|
|
TMPDIR=/tmp/pkg.$$
|
|
|
|
cp -R pkg/Templates $TMPDIR
|
|
|
|
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/'
|
|
|
|
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
|