forked from Silverfish/proton-bridge
Compare commits
1 Commits
v1.3.3
...
doc/custom
| Author | SHA1 | Date | |
|---|---|---|---|
| 86c75e6196 |
@ -29,6 +29,14 @@ make build
|
|||||||
* for `windows`, the binary will have the file extension `.exe` (e.g `bridge.exe`)
|
* 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`)
|
* 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
|
## Useful tests, lints and checks
|
||||||
In order to be able to run following commands please install the development dependencies:
|
In order to be able to run following commands please install the development dependencies:
|
||||||
`make install-dev-dependencies`
|
`make install-dev-dependencies`
|
||||||
|
|||||||
10
Makefile
10
Makefile
@ -2,7 +2,7 @@ export GO111MODULE=on
|
|||||||
GOOS:=$(shell go env GOOS)
|
GOOS:=$(shell go env GOOS)
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
.PHONY: build check-has-go
|
.PHONY: build qtdeploy check-has-go
|
||||||
|
|
||||||
VERSION?=1.2.6-git
|
VERSION?=1.2.6-git
|
||||||
REVISION:=$(shell git rev-parse --short=10 HEAD)
|
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
|
mv deploy cmd/Desktop-Bridge
|
||||||
rm -rf ${GOOS} main.go
|
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
|
logo.ico: ./internal/frontend/share/icons/logo.ico
|
||||||
cp $^ .
|
cp $^ .
|
||||||
icon.rc: ./internal/frontend/share/icon.rc
|
icon.rc: ./internal/frontend/share/icon.rc
|
||||||
|
|||||||
Reference in New Issue
Block a user