-
Notifications
You must be signed in to change notification settings - Fork 35
/
Makefile
28 lines (27 loc) · 966 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
GOBUILD=go build -trimpath -ldflags '-w -s' -o
BIN=bin/better-av-tool
BIN2=bin/better-av-tool.exe
SOURCE=.
VERSION=1.5.3
docker:
$(GOBUILD) $(BIN) $(SOURCE)
mac:
GOOS=darwin GOARCH=amd64 $(GOBUILD) $(BIN) $(SOURCE)
cp config.toml bin/
zip bin/better-av-tool-darwin-amd64-v$(VERSION).zip $(BIN) bin/config.toml
win:
GOOS=windows GOARCH=amd64 $(GOBUILD) $(BIN2) $(SOURCE)
cp config.toml bin/
zip bin/better-av-tool-windows-amd64-v$(VERSION).zip $(BIN2) bin/config.toml
m1:
GOOS=darwin GOARCH=arm64 $(GOBUILD) $(BIN) $(SOURCE)
cp config.toml bin/
zip bin/better-av-tool-darwin-arm64-v$(VERSION).zip $(BIN) bin/config.toml
pi:
GOOS=linux GOARCH=arm64 $(GOBUILD) $(BIN) $(SOURCE)
cp config.toml bin/
zip bin/better-av-tool-linux-arm64-v$(VERSION).zip $(BIN) bin/config.toml
nas:
GOOS=linux GOARCH=amd64 $(GOBUILD) $(BIN) $(SOURCE)
cp config.toml bin/
zip bin/better-av-tool-linux-amd64-v$(VERSION).zip $(BIN) bin/config.toml