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.
38 lines
1.4 KiB
Makefile
38 lines
1.4 KiB
Makefile
# Makefile for the postit Debian package.
|
|
#
|
|
# Targets:
|
|
# make deb : build a .deb in the parent directory (or
|
|
# $POSTIT_OUT_DIR if set). Equivalent to
|
|
# dpkg-buildpackage -us -uc -b.
|
|
# make clean : rm -rf build/ and the per-package staging tree
|
|
# under debian/postit.
|
|
# make source : fetch the upstream yavsc source tree under
|
|
# build/yavsc-src (no packaging step). Useful for
|
|
# 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_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_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
|
|
|
|
clean:
|
|
rm -rf build debian/postit
|
|
|
|
source:
|
|
mkdir -p build
|
|
git clone --depth=1 --branch $(POSTIT_GIT_TAG) \
|
|
$(POSTIT_GIT_URL) build/yavsc-src
|