31 lines
872 B
Makefile
31 lines
872 B
Makefile
|
|
USER_GH=go-i2p
|
|
VERSION=0.33.92
|
|
CREDIT='contributors to this release: @hkh4n, @eyedeekay'
|
|
packagename=sam3
|
|
|
|
echo:
|
|
@echo "type make version to do release $(VERSION)"
|
|
|
|
version:
|
|
github-release release -s $(GITHUB_TOKEN) -u $(USER_GH) -r $(packagename) -t v$(VERSION) -d "version $(VERSION) $(CREDIT)"
|
|
|
|
del:
|
|
github-release delete -s $(GITHUB_TOKEN) -u $(USER_GH) -r $(packagename) -t v$(VERSION)
|
|
|
|
tar:
|
|
tar --exclude .git \
|
|
--exclude .go \
|
|
--exclude bin \
|
|
-cJvf ../$(packagename)_$(VERSION).orig.tar.xz .
|
|
|
|
copier:
|
|
echo '#! /usr/bin/env sh' > deb/copy.sh
|
|
echo 'for f in $$(ls); do scp $$f/*.deb user@192.168.99.106:~/DEBIAN_PKGS/$$f/main/; done' >> deb/copy.sh
|
|
|
|
fmt:
|
|
find . -name '*.go' -exec gofumpt -w -s -extra {} \;
|
|
|
|
upload-linux:
|
|
github-release upload -R -u $(USER_GH) -r "$(packagename)" -t $(VERSION) -l `sha256sum ` -n "$(packagename)" -f "$(packagename)"
|