summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-10-02 20:28:46 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-10-02 20:33:41 +0200
commit8c0ced091ce1122dec5f1d414e094f7129c9b846 (patch)
treeb9e574d311d78eef9c1022908635931f452cf591
parent1501c0319f226eb25cf98e194a24233852638c62 (diff)
[test] include missing qrc
-rw-r--r--Makefile3
-rw-r--r--README.md33
-rw-r--r--tests/providers.json21
-rw-r--r--tests/tests.qrc6
4 files changed, 41 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index 000b755..9ae723e 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,8 @@ depends:
-@make depends$(UNAME)
dependsLinux:
- @sudo apt install golang pkg-config dh-golang golang-golang-x-text-dev cmake devscripts fakeroot debhelper curl
+ @sudo apt install golang pkg-config dh-golang golang-golang-x-text-dev cmake devscripts fakeroot debhelper curl g++ qt5-qmake qttools5-dev-tools qtdeclarative5-dev qml-module-qtquick-controls libqt5qml5 qtdeclarative5-dev qml-module-qt-labs-platform qml-module-qt-labs-qmlmodels qml-module-qtquick-extras qml-module-qtquick-dialogs
+
@make -C docker deps
@# debian needs also: snap install snapcraft --classic; snap install multipass --beta --classic
diff --git a/README.md b/README.md
index f4f16e9..bcb6f28 100644
--- a/README.md
+++ b/README.md
@@ -1,18 +1,17 @@
-Install it
-----------
+Build
+-----
Install dependencies:
-TODO: add qt5 deps here
-
```
- # make depends
+ sudo make depends
```
-Build the systray:
+Build the application:
+
```
- $ git clone 0xacab.org/leap/bitmask-vpn && cd bitmask-vpn
- $ make build
+ git clone 0xacab.org/leap/bitmask-vpn && cd bitmask-vpn
+ make build
```
You need at least go 1.11. If you have something older and are using ubuntu, you can do:
@@ -29,19 +28,11 @@ OSX
Using homebrew:
```
- $ git clone 0xacab.org/leap/bitmask-vpn && cd bitmask-vpn
- $ make depends
- $ make build
-
-```
-
-Linux
-----------
-
-```
+ git clone 0xacab.org/leap/bitmask-vpn && cd bitmask-vpn
+ make depends
make build
-```
+```
Running tests
-------------
@@ -64,13 +55,13 @@ https://www.transifex.com/otf/bitmask/RiseupVPN/
When a string has being modified you need to regenerate the locales:
```
- $ make generate_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
+ 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.
diff --git a/tests/providers.json b/tests/providers.json
new file mode 100644
index 0000000..3951bdd
--- /dev/null
+++ b/tests/providers.json
@@ -0,0 +1,21 @@
+{
+ "default": "demolib",
+ "providers": [
+ {
+ "name": "demolib",
+ "applicationName": "DemoLibVPN",
+ "binaryName": "demolib-vpn",
+ "auth": "sip",
+ "authEmptyPass": true,
+ "providerURL": "vpnlib.bitmask.net",
+ "tosURL": "https://libraryvpn.org/",
+ "helpURL": "https://libraryvpn.org/",
+ "askForDonations": false,
+ "donateURL": "",
+ "apiURL": "https://api.vpnlib.bitmask.net:4430/",
+ "geolocationAPI": "https://getmyip.vpnlib.bitmask.net/json",
+ "caCertString": "-----BEGIN CERTIFICATE-----\nMIIBQzCB6aADAgECAgEBMAoGCCqGSM49BAMCMBcxFTATBgNVBAMTDExFQVAgUm9v\ndCBDQTAeFw0yMDA4MDYxOTA3NDRaFw0yNTA4MDYxOTEyNDRaMBcxFTATBgNVBAMT\nDExFQVAgUm9vdCBDQTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABIG5POr4cAdK\nkTavKpSJr8nW1V7HLpr27qKaShpk1TUy5ipaAlusmavGLxKsPE+i3AMlvf/f6ch3\n1MjAtIf5rYujJjAkMA4GA1UdDwEB/wQEAwICpDASBgNVHRMBAf8ECDAGAQH/AgEB\nMAoGCCqGSM49BAMCA0kAMEYCIQDXj280LNZbSbi0Y2WvtQrJBUw4wdm8qAeOeuH7\n6XiLEwIhAPBRsmst/ujcChsG2t6LpG+p8s4rfIfh8YLo/4qrcc5p\n-----END CERTIFICATE-----",
+ "timeStamp": "2020-09-25 13:05:47"
+ }
+ ]
+}
diff --git a/tests/tests.qrc b/tests/tests.qrc
new file mode 100644
index 0000000..e8a7cb8
--- /dev/null
+++ b/tests/tests.qrc
@@ -0,0 +1,6 @@
+<RCC>
+ <qresource>
+ <file alias="providers.json">providers.json</file>
+ </qresource>
+</RCC>
+