-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
72 lines (57 loc) · 3.5 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# ./firefox-sync-client
#########################
build: enums
CGO_ENABLED=0 go build -o _out/ffsclient ./cmd/ffsclient
run: build
./_out/ffsclient
clean:
go clean
rm -rf ./_out/*
enums:
go generate syncclient/enums.go
go generate cli/enums.go
package:
#
# Manually do beforehand:
# - Update version in version.go
# - Create tag
# - Commit
#
go clean
rm -rf ./_out/*
_data/package-data/sanitycheck.sh
GOARCH=386 GOOS=linux CGO_ENABLED=0 go build -o _out/ffsclient_linux-386-static ./cmd/ffsclient # Linux - 32 bit
GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -o _out/ffsclient_linux-amd64-static ./cmd/ffsclient # Linux - 64 bit
GOARCH=arm64 GOOS=linux CGO_ENABLED=0 go build -o _out/ffsclient_linux-arm64-static ./cmd/ffsclient # Linux - ARM
GOARCH=386 GOOS=linux go build -o _out/ffsclient_linux-386 ./cmd/ffsclient # Linux - 32 bit
GOARCH=amd64 GOOS=linux go build -o _out/ffsclient_linux-amd64 ./cmd/ffsclient # Linux - 64 bit
GOARCH=arm64 GOOS=linux go build -o _out/ffsclient_linux-arm64 ./cmd/ffsclient # Linux - ARM
GOARCH=386 GOOS=windows go build -o _out/ffsclient_win-386.exe -tags timetzdata -ldflags "-w -s" ./cmd/ffsclient # Windows - 32 bit
GOARCH=amd64 GOOS=windows go build -o _out/ffsclient_win-amd64.exe -tags timetzdata -ldflags "-w -s" ./cmd/ffsclient # Windows - 64 bit
GOARCH=arm64 GOOS=windows go build -o _out/ffsclient_win-arm64.exe -tags timetzdata -ldflags "-w -s" ./cmd/ffsclient # Windows - ARM
GOARCH=amd64 GOOS=darwin go build -o _out/ffsclient_macos-amd64 ./cmd/ffsclient # macOS - 32 bit
GOARCH=amd64 GOOS=darwin go build -o _out/ffsclient_macos-amd64 ./cmd/ffsclient # macOS - 64 bit
GOARCH=amd64 GOOS=openbsd go build -o _out/ffsclient_openbsd-amd64 ./cmd/ffsclient # OpenBSD - 64 bit
GOARCH=arm64 GOOS=openbsd go build -o _out/ffsclient_openbsd-arm64 ./cmd/ffsclient # OpenBSD - ARM
GOARCH=amd64 GOOS=freebsd go build -o _out/ffsclient_freebsd-amd64 ./cmd/ffsclient # FreeBSD - 64 bit
GOARCH=arm64 GOOS=freebsd go build -o _out/ffsclient_freebsd-arm64 ./cmd/ffsclient # FreeBSD - ARM
_data/package-data/deb.sh
_data/package-data/aur-git.sh
_data/package-data/aur-bin.sh
_data/package-data/chocolatey.sh
_data/package-data/homebrew.sh
echo ""
echo "[TODO]: call 'make package-push-aur-git' "
echo "[TODO]: call 'make package-push-aur-bin' "
echo "[TODO]: call 'make package-push-homebrew' "
echo "[TODO]: call 'make package-push-chocolatey' "
echo "[TODO]: create github release"
echo ""
package-push-aur-git:
cd _out/ffsclient-git && git push
package-push-aur-bin:
cd _out/ffsclient-bin && git push
package-push-homebrew:
cd _out/homebrew-tap && git push
package-push-chocolatey:
docker run --rm --volume "$(shell pwd)/_out/chocolatey:/root/ffsclient" "chocolatey/choco:latest" /root/ffsclient/push.sh "$(shell secret-tool lookup Path "Personal/References/ChocoAPIKey")"