mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
43 lines
1.0 KiB
Markdown
43 lines
1.0 KiB
Markdown
<p align="center">
|
|
<img width="300" src="https://github.com/yuezk/GlobalProtect-openconnect/assets/3297602/9242df9c-217d-42ab-8c21-8f9f69cd4eb5">
|
|
</p>
|
|
|
|
## Development
|
|
|
|
### Dependencies
|
|
|
|
The following packages will be required to build depending on your environment:
|
|
|
|
- [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)
|
|
- [pnpm](https://pnpm.io/installation)
|
|
- openconnect-devel (containing `openconnect.h`): `sudo apt install libopenconnect-dev` or `sudo yum install openconnect-devel`
|
|
- GDK dependencies `sudo apt install libgdk3.0-cil-dev libcairo2-dev libsoup2.4-dev libgdk-pixbuf-2.0-dev libjavascriptcoregtk-4.0-dev libatk1.0-dev libpango1.0-dev libwebkit2gtk-4.0-dev`
|
|
|
|
### Build the service
|
|
|
|
```sh
|
|
# Build the client first
|
|
cargo build -p gpclient
|
|
|
|
# Build the service
|
|
cargo build -p gpservice
|
|
```
|
|
|
|
### Start the service
|
|
|
|
```sh
|
|
sudo ./target/debug/gpservice
|
|
```
|
|
|
|
### Start the GUI
|
|
|
|
```sh
|
|
cd gpgui
|
|
pnpm install
|
|
pnpm tauri dev
|
|
```
|
|
|
|
### Open the DevTools
|
|
|
|
Right-click on the GUI window and select "Inspect Element".
|