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

6
debian/rules vendored
View file

@ -21,6 +21,10 @@
POSTIT_GIT_URL ?= https://github.com/pazof/yavsc.git
POSTIT_GIT_TAG ?= 1.0.0
# Runtime identifier passed to `dotnet publish --runtime`. Override
# at build time for non-amd64 targets:
# make deb POSTIT_RUNTIME=linux-arm64
POSTIT_RUNTIME ?= linux-x64
POSTIT_DESKTOP_PROJECT := src/PostIt/PostIt.Desktop/PostIt.Desktop.csproj
POSTIT_BUILD_DIR := $(CURDIR)/build
POSTIT_SRC_DIR := $(POSTIT_BUILD_DIR)/yavsc-src
@ -56,7 +60,7 @@ override_dh_auto_build:
dotnet publish $(POSTIT_SRC_DIR)/$(POSTIT_DESKTOP_PROJECT) \
-c Release \
--self-contained false \
--runtime linux-x64 \
--runtime $(POSTIT_RUNTIME) \
-p:PublishReadyToRun=false \
-o $(POSTIT_BUILD_DIR)/postit-app