From 4ad663b935fa1845d426dde99a8272942b620e11 Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 2 Jan 2013 18:06:13 +0900 Subject: initial OSX packaging --- pkg/osx/README.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pkg/osx/README.rst (limited to 'pkg/osx/README.rst') diff --git a/pkg/osx/README.rst b/pkg/osx/README.rst new file mode 100644 index 00000000..dfd8fc16 --- /dev/null +++ b/pkg/osx/README.rst @@ -0,0 +1,10 @@ +freezing the app +---------------- +just type, from this dir:: + + $ make dist + $ make dmg + +For doing both things:: + + $ make pkg -- cgit v1.2.3 From 7c7e303ad66333d34fb6829deb8c3c3e81e1b328 Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 2 Jan 2013 18:20:27 +0900 Subject: merge osx readme --- pkg/osx/README.rst | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'pkg/osx/README.rst') diff --git a/pkg/osx/README.rst b/pkg/osx/README.rst index dfd8fc16..e69de29b 100644 --- a/pkg/osx/README.rst +++ b/pkg/osx/README.rst @@ -1,10 +0,0 @@ -freezing the app ----------------- -just type, from this dir:: - - $ make dist - $ make dmg - -For doing both things:: - - $ make pkg -- cgit v1.2.3 From e35eb606faef1ccd06201a0b38a462375426cedd Mon Sep 17 00:00:00 2001 From: kali Date: Mon, 7 Jan 2013 21:10:41 +0900 Subject: Working OSX installer workflow. Using platypus for installer. Working installer at 17.6MB compressed. --- pkg/osx/README.rst | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) (limited to 'pkg/osx/README.rst') diff --git a/pkg/osx/README.rst b/pkg/osx/README.rst index e69de29b..48d96ffb 100644 --- a/pkg/osx/README.rst +++ b/pkg/osx/README.rst @@ -0,0 +1,60 @@ +environment setup in osx +======================== +(I rm'd my README by mistake at some point. Re-do). + +basically you need this to setup your environment: + +# check and consolidate + +# install xcode and macports +# port -v selfupdate +# port install python26 +# port install python_select # unneeded? +# port install py26-pyqt4 +# port install py26-twisted +# port install py26-pip +# port install py26-virtualenv +# port install git-core +# port install gnutls +# port install platypus + +Requirements +============ +pyinstaller (in ~/pyinstaller) +platypus (tested with latest macports) + +... + install environment as usual, + inside virtualenv. + +.. note:: there is something missing here, about troubles building gnutls extension, + I think I ended by symlinking global install via macports. + +Pyinstaller fix for sip api +--------------------------- +We need a workaround for setting the right sip api. +Paste this in the top of pyinstaller/support/rthooks/pyi_rth_qt4plugins.py:: + + import sip + sip.setapi('QString', 2) + sip.setapi('QVariant', 2) + +See www.pyinstaller.org/wiki/Recipe/PyQtChangeApiVersion. + +Building the package +==================== + +Building the binary +------------------- +We use the scripts in openvpn/build.zsh +The packaging Makefile is expecting the final binary in the location:: + + ../../openvpn/build/openvpn.leap + +Running the build +----------------- +IMPORTANT: activate the VIRTUALENV FIRST! +(you will get an import error otherwise) + +For running all steps at once:: + + make pkg -- cgit v1.2.3