forked from Silverfish/proton-bridge
feat: build windows in pipeline
This commit is contained in:
@ -134,6 +134,26 @@ build-darwin:
|
|||||||
- bridge_*.tgz
|
- bridge_*.tgz
|
||||||
expire_in: 2 week
|
expire_in: 2 week
|
||||||
|
|
||||||
|
build-windows:
|
||||||
|
stage: build
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
only:
|
||||||
|
- devel
|
||||||
|
variables:
|
||||||
|
DOCKER_HOST: tcp://docker:2375
|
||||||
|
script:
|
||||||
|
- curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
|
||||||
|
- apt-get update && apt-get -y install binutils-mingw-w64
|
||||||
|
- ln -s /usr/bin/x86_64-w64-mingw32-windres /usr/bin/windres
|
||||||
|
- go mod download
|
||||||
|
- TARGET_OS=windows make build
|
||||||
|
artifacts:
|
||||||
|
name: "bridge-windows-$CI_COMMIT_SHORT_SHA"
|
||||||
|
paths:
|
||||||
|
- bridge_*.tgz
|
||||||
|
expire_in: 2 week
|
||||||
|
|
||||||
mirror-repo:
|
mirror-repo:
|
||||||
stage: mirror
|
stage: mirror
|
||||||
only:
|
only:
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -84,7 +84,7 @@ logo.ico: ./internal/frontend/share/icons/logo.ico
|
|||||||
icon.rc: ./internal/frontend/share/icon.rc
|
icon.rc: ./internal/frontend/share/icon.rc
|
||||||
cp $^ .
|
cp $^ .
|
||||||
./internal/frontend/qt/icon_windows.syso: ./internal/frontend/share/icon.rc logo.ico
|
./internal/frontend/qt/icon_windows.syso: ./internal/frontend/share/icon.rc logo.ico
|
||||||
windres --target=coff-x86-64 -o $@ $<
|
windres --target=pe-x86-64 -o $@ $<
|
||||||
icon_windows.syso: ./internal/frontend/qt/icon_windows.syso
|
icon_windows.syso: ./internal/frontend/qt/icon_windows.syso
|
||||||
cp $^ .
|
cp $^ .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user