|
9 | 9 |
|
10 | 10 | set -o verbose
|
11 | 11 |
|
| 12 | +version=$(git describe --tags) |
| 13 | + |
12 | 14 | mkdir -p dist
|
13 | 15 |
|
14 |
| -CGO_ENABLED=0 GOOS=darwin GOARCH=386 go build -ldflags='-s -w' && sync && tar czf dist/lf-darwin-386.tar.gz lf --remove-files |
15 |
| -CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags='-s -w' && sync && tar czf dist/lf-darwin-amd64.tar.gz lf --remove-files |
16 |
| -CGO_ENABLED=0 GOOS=dragonfly GOARCH=amd64 go build -ldflags='-s -w' && sync && tar czf dist/lf-dragonfly-amd64.tar.gz lf --remove-files |
17 |
| -CGO_ENABLED=0 GOOS=freebsd GOARCH=386 go build -ldflags='-s -w' && sync && tar czf dist/lf-freebsd-386.tar.gz lf --remove-files |
18 |
| -CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags='-s -w' && sync && tar czf dist/lf-freebsd-amd64.tar.gz lf --remove-files |
19 |
| -CGO_ENABLED=0 GOOS=freebsd GOARCH=arm go build -ldflags='-s -w' && sync && tar czf dist/lf-freebsd-arm.tar.gz lf --remove-files |
20 |
| -CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags='-s -w' && sync && tar czf dist/lf-linux-386.tar.gz lf --remove-files |
21 |
| -CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags='-s -w' && sync && tar czf dist/lf-linux-amd64.tar.gz lf --remove-files |
22 |
| -CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags='-s -w' && sync && tar czf dist/lf-linux-arm.tar.gz lf --remove-files |
23 |
| -CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags='-s -w' && sync && tar czf dist/lf-linux-arm64.tar.gz lf --remove-files |
24 |
| -CGO_ENABLED=0 GOOS=linux GOARCH=ppc64 go build -ldflags='-s -w' && sync && tar czf dist/lf-linux-ppc64.tar.gz lf --remove-files |
25 |
| -CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le go build -ldflags='-s -w' && sync && tar czf dist/lf-linux-ppc64le.tar.gz lf --remove-files |
26 |
| -CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -ldflags='-s -w' && sync && tar czf dist/lf-linux-mips.tar.gz lf --remove-files |
27 |
| -CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -ldflags='-s -w' && sync && tar czf dist/lf-linux-mipsle.tar.gz lf --remove-files |
28 |
| -CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -ldflags='-s -w' && sync && tar czf dist/lf-linux-mips64.tar.gz lf --remove-files |
29 |
| -CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -ldflags='-s -w' && sync && tar czf dist/lf-linux-mips64le.tar.gz lf --remove-files |
30 |
| -CGO_ENABLED=0 GOOS=netbsd GOARCH=386 go build -ldflags='-s -w' && sync && tar czf dist/lf-netbsd-386.tar.gz lf --remove-files |
31 |
| -CGO_ENABLED=0 GOOS=netbsd GOARCH=amd64 go build -ldflags='-s -w' && sync && tar czf dist/lf-netbsd-amd64.tar.gz lf --remove-files |
32 |
| -CGO_ENABLED=0 GOOS=netbsd GOARCH=arm go build -ldflags='-s -w' && sync && tar czf dist/lf-netbsd-arm.tar.gz lf --remove-files |
33 |
| -CGO_ENABLED=0 GOOS=openbsd GOARCH=386 go build -ldflags='-s -w' && sync && tar czf dist/lf-openbsd-386.tar.gz lf --remove-files |
34 |
| -CGO_ENABLED=0 GOOS=openbsd GOARCH=amd64 go build -ldflags='-s -w' && sync && tar czf dist/lf-openbsd-amd64.tar.gz lf --remove-files |
35 |
| -CGO_ENABLED=0 GOOS=openbsd GOARCH=arm go build -ldflags='-s -w' && sync && tar czf dist/lf-openbsd-arm.tar.gz lf --remove-files |
| 16 | +CGO_ENABLED=0 GOOS=darwin GOARCH=386 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-darwin-386.tar.gz lf --remove-files |
| 17 | +CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-darwin-amd64.tar.gz lf --remove-files |
| 18 | +CGO_ENABLED=0 GOOS=dragonfly GOARCH=amd64 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-dragonfly-amd64.tar.gz lf --remove-files |
| 19 | +CGO_ENABLED=0 GOOS=freebsd GOARCH=386 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-freebsd-386.tar.gz lf --remove-files |
| 20 | +CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-freebsd-amd64.tar.gz lf --remove-files |
| 21 | +CGO_ENABLED=0 GOOS=freebsd GOARCH=arm go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-freebsd-arm.tar.gz lf --remove-files |
| 22 | +CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-linux-386.tar.gz lf --remove-files |
| 23 | +CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-linux-amd64.tar.gz lf --remove-files |
| 24 | +CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-linux-arm.tar.gz lf --remove-files |
| 25 | +CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-linux-arm64.tar.gz lf --remove-files |
| 26 | +CGO_ENABLED=0 GOOS=linux GOARCH=ppc64 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-linux-ppc64.tar.gz lf --remove-files |
| 27 | +CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-linux-ppc64le.tar.gz lf --remove-files |
| 28 | +CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-linux-mips.tar.gz lf --remove-files |
| 29 | +CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-linux-mipsle.tar.gz lf --remove-files |
| 30 | +CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-linux-mips64.tar.gz lf --remove-files |
| 31 | +CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-linux-mips64le.tar.gz lf --remove-files |
| 32 | +CGO_ENABLED=0 GOOS=netbsd GOARCH=386 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-netbsd-386.tar.gz lf --remove-files |
| 33 | +CGO_ENABLED=0 GOOS=netbsd GOARCH=amd64 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-netbsd-amd64.tar.gz lf --remove-files |
| 34 | +CGO_ENABLED=0 GOOS=netbsd GOARCH=arm go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-netbsd-arm.tar.gz lf --remove-files |
| 35 | +CGO_ENABLED=0 GOOS=openbsd GOARCH=386 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-openbsd-386.tar.gz lf --remove-files |
| 36 | +CGO_ENABLED=0 GOOS=openbsd GOARCH=amd64 go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-openbsd-amd64.tar.gz lf --remove-files |
| 37 | +CGO_ENABLED=0 GOOS=openbsd GOARCH=arm go build -ldflags="-s -w -X main.gVersion=$version" && sync && tar czf dist/lf-openbsd-arm.tar.gz lf --remove-files |
36 | 38 |
|
37 |
| -CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags='-s -w' && sync && zip dist/lf-windows-386.zip lf.exe --move |
38 |
| -CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags='-s -w' && sync && zip dist/lf-windows-amd64.zip lf.exe --move |
| 39 | +CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags="-s -w -X main.gVersion=$version" && sync && zip dist/lf-windows-386.zip lf.exe --move |
| 40 | +CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X main.gVersion=$version" && sync && zip dist/lf-windows-amd64.zip lf.exe --move |
0 commit comments