Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit e4796ce

Browse files
committed
test build
1 parent 962febf commit e4796ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.drone.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ steps:
1212
- name: backend
1313
image: golang
1414
commands:
15+
- apt-get update
16+
- apt-get install -y zip upx
1517
- sh build_go.sh
1618

1719
- name: gitea_release
@@ -21,8 +23,6 @@ steps:
2123
from_secret: gitea_url
2224
api_key:
2325
from_secret: gitea_token
24-
checksum:
25-
- sha256
2626
files:
2727
- Robot_Monitor_Web_linux.zip
2828
- Robot_Monitor_Web_mac.zip

build_go.sh

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go-bindata-assetfs -prefix frontend frontend/dist/...
77
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o Robot_Monitor_Web_linux
88
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o Robot_Monitor_Web_mac
99
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o Robot_Monitor_Web_windows.exe
10+
upx -q -9 Robot_Monitor_Web_linux Robot_Monitor_Web_mac Robot_Monitor_Web_windows.exe
1011
zip Robot_Monitor_Web_linux.zip Robot_Monitor_Web_linux
1112
zip Robot_Monitor_Web_mac.zip Robot_Monitor_Web_mac
1213
zip Robot_Monitor_Web_windows.zip Robot_Monitor_Web_windows.exe

0 commit comments

Comments
 (0)