diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-10-02 20:28:46 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-10-02 20:33:41 +0200 |
commit | 8c0ced091ce1122dec5f1d414e094f7129c9b846 (patch) | |
tree | b9e574d311d78eef9c1022908635931f452cf591 | |
parent | 1501c0319f226eb25cf98e194a24233852638c62 (diff) |
[test] include missing qrc
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | README.md | 33 | ||||
-rw-r--r-- | tests/providers.json | 21 | ||||
-rw-r--r-- | tests/tests.qrc | 6 |
4 files changed, 41 insertions, 22 deletions
@@ -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 @@ -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> + |