File tree 2 files changed +7
-17
lines changed
2 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -447,23 +447,13 @@ steps:
447
447
commands :
448
448
- git fetch --tags --force
449
449
450
- - name : static-windows
451
- pull : always
452
- image : techknowlogick/xgo:go-1.14.x
453
- commands :
454
- - apt update && apt -y install curl
455
- - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
456
- - export PATH=$PATH:$GOPATH/bin
457
- - make frontend generate release-windows
458
- environment :
459
- GOPROXY : https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
460
- TAGS : bindata sqlite sqlite_unlock_notify
461
-
462
450
- name : static
463
451
pull : always
464
452
image : techknowlogick/xgo:go-1.15.x
465
453
commands :
466
- - make release-linux release-darwin release-copy release-compress release-sources release-docs release-check
454
+ - curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
455
+ - export PATH=$PATH:$GOPATH/bin
456
+ - make release
467
457
environment :
468
458
GOPROXY : https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
469
459
TAGS : bindata sqlite sqlite_unlock_notify
@@ -558,8 +548,7 @@ steps:
558
548
pull : always
559
549
image : techknowlogick/xgo:go-1.15.x
560
550
commands :
561
- - apt update && apt -y install curl
562
- - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
551
+ - curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
563
552
- export PATH=$PATH:$GOPATH/bin
564
553
- make release
565
554
environment :
Original file line number Diff line number Diff line change @@ -42,8 +42,10 @@ ifeq ($(HAS_GO), GO)
42
42
endif
43
43
44
44
ifeq ($(OS ) , Windows_NT)
45
+ GOFLAGS := -v -buildmode=exe
45
46
EXECUTABLE ?= gitea.exe
46
47
else
48
+ GOFLAGS := -v
47
49
EXECUTABLE ?= gitea
48
50
endif
49
51
55
57
56
58
GOFMT ?= gofmt -s
57
59
58
- GOFLAGS := -v
59
60
EXTRA_GOFLAGS ?=
60
61
61
62
MAKE_VERSION := $(shell $(MAKE ) -v | head -n 1)
@@ -556,7 +557,7 @@ release-windows: | $(DIST_DIRS)
556
557
GO111MODULE=off $(GO ) get -u src.techknowlogick.com/xgo; \
557
558
fi
558
559
@echo " Warning: windows version is built using golang 1.14"
559
- CGO_CFLAGS=" $( CGO_CFLAGS) " GO111MODULE=off xgo -go go-1.14.x -dest $(DIST ) /binaries -tags ' netgo osusergo $(TAGS)' -ldflags ' -linkmode external -extldflags "-static" $(LDFLAGS)' -targets ' windows/*' -out gitea-$(VERSION ) .
560
+ CGO_CFLAGS=" $( CGO_CFLAGS) " GO111MODULE=off xgo -go $( XGO_VERSION ) -buildmode exe -dest $(DIST ) /binaries -tags ' netgo osusergo $(TAGS)' -ldflags ' -linkmode external -extldflags "-static" $(LDFLAGS)' -targets ' windows/*' -out gitea-$(VERSION ) .
560
561
ifeq ($(CI ) ,drone)
561
562
cp /build/* $(DIST)/binaries
562
563
endif
You can’t perform that action at this time.
0 commit comments