X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli/blobdiff_plain/738ec06d26a2a19bdda8a992d2250e731d954631..f5a040da21ff2bf594e50d886b5e485cdfdc4a70:/Makefile diff --git a/Makefile b/Makefile index 3416abd..61dc355 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ profile := dev target = $(shell rustc -vV | grep host | awk '{print $$2}') architectures := x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu -app_name := blog +app_name := lrc default: build @@ -26,7 +26,7 @@ endif deb: build @$(eval filename := $(app_name)-$(target)-$(channel)) - cargo deb --profile $(profile) --target $(target) + @export $$(cat .env | xargs) > /dev/null 2>&1 && cargo deb --profile $(profile) --target $(target) mv target/$(target)/debian/*.deb $(filename).deb sha256sum $(filename).deb > $(filename).deb.sha256 rsync -avz $(filename).deb deploy@conchos.unlimited.pizza:/srv/http/build.r.bdr.sh/$(app_name) @@ -34,7 +34,7 @@ deb: build rpm: build @$(eval filename := $(app_name)-$(target)-$(channel)) - cargo generate-rpm --profile $(profile) --target $(target) + @export $$(cat .env | xargs) > /dev/null 2>&1 && cargo generate-rpm --profile $(profile) --target $(target) mv target/$(target)/generate-rpm/*.rpm $(filename).rpm sha256sum $(filename).rpm > $(filename).rpm.sha256 rsync -avz $(filename).rpm deploy@conchos.unlimited.pizza:/srv/http/build.r.bdr.sh/$(app_name)