mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
1.6 KiB
1.6 KiB
Building ProtonMail Bridge app
Prerequisites
- Go 1.13
- Bash with basic build utils: make, gcc, sed, find, grep, ...
- For Windows it is recommended to use MinGW 64bit shell from MSYS2
- GCC (linux, windows) or Xcode (macOS)
- Windres (windows)
To enable the sending of crash reports using Sentry please set the
main.DSNSentry value with the client key of your sentry project before build.
Otherwise, the sending of crash reports will be disabled.
Build
- for Windows please unset the
MSYSTEMvariable
export MSYSTEM=
- in project root run
make build
- The result will be stored in
./cmd/Destop-Bridge/deploy/${GOOS}/- for
linux, the binary will have the name of the project directory (e.gbridge) - for
windows, the binary will have the file extension.exe(e.gbridge.exe) - for
darwin, the application will be created with name of the project directory (e.gbridge.app)
- for
Build with custom Qt installation
Please follow the setup instructions in therecipe/qt wiki
Once you have successfully finished qtsetup you should be able compile Bridge using
make qtdeploy
Useful tests, lints and checks
In order to be able to run following commands please install the development dependencies:
make install-dev-dependencies
make testwill run all unit testsmake lintwill lint the whole projectmake -C ./tests testwill run the integration testsmake runwill build Bridge without a GUI and start it in CLI mode