aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-04-29 12:27:01 +0300
committerFilipp Lepalaan <filipp@mac.com>2016-04-29 12:27:01 +0300
commit956d83d50cf63da16b1074afa2a93346de8ff71e (patch)
tree64b63970ae44896eea7c6fad9534e8987d3d8355 /makefile
downloadArchInstall-956d83d50cf63da16b1074afa2a93346de8ff71e.tar.gz
ArchInstall-956d83d50cf63da16b1074afa2a93346de8ff71e.tar.bz2
ArchInstall-956d83d50cf63da16b1074afa2a93346de8ff71e.zip
Initial commit
Diffstat (limited to 'makefile')
-rwxr-xr-xmakefile20
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