iced_demo/makefile

22 lines
665 B
Makefile
Raw Normal View History

2024-05-04 10:44:26 +02:00
PROJECT = $(shell basename $(CURDIR))
GITHASH = $(shell git rev-parse --short HEAD)
release:
cargo build --release
2024-05-05 04:37:04 +02:00
tar -czf $(PROJECT)_$(GITHASH).tar.gz -C target/release $(PROJECT)
tar -tvf $(PROJECT)_$(GITHASH).tar.gz
2024-05-04 10:47:31 +02:00
clean:
cargo clean
2024-05-05 05:09:09 +02:00
rm -f *.tar.gz
rm -f *.tar.gz.minisig
source-release:
git archive --format=tar.gz --prefix=$(PROJECT)/ -o $(PROJECT)_$(GITHASH)_source.tar.gz HEAD
tar -tvf $(PROJECT)_$(GITHASH)_source.tar.gz
2024-05-05 04:37:04 +02:00
2024-05-05 05:09:09 +02:00
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)/