Skip to content

Commit 59035b2

Browse files
-trimpath 追加
1 parent a0d66ee commit 59035b2

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

compile.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
mv dist dist_old
22
rm dist_old
33

4-
GOOS=darwin GOARCH=386 go build -tags production -ldflags "-s -w" -o ./dist/darwin/386/
5-
GOOS=darwin GOARCH=amd64 go build -tags production -ldflags "-s -w" -o ./dist/darwin/amd64/
6-
GOOS=freebsd GOARCH=386 go build -tags production -ldflags "-s -w" -o ./dist/freebsd/386/
7-
GOOS=freebsd GOARCH=amd64 go build -tags production -ldflags "-s -w" -o ./dist/freebsd/amd64/
8-
GOOS=freebsd GOARCH=arm go build -tags production -ldflags "-s -w" -o ./dist/freebsd/arm/
9-
GOOS=linux GOARCH=386 go build -tags production -ldflags "-s -w" -o ./dist/linux/386/
10-
GOOS=linux GOARCH=amd64 go build -tags production -ldflags "-s -w" -o ./dist/linux/amd64/
11-
GOOS=linux GOARCH=arm go build -tags production -ldflags "-s -w" -o ./dist/linux/arm/
12-
GOOS=netbsd GOARCH=386 go build -tags production -ldflags "-s -w" -o ./dist/netbsd/386/
13-
GOOS=netbsd GOARCH=amd64 go build -tags production -ldflags "-s -w" -o ./dist/netbsd/amd64/
14-
GOOS=netbsd GOARCH=arm go build -tags production -ldflags "-s -w" -o ./dist/netbsd/arm/
15-
GOOS=openbsd GOARCH=386 go build -tags production -ldflags "-s -w" -o ./dist/openbsd/386/
16-
GOOS=openbsd GOARCH=amd64 go build -tags production -ldflags "-s -w" -o ./dist/openbsd/amd64/
17-
GOOS=windows GOARCH=386 go build -tags production -ldflags "-s -w" -o ./dist/windows/386/
18-
GOOS=windows GOARCH=amd64 go build -tags production -ldflags "-s -w" -o ./dist/windows/amd64/
4+
GOOS=darwin GOARCH=386 go build -tags production -ldflags "-s -w" -trimpath -o ./dist/darwin/386/
5+
GOOS=darwin GOARCH=amd64 go build -tags production -ldflags "-s -w" -trimpath -o ./dist/darwin/amd64/
6+
GOOS=freebsd GOARCH=386 go build -tags production -ldflags "-s -w" -trimpath -o ./dist/freebsd/386/
7+
GOOS=freebsd GOARCH=amd64 go build -tags production -ldflags "-s -w" -trimpath -o ./dist/freebsd/amd64/
8+
GOOS=freebsd GOARCH=arm go build -tags production -ldflags "-s -w" -trimpath -o ./dist/freebsd/arm/
9+
GOOS=linux GOARCH=386 go build -tags production -ldflags "-s -w" -trimpath -o ./dist/linux/386/
10+
GOOS=linux GOARCH=amd64 go build -tags production -ldflags "-s -w" -trimpath -o ./dist/linux/amd64/
11+
GOOS=linux GOARCH=arm go build -tags production -ldflags "-s -w" -trimpath -o ./dist/linux/arm/
12+
GOOS=netbsd GOARCH=386 go build -tags production -ldflags "-s -w" -trimpath -o ./dist/netbsd/386/
13+
GOOS=netbsd GOARCH=amd64 go build -tags production -ldflags "-s -w" -trimpath -o ./dist/netbsd/amd64/
14+
GOOS=netbsd GOARCH=arm go build -tags production -ldflags "-s -w" -trimpath -o ./dist/netbsd/arm/
15+
GOOS=openbsd GOARCH=386 go build -tags production -ldflags "-s -w" -trimpath -o ./dist/openbsd/386/
16+
GOOS=openbsd GOARCH=amd64 go build -tags production -ldflags "-s -w" -trimpath -o ./dist/openbsd/amd64/
17+
GOOS=windows GOARCH=386 go build -tags production -ldflags "-s -w" -trimpath -o ./dist/windows/386/
18+
GOOS=windows GOARCH=amd64 go build -tags production -ldflags "-s -w" -trimpath -o ./dist/windows/amd64/
1919

2020
7z a -mx=5 ./dist/darwin.zip ./dist/darwin/
2121
7z a -mx=5 ./dist/darwin.7z ./dist/darwin/

0 commit comments

Comments
 (0)