Build DMG from makefile for Mac.

This commit is contained in:
Adam Ierymenko 2014-01-16 17:23:49 -08:00
parent 412f93122d
commit 866edd41a7
2 changed files with 10 additions and 2 deletions

1
.gitignore vendored
View File

@ -33,3 +33,4 @@
.qmake.stash
*.autosave
/ZeroTier One.zip
/ZeroTier One.dmg

View File

@ -57,15 +57,22 @@ mac-ui: FORCE
install-mac-tap: FORCE
mkdir -p /Library/Application\ Support/ZeroTier/One
rm -rf /Library/Application\ Support/ZeroTier/One/tap.kext
cp -R ext/bin/tap-mac//tap.kext /Library/Application\ Support/ZeroTier/One
cp -R ext/bin/tap-mac/tap.kext /Library/Application\ Support/ZeroTier/One
chown -R root:wheel /Library/Application\ Support/ZeroTier/One/tap.kext
clean:
rm -rf *.dSYM build-* $(OBJS) zerotier-* ZeroTierOneInstaller-*
rm -rf *.dSYM build-* $(OBJS) zerotier-* ZeroTierOneInstaller-* "ZeroTier One.zip" "ZeroTier One.dmg"
official: FORCE
make -j 4 ZT_OFFICIAL_RELEASE=1
make mac-ui ZT_OFFICIAL_RELEASE=1
./buildinstaller.sh
mkdir build-ZeroTierOne-dmg
cd build-ZeroTierOne-dmg ; ln -sf /Applications Applications
cp -a "build-ZeroTierUI-release/ZeroTier One.app" build-ZeroTierOne-dmg/
rm -f /tmp/tmp.dmg
hdiutil create /tmp/tmp.dmg -ov -volname "ZeroTier One" -fs HFS+ -srcfolder ./build-ZeroTierOne-dmg
hdiutil convert /tmp/tmp.dmg -format UDZO -o "ZeroTier One.dmg"
rm -f /tmp/tmp.dmg
FORCE: