summaryrefslogtreecommitdiff
path: root/pkg/osx/Makefile
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-01-07 21:10:41 +0900
committerkali <kali@leap.se>2013-01-08 00:34:45 +0900
commite35eb606faef1ccd06201a0b38a462375426cedd (patch)
treeb3efcd1861c846e0c3ce4f452a253970cfd2ffe3 /pkg/osx/Makefile
parent656419216f15bfb1859ba850d2d9c9d143034e23 (diff)
Working OSX installer workflow.
Using platypus for installer. Working installer at 17.6MB compressed.
Diffstat (limited to 'pkg/osx/Makefile')
-rw-r--r--pkg/osx/Makefile32
1 files changed, 29 insertions, 3 deletions
diff --git a/pkg/osx/Makefile b/pkg/osx/Makefile
index 54fbf14a..b302fa31 100644
--- a/pkg/osx/Makefile
+++ b/pkg/osx/Makefile
@@ -1,4 +1,8 @@
-pkg : dist dmg
+#WARNING: You need to run this with an activated VIRTUALENV.
+
+OSX = dist/LEAP\ Client.app/Contents/MacOS/
+
+pkg : dist trim installer dmg
dist :
~/pyinstaller/pyinstaller.py -w -s leap-client.spec
@@ -6,12 +10,34 @@ dist :
cp Info.plist "dist/LEAP Client.app/Contents/Info.plist"
cp ../../data/images/leap-client.icns "dist/LEAP Client.app/Contents/Resources/icon-windowed.icns"
+trim:
+ #XXX this should go properly in pyinstaller spec excludes, but going quick'n'dirty
+ rm $(OSX)QtSvg $(OSX)QtXml $(OSX)QtNetwork $(OSX)QtOpenGL $(OSX)Qt3Support $(OSX)QtSql
+
+installer:
+ #XXX need to fix some paths there (binary, etc)
+ platypus -P install/leap-installer.platypus -y dist/LEAPClient_installer.app
+ #XXX should build tuntap extensions ourselves
+ mkdir "dist/LEAPClient_installer.app/Contents/Resources/StartupItems"
+ mkdir "dist/LEAPClient_installer.app/Contents/Resources/Extensions/"
+ cp -r /opt/local/Library/StartupItems/tun "dist/LEAPClient_installer.app/Contents/Resources/StartupItems/"
+ cp -r /opt/local/Library/StartupItems/tap "dist/LEAPClient_installer.app/Contents/Resources/StartupItems/"
+ cp -r /opt/local/Library/Extensions/tun.kext "dist/LEAPClient_installer.app/Contents/Resources/Extensions/"
+ cp -r /opt/local/Library/Extensions/tap.kext "dist/LEAPClient_installer.app/Contents/Resources/Extensions/"
+ #copy the binary that we have previously built
+ #XXX not building it yet...
+ cp ../../openvpn/build/openvpn.leap "dist/LEAPClient_installer.app/Contents/Resources/"
+ #copy startup scripts
+ cp install/client.up.sh "dist/LEAP Client.app/Contents/Resources"
+ cp install/client.down.sh "dist/LEAP Client.app/Contents/Resources"
+ cp install/ProcessNetworkChanges.plist.template "dist/LEAP Client.app/Contents/Resources"
+ #Finally, copy application bundle...
+ cp -r "dist/LEAP Client.app" "dist/LEAPClient_installer.app/Contents/Resources/"
dmg :
#TODO: remove if already present
#rm dist/LEAPClient.dmg
- hdiutil create -format UDBZ -srcfolder "dist/LEAP Client.app/" "dist/LEAP Client.dmg"
+ hdiutil create -format UDBZ -srcfolder "dist/LEAPClient_installer.app/" "dist/LEAP Client Installer.dmg"
clean :
rm -rf dist/ build/
-