diff --git a/README.md b/README.md index 4a8f3da..f7709a7 100644 --- a/README.md +++ b/README.md @@ -43,54 +43,60 @@ Install the [AppIndicator and KStatusNotifierItem Support](https://extensions.gn - Openconnect v8.x - Qt5, qt5-webengine, qt5-websockets -### Ubuntu -1. Install openconnect v8.x +## Build & Install - ```sh - sudo apt install openconnect - openconnect --version - ``` - - For Ubuntu 18.04, using this [dwmw2/openconnect](https://launchpad.net/~dwmw2/+archive/ubuntu/openconnect) PPA. - - ```sh - sudo add-apt-repository ppa:dwmw2/openconnect && sudo apt-get update && sudo apt install -y openconnect - ``` - -1. Install the Qt dependencies - - ```sh - sudo apt install -y build-essential qtbase5-dev libqt5websockets5-dev qtwebengine5-dev - ``` -### openSUSE -Install the Qt dependencies - -```sh -sudo zypper install libqt5-qtbase-devel libqt5-qtwebsockets-devel libqt5-qtwebengine-devel -``` - -### Fedora -Install the Qt dependencies: - -```sh -sudo dnf install qt5-qtbase-devel qt5-qtwebengine-devel qt5-qtwebsockets-devel -``` - -## Install - -### Install from AUR (Arch/Manjaro) - -Install [globalprotect-openconnect](https://aur.archlinux.org/packages/globalprotect-openconnect/). - -### Build from source code +Clone this repo with: ```sh git clone https://github.com/yuezk/GlobalProtect-openconnect.git cd GlobalProtect-openconnect +``` +### Arch/Manjaro +Install from the [globalprotect-openconnect](https://aur.archlinux.org/packages/globalprotect-openconnect/) AUR. +### Ubuntu +For **Ubuntu 18.04**, add this [dwmw2/openconnect](https://launchpad.net/~dwmw2/+archive/ubuntu/openconnect) PPA to install the latest openconnect. + +```sh +sudo add-apt-repository ppa:dwmw2/openconnect +sudo apt update +``` +...then build and install with: + +```sh +./scripts/install-ubuntu.sh +``` +### openSUSE + +Build and install with: + +```sh +./scripts/install-opensuse.sh +``` + +### Fedora + +Build and install with: + +```sh +./scripts/install-fedora.sh +``` + +### Other Linux + +Install the Qt5 dependencies and OpenConnect: + +- QtCore +- QtWebEngine +- QtWebSockets +- QtDBus +- openconnect v8.x + +...then build and install with: + +```sh ./scripts/install.sh ``` -Open `GlobalProtect VPN` in the application dashboard. ### Debian package diff --git a/scripts/install-fedora.sh b/scripts/install-fedora.sh new file mode 100755 index 0000000..536fc83 --- /dev/null +++ b/scripts/install-fedora.sh @@ -0,0 +1,9 @@ +#!/bin/bash -e + +sudo dnf install -y \ + qt5-qtbase-devel \ + qt5-qtwebengine-devel \ + qt5-qtwebsockets-devel \ + openconnect + +./install.sh \ No newline at end of file diff --git a/scripts/install-opensuse.sh b/scripts/install-opensuse.sh new file mode 100755 index 0000000..891551e --- /dev/null +++ b/scripts/install-opensuse.sh @@ -0,0 +1,9 @@ +#!/bin/bash -e + +sudo zypper install -y \ + libqt5-qtbase-devel \ + libqt5-qtwebsockets-devel \ + libqt5-qtwebengine-devel \ + openconnect + +./install.sh \ No newline at end of file diff --git a/scripts/install-ubuntu.sh b/scripts/install-ubuntu.sh new file mode 100755 index 0000000..3bff251 --- /dev/null +++ b/scripts/install-ubuntu.sh @@ -0,0 +1,11 @@ +#!/bin/bash -e + +sudo apt update +sudo apt install -y \ + build-essential \ + qtbase5-dev \ + libqt5websockets5-dev \ + qtwebengine5-dev \ + openconnect + +./install.sh \ No newline at end of file diff --git a/scripts/install.sh b/scripts/install.sh index 79c5a80..d339293 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -2,4 +2,6 @@ ./cmakew -B build ./cmakew --build build -sudo ./cmakew --install build \ No newline at end of file +sudo ./cmakew --install build + +echo "Done. You can open it from the application dashboard. \ No newline at end of file