mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
Build DMG from makefile for Mac.
This commit is contained in:
parent
412f93122d
commit
866edd41a7
2 changed files with 10 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -33,3 +33,4 @@
|
||||||
.qmake.stash
|
.qmake.stash
|
||||||
*.autosave
|
*.autosave
|
||||||
/ZeroTier One.zip
|
/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
|
install-mac-tap: FORCE
|
||||||
mkdir -p /Library/Application\ Support/ZeroTier/One
|
mkdir -p /Library/Application\ Support/ZeroTier/One
|
||||||
rm -rf /Library/Application\ Support/ZeroTier/One/tap.kext
|
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
|
chown -R root:wheel /Library/Application\ Support/ZeroTier/One/tap.kext
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf *.dSYM build-* $(OBJS) zerotier-* ZeroTierOneInstaller-*
|
rm -rf *.dSYM build-* $(OBJS) zerotier-* ZeroTierOneInstaller-* "ZeroTier One.zip" "ZeroTier One.dmg"
|
||||||
|
|
||||||
official: FORCE
|
official: FORCE
|
||||||
make -j 4 ZT_OFFICIAL_RELEASE=1
|
make -j 4 ZT_OFFICIAL_RELEASE=1
|
||||||
make mac-ui ZT_OFFICIAL_RELEASE=1
|
make mac-ui ZT_OFFICIAL_RELEASE=1
|
||||||
./buildinstaller.sh
|
./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:
|
FORCE:
|
||||||
|
|
Loading…
Add table
Reference in a new issue