debian+makefile: expose POSTIT_RUNTIME override for arm64 builds

Default stays linux-x64 (the only architecture built today).
Override on the command line to target arm64 (or any other
RID supported by Avalonia 12 on Linux):

  make deb POSTIT_RUNTIME=linux-arm64

The Makefile passes POSTIT_RUNTIME through to dpkg-buildpackage,
which propagates it to debian/rules, which threads it into
dotnet publish --runtime.

Note: the .deb is mono-architecture. For a multi-arch .deb,
the build must run twice (once per RID) and the resulting .debs
can be combined with dpkg-gencontrol / Multi-Arch: same.

Update README accordingly.
This commit is contained in:
Paul Schneider 2026-06-28 00:51:14 +01:00
commit 28303435cc
3 changed files with 25 additions and 6 deletions

View file

@ -11,18 +11,20 @@
# debugging the publish step.
#
# Environment overrides (or pass on the make command line):
# POSTIT_GIT_URL default: https://github.com/pazof/yavsc.git
# POSTIT_GIT_TAG default: 1.0.0
# POSTIT_OUT_DIR default: $(CURDIR)/.. (artifacts land here)
# POSTIT_GIT_URL default: https://github.com/pazof/yavsc.git
# POSTIT_GIT_TAG default: 1.0.0
# POSTIT_RUNTIME default: linux-x64 (override to linux-arm64 etc.)
# POSTIT_OUT_DIR default: $(CURDIR)/.. (artifacts land here)
POSTIT_GIT_URL ?= https://github.com/pazof/yavsc.git
POSTIT_GIT_TAG ?= 1.0.0
POSTIT_RUNTIME ?= linux-x64
POSTIT_OUT_DIR ?= $(CURDIR)/..
.PHONY: deb clean source
deb:
POSTIT_GIT_URL=$(POSTIT_GIT_URL) POSTIT_GIT_TAG=$(POSTIT_GIT_TAG) \
POSTIT_GIT_URL=$(POSTIT_GIT_URL) POSTIT_GIT_TAG=$(POSTIT_GIT_TAG) POSTIT_RUNTIME=$(POSTIT_RUNTIME) \
dpkg-buildpackage -us -uc -b
mv ../postit_*$(POSTIT_GIT_TAG)*.deb $(POSTIT_OUT_DIR)/ 2>/dev/null || \
mv ../postit_*.deb $(POSTIT_OUT_DIR)/ || true