]> git.r.bdr.sh - rbdr/lyricli/blobdiff - Makefile
Load .env on deb / rpm
[rbdr/lyricli] / Makefile
index 4d414c84ac6a80ed4a98ac14b9fd309494d215a1..61dc355d097bc67c502fa84b2f2008c9e1bcb555 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ endif
 
 deb: build
        @$(eval filename := $(app_name)-$(target)-$(channel))
 
 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)
        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))
 
 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)
        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)