From 1e7b6c6251bb260241038ca8776b5969cd18f42a Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 24 Oct 2023 17:15:48 +0200 Subject: [PATCH] Make: Add pkg-amd64 and pkg-arm64 build targets Signed-off-by: Michael Mayer --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index ba4a295c9..b92875414 100644 --- a/Makefile +++ b/Makefile @@ -109,6 +109,11 @@ clean: tar.gz: $(info Creating tar.gz archives from the directories in "$(BUILD_PATH)"...) find "$(BUILD_PATH)" -maxdepth 1 -mindepth 1 -type d -exec tar --exclude='.[^/]*' -C {} -czf {}.tar.gz . \; +pkg: pkg-amd64 pkg-arm64 +pkg-amd64: + docker run --rm -u $(UID) --platform=amd64 --pull=always -v ".:/go/src/github.com/photoprism/photoprism" --entrypoint "" photoprism/develop:jammy make all install tar.gz +pkg-arm64: + docker run --rm -u $(UID) --platform=arm64 --pull=always -v ".:/go/src/github.com/photoprism/photoprism" --entrypoint "" photoprism/develop:jammy make all install tar.gz install: $(info Installing in "$(DESTDIR)"...) @[ ! -d "$(DESTDIR)" ] || (echo "ERROR: Install path '$(DESTDIR)' already exists!"; exit 1)