diff options
Diffstat (limited to 'makefile')
-rwxr-xr-x | makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100755 index 0000000..8f6439b --- /dev/null +++ b/makefile @@ -0,0 +1,20 @@ +NAME=ArchiCAD +PKG=${NAME}.pkg +FOLDER="Install ${NAME}" +TARGET=/tmp/ArchiCADInstaller +VERSION=$(defaults read ${PWD}/payload/Install.app/Contents/ArchiCAD\ Installer.app/Contents/Info CFBundleShortVersionString) +ID=com.graphisoft.archicad${VERSION} + +pkg: + pkgbuild --identifier ${ID} --root payload --install-location ${TARGET} --scripts scripts ${PKG} + +dmg:${PKG} + mkdir ${FOLDER} + mv ${PKG} ${FOLDER} + hdiutil create -srcfolder ${FOLDER} ${FOLDER}.dmg + +clean: + rm -rf ${TARGET} ${FOLDER} + +all: + pkg dmg |