Mirror of BitMask VPN from "authoritative" source as per bitmask.net https://bitmask.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ruben Pollan bce7470262
[feat] retry fetching the eip json
13 hours ago
cmd [locales] update locales 2 weeks ago
icon [feat] use white icon on windows 7 months ago
locales [locales] update locales 2 weeks ago
pkg [feat] retry fetching the eip json 13 hours ago
tools/transifex [locales] add romanian 3 months ago
vendor [pkg] remove vendoring of golang/x/* 3 months ago
.gitignore [feat] add a cli client 4 months ago
.gitlab-ci.yml [ci] limit push step to master branch 6 days ago
LICENSE [doc] add copyright notice 1 year ago
Makefile [locales] improve the locales workflow and document it 2 months ago
README.md [locales] improve the locales workflow and document it 2 months ago
go.mod [pkg] update modules 3 months ago
go.sum [pkg] update modules 3 months ago
icon.svg [pkg] make the icon brandable 3 months ago

README.md

Install it

Install dependencies:

  # apt install libgtk-3-dev libappindicator3-dev golang pkg-config

Build the systray:

  $ git clone 0xacab.org/leap/bitmask-vpn
  $ cd bitmask-systray
  $ go get .
  $ go build

To be able to build the assets you’ll need:

  $ go get -u golang.org/x/text/cmd/gotext github.com/cratonica/2goarray

OSX

Using homebrew:

  $ brew install golang zmq pkg-config
  $ brew install --default-names gnu-sed
  $ git clone 0xacab.org/leap/bitmask-vpn
  $ cd bitmask-systray
  $ go get .
  $ go build

Linux

Building the systray in linux will produce some -Wdeprecated-declarations warnings, like that:

cgo-gcc-prolog: In function ‘_cgo_3f9f61f961c9_Cfunc_gtk_font_button_get_font_name’:
cgo-gcc-prolog:5455:2: warning: ‘gtk_font_button_get_font_name’ is deprecated [-Wdeprecated-declarations]
In file included from /usr/include/gtk-3.0/gtk/gtk.h:106:0,
                 from ../../../go/src/github.com/gotk3/gotk3/gtk/gtk.go:48:
/usr/include/gtk-3.0/gtk/gtkfontbutton.h:96:23: note: declared here
 const gchar *         gtk_font_button_get_font_name  (GtkFontButton *font_button);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

They are expected and don’t produce any problem on the systray.

Run it

The default build is a standalone systray. It still requires a helper and openvpn installed to work. For linux the helper is bitmask-root for windows and OSX there is a helper written in go.

To build and run it:

  $ go build
  $ ./bitmask-systray

Bitmaskd

Is also posible to compile the systray to use bitmask as backend:

  $ go build -tags bitmaskd

In that case bitmask-systray assumes that you already have bitmaskd running. Run bitmask and the systray:

  $ bitmaskd
  $ ./bitmask-systray

i18n

When a string has being modified you need to regenerate the locales:

  $ make generate_locales

To fetch the translations from transifex and rebuild the catalog.go (API_TOKEN is the transifex API token):

  $ API_TOKEN='xxxxxxxxxxx' make locales

There is some bug on gotext and the catalog.go generated doesn’t have a package, you will need to edit cmd/bitmask-vpn/catalog.go and to have a package main at the beginning of the file.

If you want to add a new language create the folder locales/$lang before running make locales.

Report an issue

When you report an issue include the following information:

  • what you expected to see
  • what you got
  • the version of the program. You can check the version on the about page.
  • the logs of the program. The location of the logs depends on the OS:
    • linux: /home/<your user>/.config/leap/bitmaskd.log & /home/<your user>/.config/leap/systray.log
    • OSX: /Users/<your user>/Library/Preferences/leap/systray.log, /Applications/RiseupVPN.app/Contents/helper/helper.log & /Applications/RiseupVPN.app/Contents/helper/openvpn.log
    • windows: C:\Users\<your user>\AppData\Local\leap\systray.log, C:\Program Files\RiseupVPN\helper.log & C:\Program Files\RiseupVPN\openvp.log