diff --git a/BUILDS.md b/BUILDS.md index 250fc60e..3aa7fba7 100644 --- a/BUILDS.md +++ b/BUILDS.md @@ -29,6 +29,14 @@ make build * for `windows`, the binary will have the file extension `.exe` (e.g `bridge.exe`) * for `darwin`, the application will be created with name of the project directory (e.g `bridge.app`) +## Build with custom Qt installation +Please follow the setup instructions in [therecipe/qt wiki](https://github.com/therecipe/qt/wiki/Installation) +Once you have successfully finished `qtsetup` you should be able compile Bridge using + +```bash +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` diff --git a/Makefile b/Makefile index 5d033df8..ef9ec1e4 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ export GO111MODULE=on GOOS:=$(shell go env GOOS) ## Build -.PHONY: build check-has-go +.PHONY: build qtdeploy check-has-go VERSION?=1.2.6-git REVISION:=$(shell git rev-parse --short=10 HEAD) @@ -63,6 +63,14 @@ ${EXE_TARGET}: check-has-go gofiles ${ICO_FILES} update-vendor mv deploy cmd/Desktop-Bridge rm -rf ${GOOS} main.go +qtdeploy: check-has-go gofiles ${ICO_FILES} + go mod vendor + rm -rf deploy ${GOOS} ${DEPLOY_DIR} + cp cmd/Desktop-Bridge/main.go . + qtdeploy ${BUILD_FLAGS} build desktop + mv deploy cmd/Desktop-Bridge + rm -rf ${GOOS} main.go + logo.ico: ./internal/frontend/share/icons/logo.ico cp $^ . icon.rc: ./internal/frontend/share/icon.rc