Commit d0be48f 1 parent 0ed3f58 commit d0be48f Copy full SHA for d0be48f
File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ REPOSITORY = $(shell basename $(PWD))
4
4
VERSION = $(shell grep "const Version " $(PWD ) /version.go | sed -E 's/.* "(.+) "$$/\1/')
5
5
6
6
# Build information
7
- DIST_DIR = $(PWD ) /dist
8
- ASSETS_DIR = $(DIST_DIR ) /$(VERSION )
9
- XC_OS = "linux darwin windows"
10
- XC_ARCH = "386 amd64"
7
+ DIST_DIR = $(PWD ) /dist
8
+ ASSETS_DIR = $(DIST_DIR ) /$(VERSION )
9
+ XC_OS = "linux darwin windows"
10
+ XC_ARCH = "386 amd64"
11
+ BUILD_LDFLAGS = "-w -s"
11
12
12
13
# Tasks
13
14
help :
@@ -39,14 +40,14 @@ updatedeps:
39
40
40
41
dist :
41
42
@echo " ===> Shipping packages as release assets..."
42
- goxz -d $(ASSETS_DIR ) -os $(XC_OS ) -arch $(XC_ARCH ) -pv $(VERSION ) -z
43
+ goxz -d= $(ASSETS_DIR ) -os= $(XC_OS ) -arch= $(XC_ARCH ) --build-ldflags= $( BUILD_LDFLAGS ) -pv= $(VERSION ) -z
43
44
pushd $(ASSETS_DIR ) ; \
44
45
shasum -a 256 * .zip > ./$(VERSION ) _SHA256SUMS; \
45
46
popd ; \
46
47
47
48
release :
48
49
@echo " ===> Publishing to GitHub..."
49
- ghr -u $(OWNER ) -r $(REPOSITORY ) $(VERSION ) $(ASSETS_DIR )
50
+ ghr -u= $(OWNER ) -r= $(REPOSITORY ) $(VERSION ) $(ASSETS_DIR )
50
51
51
52
clean :
52
53
@echo " ===> Cleaning assets..."
You can’t perform that action at this time.
0 commit comments