This commit is contained in:
Imbus 2024-05-05 05:09:09 +02:00
parent 325aea753b
commit f5cacad639

View file

@ -8,9 +8,15 @@ release:
clean: clean:
cargo clean cargo clean
rm *.tar.gz rm -f *.tar.gz
rm $(PROJECT) rm -f *.tar.gz.minisig
rm $(PROJECT).tar.gz.minisig
sign: release source-release:
minisign -Sm $(PROJECT)_$(GITHASH).tar.gz git archive --format=tar.gz --prefix=$(PROJECT)/ -o $(PROJECT)_$(GITHASH)_source.tar.gz HEAD
tar -tvf $(PROJECT)_$(GITHASH)_source.tar.gz
sign: release source-release
minisign -Sm $(PROJECT)_$(GITHASH).tar.gz $(PROJECT)_$(GITHASH)_source.tar.gz
publish: sign
scp $(PROJECT)_$(GITHASH).tar.gz* $(PROJECT)_$(GITHASH)_source.tar.gz* server:/public/$(PROJECT)/