mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 10:46:33 +00:00
Build DMG from makefile for Mac.
This commit is contained in:
parent
412f93122d
commit
866edd41a7
1
.gitignore
vendored
1
.gitignore
vendored
@ -33,3 +33,4 @@
|
||||
.qmake.stash
|
||||
*.autosave
|
||||
/ZeroTier One.zip
|
||||
/ZeroTier One.dmg
|
||||
|
11
make-mac.mk
11
make-mac.mk
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user