mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
1.3 KiB
1.3 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 client key of your sentry project before build.
Otherwise 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
linuxbinary will the name of project directory e.gbridge - for
windowsthe binary has extension.exee.gbridge.exe - for
darwinthe application will be created with name of project directory e.gbridge.app
- for
Usefull tests, lints and checks
In order to be able to run following commands please install development dependencies: make install-dev-dependencies
make testwill run unit test for whole projectmake lintwill run liter for whole projectmake -C ./tests testwill run integration tests for Bridge applicationmake runwill compile without GUI and start Bridge application in CLI mode