File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 11BINARY = confidential
22GOARCH = amd64
33DIR = apps/confidential
4+ VERSION = 0.1.0
45
56.PHONY : linux
67linux :
7- cd ${DIR} && GOOS=linux GOARCH=${GOARCH} go build -o ${BINARY} -linux- ${GOARCH} . ; \
8+ cd ${DIR} && GOOS=linux GOARCH=${GOARCH} go build -o ${BINARY} . ; \
89
910.PHONY : darwin
1011darwin :
11- cd ${DIR} && GOOS=darwin GOARCH=${GOARCH} go build -o ${BINARY} -darwin- ${GOARCH} . ; \
12+ cd ${DIR} && GOOS=darwin GOARCH=${GOARCH} go build -o ${BINARY} . ; \
1213
1314.PHONY : windows
1415windows :
15- cd ${DIR} && GOOS=windows GOARCH=${GOARCH} go build -o ${BINARY} -windows-${GOARCH} .exe . ; \
16+ cd ${DIR} && GOOS=windows GOARCH=${GOARCH} go build -o ${BINARY} .exe . ; \
17+
18+ .PHONY : debian
19+ debian : linux
20+ fpm -s dir -t deb -n $(BINARY ) -v $(VERSION ) --prefix /usr/local/bin -C ${DIR} ${BINARY}
21+
22+ .PHONY : rpm
23+ rpm : linux
24+ fpm --rpm-os linux -s dir -t rpm -n $(BINARY ) -v $(VERSION ) --prefix /usr/local/bin -C ${DIR} ${BINARY}
25+ rpm --addsign confidential-${VERSION} -1.x86_64.rpm
You can’t perform that action at this time.
0 commit comments