Skip to content

Commit

Permalink
v1
Browse files Browse the repository at this point in the history
- Add settings window
- Fix libappindicator3 dependency problem
- Add support for multiple tunnels
- Add tunnel name length check
- Add wireguard error messages
  • Loading branch information
UnnoTed committed Mar 30, 2023
1 parent 3b05e84 commit 7508f72
Show file tree
Hide file tree
Showing 20 changed files with 1,630 additions and 464 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
# vendor/

./wireguird
./wireguird.glade~
./wireguird.glade~
./wireguird.settings
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,26 @@ Features:

## Download

##### Ubuntu

tested on: `18.04 LTS`, `20.04 LTS` and `21.04`
v0.2.0 tested on: Ubuntu `18.04 LTS`, `20.04 LTS` and `21.04`

[wireguird_amd64.deb (1.8mb)](https://github.com/UnnoTed/wireguird/releases/download/v0.2.0/wireguird_amd64.deb)

v1.0.0 tested on: Ubuntu `22.04 LTS` and `22.10`, Linux Mint `21.1`

[wireguird_amd64.deb (2.6mb)](https://github.com/UnnoTed/wireguird/releases/download/v1.0.0/wireguird_amd64.deb)
```sh
wget https://github.com/UnnoTed/wireguird/releases/download/v1.0.0/wireguird_amd64.deb
sudo dpkg -i ./wireguird_amd64.deb
```

## Compile

dependencies: `wireguard-tools libgtk-3-dev libappindicator3-dev`
deb dependencies: `wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go resolvconf`

```sh
git clone https://github.com/UnnoTed/wireguird
cd wireguird
chmod +x ./*.sh
./deps.sh
./package.sh
./install.sh
Expand Down
10 changes: 10 additions & 0 deletions deb/DEBIAN/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
wireguird (1.0) UNRELEASED; urgency=medium

* Add settings window.
* Fix libappindicator3 dependency problem.
* Add support for multiple tunnels
* Add tunnel name length check
* Add wireguard error messages

-- unknown <unknown@unknown> Wed, 29 Mar 2023 19:19:11 +0100

wireguird (0.2) UNRELEASED; urgency=medium

* Add new icons to look the same as the Wireguard client for Windows.
Expand Down
4 changes: 2 additions & 2 deletions deb/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Package: wireguird
Source: wireguird
Version: 0.2
Version: 1.0
Section: utils
Priority: extra
Architecture: amd64
Depends: wireguard-tools, resolvconf, libgtk-3-dev, libappindicator3-dev (>= 1.0.0)
Depends: wireguard-tools, resolvconf, libayatana-appindicator3-1
Maintainer: UnnoTed
Description: GTK GUI for Wireguard
2 changes: 1 addition & 1 deletion deb/usr/local/bin/wireguird
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
pkexec /opt/wireguird/wireguird
pkexec /opt/wireguird/wireguird "$@"
2 changes: 1 addition & 1 deletion deb/usr/share/applications/wireguird.desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
Version=0.2
Version=1.0
Type=Application
Terminal=false
Exec=/usr/local/bin/wireguird
Expand Down
11 changes: 10 additions & 1 deletion deps.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
sudo apt install wireguard-tools libgtk-3-dev libappindicator3-dev golang-go
if [[ -f "/etc/os-release" ]]; then
source "/etc/os-release"
if [[ "${ID}" == "fedora" ]]; then
echo "not supported yet"
#sudo dnf install wireguard-tools gtk3-devel golang resolvconf
elif [[ "${ID}" == "ubuntu" ]]; then
sudo apt install wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go resolvconf
fi
fi

42 changes: 15 additions & 27 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,21 @@ module github.com/UnnoTed/wireguird
go 1.14

require (
github.com/BurntSushi/toml v0.4.1 // indirect
github.com/UnnoTed/fileb0x v1.1.4 // indirect
github.com/UnnoTed/horizontal v0.0.0-20210214010602-906c695f4c68
github.com/bmatcuk/doublestar v1.3.4 // indirect
github.com/dawidd6/go-appindicator v1.0.0
github.com/dustin/go-humanize v1.0.0
github.com/fatih/color v1.12.0 // indirect
github.com/UnnoTed/go-appindicator v0.0.0-20230327231603-45f589795ad5
github.com/UnnoTed/horizontal v0.0.0-20220811200655-cbe810c8df9b
github.com/dustin/go-humanize v1.0.1
github.com/fatih/color v1.15.0 // indirect
github.com/gotk3/gotk3 v0.6.1
github.com/karrick/godirwalk v1.16.1 // indirect
github.com/labstack/echo v3.3.10+incompatible // indirect
github.com/labstack/gommon v0.3.0 // indirect
github.com/mattn/go-isatty v0.0.13 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/nsf/termbox-go v1.1.1 // indirect
github.com/nwidger/jsoncolor v0.3.0 // indirect
github.com/olekukonko/ts v0.0.0-20171002115256-78ecb04241c0 // indirect
github.com/rs/zerolog v1.23.0
github.com/smartystreets/goconvey v1.6.4 // indirect
github.com/ungerik/go-dry v0.0.0-20180411133923-654ae31114c8
github.com/valyala/fasttemplate v1.2.1 // indirect
github.com/zenazn/goji v0.9.0 // indirect
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e // indirect
golang.org/x/text v0.3.7 // indirect
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20200515170644-ec7f26be9d9e
gopkg.in/ini.v1 v1.56.0
gopkg.in/yaml.v2 v2.4.0 // indirect
github.com/josharian/native v1.1.0 // indirect
github.com/mattn/go-isatty v0.0.18 // indirect
github.com/mdlayher/genetlink v1.3.1 // indirect
github.com/nwidger/jsoncolor v0.3.2 // indirect
github.com/rs/zerolog v1.29.0
github.com/ungerik/go-dry v0.0.0-20220205124545-c028a5f03370
golang.org/x/crypto v0.7.0 // indirect
golang.org/x/net v0.8.0
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20230215201556-9c5414ab4bde
gopkg.in/ini.v1 v1.67.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
Loading

0 comments on commit 7508f72

Please sign in to comment.