Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows build #3

Open
wants to merge 174 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
4bd49c9
adapt makefile for the crosscompiles on windows
ok-sh Oct 2, 2020
acc5523
add package- and pathinfo for Cygwin on win10
ok-sh Oct 3, 2020
aafeda7
Modify readme
ok-sh Oct 3, 2020
45580d9
Add ARCH Variable to select correct compiler in windows-build
ok-sh Oct 16, 2020
9901a4e
Readme update
ok-sh Oct 16, 2020
7aad9e7
Detect cygwin for dependencies
ok-sh Oct 21, 2020
11ba6c4
Readme Changes
ok-sh Oct 21, 2020
8ad2695
Update README.md
ok-sh Oct 21, 2020
3dea323
Readme Changes
ok-sh Oct 21, 2020
d7ef0db
Change Readme
ok-sh Oct 22, 2020
2adb4a0
clean up
ok-sh Oct 22, 2020
107a930
Add windows run hint in Readme
ok-sh Oct 22, 2020
7d48ea5
[refactor] copy over systray to new package
kalikaneko May 29, 2020
87b3fa9
[feat] add qt gui
kalikaneko Jun 4, 2020
68d7341
[feat] add go wrapper
kalikaneko Jun 4, 2020
d32bb22
[pkg] add qt build script
kalikaneko Jun 4, 2020
0c50e7a
[pkg] ignore new stuff
kalikaneko Jun 4, 2020
b06b1ad
[pkg] switch to leap main repo
kalikaneko Jun 4, 2020
4d4155d
[refactor] comment out some initialization functions, still need work
kalikaneko Jun 4, 2020
e53cd6d
[refactor] rename binary
kalikaneko Jun 4, 2020
ca2f718
[refactor] add comment, unsure about using this
kalikaneko Jun 4, 2020
d88cf84
[bug] fix function call
kalikaneko Jun 4, 2020
36808bf
[feat] pickled helpers ftw
kalikaneko Jun 4, 2020
75e63cd
[pkg] go mod tidy
kalikaneko Jun 5, 2020
ece6355
[pkg] xbuild tweaks
kalikaneko Jun 5, 2020
304f445
[bug] systray pain and vodoo
kalikaneko Jun 5, 2020
181bfd6
[pkg] add needed framework for osx
kalikaneko Jun 5, 2020
12c936b
[refactor] use ioutil.TempFile
kalikaneko Jun 11, 2020
94d1e97
[refactor] remove unneeded cruft
kalikaneko Jun 11, 2020
2231518
[refactor] out with actions
kalikaneko Jun 11, 2020
26af63c
[bug] avoid segfault when trying to show menu
kalikaneko Jun 11, 2020
ea3147b
[pkg] simplify project file
kalikaneko Jun 11, 2020
4e93e59
[feat] working donate dialog
kalikaneko Jun 12, 2020
97121e8
[refactor] reorganize modules
kalikaneko Jun 12, 2020
c2569f9
[refactor] reorganize backend in its own module
kalikaneko Jun 12, 2020
48d134e
[refactor] rename standalone to just vpn
kalikaneko Jun 12, 2020
b15ebb5
[docs] add some TODOs in the README
kalikaneko Jun 12, 2020
f0886b0
[docs] remove references to deprecated bitmaskd
kalikaneko Jun 16, 2020
164d628
[feat] re-implement donation reminders
kalikaneko Jun 16, 2020
1d47978
[feat] open help url
kalikaneko Jun 16, 2020
e9058d3
[pkg] add generation of vendored config again
kalikaneko Jun 16, 2020
82d32b4
[pkg] remove vendoring from Makefile
kalikaneko Jun 16, 2020
60512bb
[feat] include git version in generated variable
kalikaneko Jun 16, 2020
df91e06
[feat] working about dialog
kalikaneko Jun 17, 2020
0fa2d72
[feat] quit signal handler
kalikaneko Jun 17, 2020
ca70e7a
[feat] cleanup temp dirs on quit
kalikaneko Jun 17, 2020
5aec135
[feat] pass initialization errors to gui
kalikaneko Jun 17, 2020
10e3342
[refactor] several simplifications after review
kalikaneko Jun 22, 2020
03e76c6
[refactor] cleanup function was unneeded
kalikaneko Jun 23, 2020
3b554ad
[refactor] remove silly function
kalikaneko Jun 25, 2020
ddb94a5
[test] minimal qml tests
kalikaneko Jun 18, 2020
2199192
Add support for internationalization
meskio Jul 10, 2020
0b6af61
[refactor] use qt argument parsing
kalikaneko Jun 23, 2020
b4e75a2
[feat] hide systray if -n option is passed
kalikaneko Jun 23, 2020
25083d7
[feat] first simplistic implementation of a rest api
kalikaneko Jun 23, 2020
1f209f0
[feat] authentication token for webapi
kalikaneko Jun 23, 2020
015b378
[refactor] simplify, make port optional
kalikaneko Aug 11, 2020
62d6da0
Unblock is not needed switch off does unblock bitmask
meskio Aug 4, 2020
4ab332c
Quit if there was an initializaton error
meskio Aug 4, 2020
e5a8d4b
[feat] add sip authentication
kalikaneko Jan 28, 2020
825044c
[test] sip integration test
kalikaneko Jan 28, 2020
66e3564
[refactor] refactor auth files
kalikaneko Jan 31, 2020
9f87992
[feat] expose auth API in pkg/vpn
meskio Feb 11, 2020
577b73b
[bug] use the right http client to fetch the auth
meskio Feb 26, 2020
d66ddd5
[pkg] add float-deployed demo libpvn for tests
meskio Aug 6, 2020
4e75199
[feat] login feedback
kalikaneko Aug 17, 2020
c8cbeb1
[feat] cache authentication token
kalikaneko Aug 18, 2020
2e7309e
[debug] improve error handling for geolocation
kalikaneko Aug 19, 2020
90a30a4
[bug] anon needs no credentials
kalikaneko Aug 19, 2020
fd71729
[feat] pick only the top 3 gateways
kalikaneko Aug 19, 2020
c0b04dc
[feat] reset error
kalikaneko Aug 20, 2020
b76baae
[feat] reset notification
kalikaneko Aug 20, 2020
4ee05a0
[refactor] fix error handling after review
kalikaneko Sep 8, 2020
5383f54
[docs] wording
kalikaneko Aug 24, 2020
5b99b48
[feat] load provider json in qml
kalikaneko Aug 5, 2020
9da3dd5
[feat] generate providers.json
kalikaneko Aug 24, 2020
64304a9
[bug] pass json as bytes to go side
kalikaneko Sep 8, 2020
bca7822
[feat] lookup the config vars at runtime
kalikaneko Sep 8, 2020
f5acefc
[feat] expose allowEmptyPass flag for provider config
kalikaneko Sep 8, 2020
2e3622f
[bug] show only bad_auth dialog
kalikaneko Sep 8, 2020
65bb403
[feat] do not show password field if allowEmptyPass is set
kalikaneko Sep 8, 2020
eddd64d
[feat] improve phrasing for login dialog, split into its own file
kalikaneko Sep 8, 2020
0c9db95
[feat] be more precise when login gives 502
kalikaneko Sep 8, 2020
55526b1
[refactor] remove unused script
kalikaneko Sep 8, 2020
67c5230
[refactor] delete unused function
kalikaneko Sep 8, 2020
1b8c1c2
[bug] accept corrupted pid files
meskio Sep 15, 2020
97e9bfb
[pkg] go mod tidy
kalikaneko Sep 16, 2020
ab0f26f
[feat] send cmd flags to the go backend
meskio Sep 24, 2020
03d6775
[refactor] grab appname from providers.json
kalikaneko Sep 25, 2020
86747e4
[pkg] go mod tidy
kalikaneko Sep 25, 2020
2559686
[pkg] let's get snaps working with our qt build
meskio Aug 18, 2020
b75a5db
[ci] run only the tests and compile in the CI
meskio Aug 18, 2020
6a3c09d
[ci] build snap image
meskio Aug 18, 2020
1105d9f
[pkg] allow to pass qmake path
kalikaneko Sep 14, 2020
f5309eb
[pkg] use qtquick.controls 1
kalikaneko Sep 14, 2020
fbd7127
[pkg] parametrize working snap file
kalikaneko Sep 15, 2020
d520b27
[pkg] pass target name to the build script
kalikaneko Sep 15, 2020
6d260e3
[pkg] keep track of efforts to have an usable qt5 static build
kalikaneko Sep 15, 2020
0222206
[pkg] remove call to vendorize
kalikaneko Sep 15, 2020
70c64dd
[docs] document params for build
kalikaneko Sep 15, 2020
aed83c0
[bug] fix variable in template
kalikaneko Sep 14, 2020
d14a171
[test] fix the tests to work with the new vendoring
meskio Sep 17, 2020
ff6ef54
[ci] use the registry of the repo
meskio Sep 17, 2020
57a9b72
[pkg] re-add appname to template, bad merge
kalikaneko Sep 25, 2020
9de9a7d
[pkg] windows helper and qtinstaller
Sep 25, 2020
336cf74
[bug] workaround for helper path in windows
Sep 25, 2020
dd5ba4a
[feat] remove unused config options
meskio Sep 30, 2020
2a77243
[feat] pass the raw byte json to the backend
meskio Sep 30, 2020
3553328
[feat] remove the donation dialog if not set in the providers.json
meskio Sep 30, 2020
b195d82
[test] fix CI with the new build target
meskio Sep 30, 2020
23a51f4
[ui] make about donation text optional
meskio Sep 30, 2020
b48b068
[ui] disable the donate entry on the menu if no donation
meskio Oct 2, 2020
b7f569f
[ui] Display the proper icon for failed state
meskio Oct 2, 2020
7f5d152
[bug] remove apiURL from bonafide
kalikaneko Oct 1, 2020
6f6ea0d
[pkg] use make build
kalikaneko Oct 1, 2020
37cc259
[test] update ui smoke test, add it to ci
kalikaneko Oct 2, 2020
714e108
[docs] update readme
kalikaneko Oct 2, 2020
f58184e
[test] include missing qrc
kalikaneko Oct 2, 2020
5edc8be
[ci] disable ui tests for now, due to missing packages in the runner
kalikaneko Oct 2, 2020
d9f4afc
[feat] increase donation reminder interval to one week
kalikaneko Oct 6, 2020
7f87525
[pkg] remove extra files from snap folder
kalikaneko Oct 6, 2020
4fcc4f4
[bug] askForDonations is a bool now
kalikaneko Oct 6, 2020
d3ac503
[bug] don't crash on quit if no autostart
meskio Oct 8, 2020
0cc1bc8
[feat] make vendor_init to create independent repo
kalikaneko Sep 30, 2020
3c50b0e
[pkg] comment out expired cert
kalikaneko Oct 1, 2020
ad72405
[pkg] boilerplate for qtinstaller framework
kalikaneko Jul 8, 2020
581a588
[bug] fix version reporting in helper
kalikaneko Jul 21, 2020
c675188
[pkg] add app payload in osx
kalikaneko Jul 21, 2020
ade3882
[pkg] check for qtinstaller framework
kalikaneko Jul 21, 2020
0d70ea6
[pkg] post-installer script
kalikaneko Jul 23, 2020
5bd6f6a
[pkg] update build script for openvpn
kalikaneko Jul 27, 2020
bc0308c
[feat] improve error handling during login
kalikaneko Sep 29, 2020
b0f382f
[pkg] osx helper and working qt installer
kalikaneko Sep 30, 2020
7be95b0
[pkg] launch helper from the right path
kalikaneko Oct 2, 2020
e4daa9c
[pkg] osx uninstall, autolaunch
kalikaneko Oct 2, 2020
b6d7ec2
[pkg] target osx 10.11
kalikaneko Oct 7, 2020
2ec4131
[pkg] parametrize win/osx installer
kalikaneko Oct 8, 2020
dff328a
[pkg] windows fixes
Oct 9, 2020
66d64cf
[pkg] refactor vendor init/check
kalikaneko Oct 9, 2020
4f38e62
[pkg] add vendor icon to app
kalikaneko Oct 9, 2020
cd78380
[pkg] fix application name
kalikaneko Oct 9, 2020
7037bf2
[pkg] some extra branding refactor
kalikaneko Oct 9, 2020
93d01e6
[bug] get the correct snap paths
meskio Oct 13, 2020
1fa401a
[pkg] add commit to force push to protected branch
kalikaneko Oct 23, 2020
c530685
[docs] add some mxe pointers
kalikaneko Oct 23, 2020
7c93e95
[pkg] add golib target to makefile
kalikaneko Oct 13, 2020
9be4226
[pkg] osx fixes for installer build
kalikaneko Oct 13, 2020
691dd8d
[pkg] remove unused templates & scripts
kalikaneko Oct 13, 2020
1b446a5
[pkg] no need to build helper or openvpn for snap
kalikaneko Oct 13, 2020
181c033
[pkg] hide app window
kalikaneko Oct 13, 2020
b395192
[pkg] update mbedtls version
kalikaneko Oct 13, 2020
e8b7869
[pkg] windows gui & installer fixes
Oct 15, 2020
9db7874
[pkg] install tap driver on windows
Oct 15, 2020
89f4f1e
[bug] fix error condition for mkdir
Oct 15, 2020
3e172e7
[pkg] remove -p option, no need and missing in newer versions
kalikaneko Oct 15, 2020
ed0dfb3
[pkg] windows vendoring fixes
Oct 15, 2020
d6603ee
[pkg] rename to make-installer
kalikaneko Oct 16, 2020
ab70433
[pkg] move build-openvpn to installer target
kalikaneko Oct 23, 2020
10da47f
[pkg] relink vendor assets
kalikaneko Oct 23, 2020
cb4e683
[pkg] remove ldflags
kalikaneko Oct 23, 2020
7480684
[pkg] we're not building all providers for now
kalikaneko Oct 26, 2020
2eafc8d
[docs] streamline readme
kalikaneko Oct 27, 2020
4dfb406
[docs] add copy of code of conduct
kalikaneko Oct 27, 2020
9160780
[pkg] add vendor step to pipeline
kalikaneko Oct 27, 2020
b2bf817
[pkg] add missing png icon for riseup build
kalikaneko Oct 27, 2020
7925d7f
adapt makefile for the crosscompiles on windows
ok-sh Oct 2, 2020
10a8b38
add package- and pathinfo for Cygwin on win10
ok-sh Oct 3, 2020
71f21d7
Add ARCH Variable to select correct compiler in windows-build
ok-sh Oct 16, 2020
f8bc011
Readme update
ok-sh Oct 16, 2020
8c9577e
Detect cygwin for dependencies
ok-sh Oct 21, 2020
68931e7
clean up
ok-sh Oct 22, 2020
5cb3708
Adapt PKGFILES for win-powershell/cmd
ok-sh Nov 1, 2020
21e4810
Change Lineendings CRLF to LF
ok-sh Nov 1, 2020
59b56b5
Clean up and change PKGFILES
ok-sh Nov 2, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ cmd/bitmask-vpn/bitmask-vpn
cmd/bitmask-helper/bitmask-helper
/bitmask-connect
cmd/bitmask-connect/bitmask-connect
gui/i18n/*.qm
/snap

locales/*/out.gotext.json
tools/transifex/transifex

branding/assets/default
lib/*
qtbuild/*
providers/assets

.*.swp
*.exe
95 changes: 45 additions & 50 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,75 +5,70 @@ stages:
- trigger
- vendor

variables:
GOPATH: /go
APP_PATH: /go/src/0xacab.org/leap/bitmask-vpn

build_test:
image: registry.0xacab.org/leap/docker/bitmask-vpn:latest
image: registry.0xacab.org/leap/bitmask-vpn:latest
stage: build
script:
- mkdir -p /go/src/0xacab.org/leap/
- ln -s "$(pwd)" ${APP_PATH}
- cd ${APP_PATH}
- make get
- make generate
- make test
- make build_bitmaskd
# TODO missing xcb package in the docker image. investigate what to install to run minimal tests.
# - make test_ui
- make build
tags:
- linux
artifacts:
paths:
- 'bitmask-vpn'
- 'bitmask-helper'
- 'bitmask-connect'
- 'qtbuild/release/riseup-vpn'
expire_in: 1 month

branded_push:
image: registry.0xacab.org/leap/docker/bitmask-vpn:latest
stage: push
only:
- master
script:
# install the command-line openssh client to manage private keys
- apt install -y openssh-client
# activate the ssh-agent
- eval $(ssh-agent -s)
# load the private key, which is accessed vi a gitlab CI secret environment variable
# We're using tr to fix line endings which makes ed25519 keys work
# without extra base64 encoding.
- ssh-add <(echo "$RISEUP_VPN_PACKAGE_SSH_KEY")
- mkdir -p ~/.ssh
# ensure that ssh will trust a new host, instead of asking
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
# we also need to configure name and email for git user
- git config user.name "Gitlab CI"
- git config user.email "[email protected]"
# Add the remote repository and push to it - sometimes it already exists, and it causes the pipeline to fail, so we only add if its not already there
- git remote -v |grep -q riseup-vpn || git remote add riseup-vpn [email protected]:leap/riseup-vpn_package.git
- git push --force riseup-vpn HEAD:incoming
# branded_push:
# image: registry.0xacab.org/leap/bitmask-vpn:latest
# stage: push
# only:
# - master
# script:
# # install the command-line openssh client to manage private keys
# - apt install -y openssh-client
# # activate the ssh-agent
# - eval $(ssh-agent -s)
# # load the private key, which is accessed vi a gitlab CI secret environment variable
# # We're using tr to fix line endings which makes ed25519 keys work
# # without extra base64 encoding.
# - ssh-add <(echo "$RISEUP_VPN_PACKAGE_SSH_KEY")
# - mkdir -p ~/.ssh
# # ensure that ssh will trust a new host, instead of asking
# - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
# # we also need to configure name and email for git user
# - git config user.name "Gitlab CI"
# - git config user.email "[email protected]"
# # Add the remote repository and push to it - sometimes it already exists, and it causes the pipeline to fail, so we only add if its not already there
# - git remote -v |grep -q riseup-vpn || git remote add riseup-vpn [email protected]:leap/riseup-vpn_package.git
# - git push --force riseup-vpn HEAD:incoming


trigger_deb:
image: registry.0xacab.org/leap/docker/buster_amd64:latest
stage: trigger
script:
- echo "Triggering CI pipeline on https://0xacab.org/leap/riseup-vpn_package/pipelines"
- "curl -X POST -F token=$RISEUP_VPN_DEB_TRIGGER_TOKEN -F ref=master https://0xacab.org/api/v4/projects/1916/trigger/pipeline"
# trigger_deb:
# image: registry.0xacab.org/leap/buster_amd64:latest
# stage: trigger
# script:
# - echo "Triggering CI pipeline on https://0xacab.org/leap/riseup-vpn_package/pipelines"
# - "curl -X POST -F token=$RISEUP_VPN_DEB_TRIGGER_TOKEN -F ref=master https://0xacab.org/api/v4/projects/1916/trigger/pipeline"

vendorize:
image: registry.0xacab.org/leap/docker/bitmask-vpn:latest
image: registry.0xacab.org/leap/bitmask-vpn:latest
stage: vendor
script:
- 'PROVIDERS="riseup calyx" make build_all_providers'
#- TODO build_all_providers script can be rescued when we achieve to bring back xbuild for win/osx.
# For now it only makes sense to build the snap.
#- 'PROVIDERS="riseup calyx" make build_all_providers'
- 'PROVIDER="riseup" make vendor && make package_snap'
artifacts:
name: installers-$CI_COMMIT_REF_NAME
paths:
- 'deploy/*.snap'
- 'deploy/RiseupVPN-*.exe'
- 'deploy/RiseupVPN-*.pkg'
- 'deploy/riseup-vpn_*.deb'
- 'deploy/CalyxVPN-*.exe'
- 'deploy/CalyxVPN-*.pkg'
- 'deploy/calyx-vpn_*.deb'
# - 'deploy/RiseupVPN-*.exe'
# - 'deploy/RiseupVPN-*.pkg'
# - 'deploy/riseup-vpn_*.deb'
# - 'deploy/CalyxVPN-*.exe'
# - 'deploy/CalyxVPN-*.pkg'
# - 'deploy/calyx-vpn_*.deb'
expire_in: 1 month
Loading