summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-11-30 14:35:08 +0100
committerKali Kaneko <kali@leap.se>2017-11-30 14:35:08 +0100
commitd62ea76c8af728221cba1936cc1b89bd71a9300b (patch)
treea1379124fdd49e84e3a5b2abcad9bdb3d4b408a7
parent8ca08ce4aecea1d58d14252616ef35dba13afe8f (diff)
[pkg] add osx uninstall script
-rw-r--r--docs/hacking/osx.rst16
-rwxr-xr-xpkg/osx/uninstall.sh5
2 files changed, 16 insertions, 5 deletions
diff --git a/docs/hacking/osx.rst b/docs/hacking/osx.rst
index 92235896..45f1823e 100644
--- a/docs/hacking/osx.rst
+++ b/docs/hacking/osx.rst
@@ -19,7 +19,7 @@ Setting up a development environment in OSX™
* Make sure you're using a new enough version of pip (1.8 or newest). This will make all the problems with ``cryptography`` going away, since it will install the statically built wheel: ``pip --version``
-* Clone the repo, create and activate a virtualenv::
+Clone the repo, create and activate a virtualenv::
mkdir ~/leap && cd ~/leap
git clone "https://0xacab.org/leap/bitmask-dev"
@@ -27,13 +27,13 @@ Setting up a development environment in OSX™
virtualenv ~/leap/venv
source ~/leap/venv/bin/activate
-* In OSX, we're using ``pywebview`` for the GUI launcher, that depends on ``pyobjc``. You can install that with::
+In OSX, we're using ``pywebview`` for the GUI launcher, that depends on ``pyobjc``. You can install that with::
pip install -r ~/leap/bitmask-dev/pkg/requirements-osx.pip
* Install the rest of dependencies as usual.
-* After installing that, you should be able to build the bundle::
+After installing that, you should be able to build the bundle::
make bundle_osx
@@ -83,11 +83,17 @@ installed to the same path mentioned in the previous section.
.. note: cleanup unused helpers
+Uninstalling
+===================================
+
+There's an uninstall script in `pkg/osx/uninstall.sh`.
+
Installing the bundle with homebrew
===================================
-For testing purposes, `homebrew`_ can be used to distribute and install the
-bundle. This should download and install the latest version of the bundle::
+For testing purposes, `homebrew`_ can be used to distribute and install
+experimental versions of the bundle. This should download and install the
+latest version of the bundle::
brew install kalikaneko/bitmask/bitmask
diff --git a/pkg/osx/uninstall.sh b/pkg/osx/uninstall.sh
new file mode 100755
index 00000000..7250020d
--- /dev/null
+++ b/pkg/osx/uninstall.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+sudo launchctl unload /Library/LaunchDaemons/se.leap.bitmask-helper.plist
+sudo rm -rf /Applications/Bitmask.app
+sudo rm -rf ~/Library/Preferences/leap
+echo "Bitmask has been uninstalled from your system!"