From 956d83d50cf63da16b1074afa2a93346de8ff71e Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 29 Apr 2016 12:27:01 +0300 Subject: Initial commit --- makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 makefile (limited to 'makefile') 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 -- cgit v1.2.3