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

Commit 577b01b

Browse files
committed
Get UPX working
1 parent babbea5 commit 577b01b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.goreleaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
builds:
2-
- ldflags:
2+
-
3+
ldflags:
34
- -s -w -X github.com/devopsmakers/xterrafile/cmd.version={{.Version}} -X github.com/devopsmakers/xterrafile/cmd.commit={{.ShortCommit}} -X github.com/devopsmakers/xterrafile/cmd.date={{.Date}}
45
hooks:
56
post: /bin/sh upx.sh

upx.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/bin/bash
22
set -ex
3-
upx dist/*/xterrafile
3+
upx dist/darwin_386/xterrafile
4+
upx dist/linux_386/xterrafile
5+
upx dist/darwin_amd64/xterrafile
6+
upx dist/linux_amd64/xterrafile

0 commit comments

Comments
 (0)