Adding instructions for building with custom Qt

This commit is contained in:
Jakub
2020-04-22 10:27:19 +02:00
parent 409abba995
commit 86c75e6196
2 changed files with 17 additions and 1 deletions

View File

@ -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