The agent answered --version with "fingerprintd-agent 0.2.2", the string it was written with, while the daemon's constant went 0.2.3, 0.2.4, 0.2.5: the subpackage carried the package's version and reported another. The constant moves from main.cpp into the module both products import, with its note on what a bump publishes; the two scripts that derive pkgver from it, the APKBUILD's header and the CI comment name the new file. The APKBUILD's own pkgver stays a hand-kept copy, which a bump changes too.
38 lines
1.8 KiB
Shell
Executable file
38 lines
1.8 KiB
Shell
Executable file
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
|
# make-bin-tarball.sh — bundle the cross-compiled fingerprintd binary and its
|
|
# runtime files into the source tarball APKBUILD consumes. Run from the repo
|
|
# root after a cross build; output lands in the current directory.
|
|
set -eu
|
|
|
|
VER="${1:-$(sed -n 's/.*Version = "\(.*\)".*/\1/p' interfaces/Fingerprintd.cppm)}"
|
|
[ -n "$VER" ] || { echo "could not determine version — pass it as \$1" >&2; exit 1; }
|
|
BIN=$(ls -t bin/fingerprintd-aarch64-*/fingerprintd 2>/dev/null | head -n1)
|
|
[ -n "$BIN" ] || { echo "no aarch64 fingerprintd build found — cross-compile first" >&2; exit 1; }
|
|
AGENT=$(ls -t bin/fingerprintd-agent-aarch64-*/fingerprintd-agent 2>/dev/null | head -n1)
|
|
[ -n "$AGENT" ] || { echo "no aarch64 agent build — cross-compile with --product=agent" >&2; exit 1; }
|
|
|
|
stage=$(mktemp -d)
|
|
trap 'rm -rf "$stage"' EXIT
|
|
mkdir "$stage/fingerprintd-$VER"
|
|
cp "$BIN" "$stage/fingerprintd-$VER/fingerprintd"
|
|
cp "$AGENT" "$stage/fingerprintd-$VER/fingerprintd-agent"
|
|
cp packaging/fingerprintd.service \
|
|
packaging/mnt-persist.mount \
|
|
packaging/80-fingerprintd.preset \
|
|
packaging/net.reactivated.Fprint.conf \
|
|
packaging/net.reactivated.Fprint.service \
|
|
packaging/net.reactivated.fprint.device.policy \
|
|
packaging/fingerprintd.tmpfiles.conf \
|
|
packaging/fingerprintd.modules-load.conf \
|
|
packaging/fingerprintd.json \
|
|
packaging/20-focal64.manifest \
|
|
packaging/fingerprint-auth.pam \
|
|
packaging/postlogin.pam \
|
|
packaging/actions.conf.example \
|
|
packaging/fingerprintd-agent.service \
|
|
packaging/fingers.conf.example \
|
|
"$stage/fingerprintd-$VER/"
|
|
tar -C "$stage" -czf "fingerprintd-$VER.tar.gz" "fingerprintd-$VER"
|
|
echo "wrote fingerprintd-$VER.tar.gz ($(du -h "fingerprintd-$VER.tar.gz" | cut -f1))"
|