mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-06 00:00:57 +00:00
## Problem main carries four merged changelog fragments and still declares 0.1.0-rc.7 in the manifest, the READMEs, the install recipes and the packaging scripts, so the next tag would build and document the previous version. The Alpine, Gentoo, Nix and OpenWrt recipes also treat the pinned archive as GPL-3.0-only, which holds only for rc.7; the rc.8 archive is AGPL-3.0-only. ## How I fixed it Ran `pnpm changelog:release 0.1.0-rc.8 2026-11-27`, which wrote the dated section with PR numbers and removed the consumed fragments. Bumped the declared version everywhere it is spelled: package.json, the three READMEs, CONTRIBUTING, the three install guides, install/README, the Alpine, Gentoo, Nix and OpenWrt recipes (including the ebuild filename and its Manifest line) and the two packaging scripts. Updated the README release summary to this version's 12 entries. The recipes now declare AGPL-3.0-only unconditionally, so the rc.7 version guards and the install/README paragraph about them are removed, and the ebuild's Manifest entry carries its new size and digests. Published archive checksums stay as they are until the release builds exist. ## Verified `pnpm check` passes. Net lines: src +0/-0, unit 0, e2e 0, css 0. Not verified: package builds on Alpine, Gentoo, OpenWrt and Nix. --- - [x] I understand this change and answer for every line - [x] This branch is based on the current main - [x] I ran the repository's gates and recorded the results in Verified - [x] Each commit is one coherent change - [x] If behaviour changed, I updated the documentation - [ ] If interface text changed, I updated `en.json` and every complete language's catalogue - [ ] If interface appearance changed, I attached light and dark screenshots - [ ] If the API contract changed, I ran `pnpm gen:api` and `pnpm check:gen` - [ ] I checked the boxes above without reading them - [ ] I am an AI agent, and this content was submitted without human review
48 lines
2.2 KiB
Bash
Executable File
48 lines
2.2 KiB
Bash
Executable File
#!/bin/sh
|
|
# Builds the Alpine packages from install/alpine/APKBUILD and the archives in release/, as root in an Alpine container:
|
|
# docker run --rm -v "$PWD:/src" -w /src alpine:3.24 sh tools/package-alpine.sh 0.1.0-rc.8
|
|
# abuild signs each package with a key generated for this run; release/alpine/ receives the packages and the public
|
|
# key as doona-alpine.rsa.pub, and release/alpine-recipe/ the APKBUILD with this version and its checksums.
|
|
set -eu
|
|
|
|
cd "$(dirname "$0")/.."
|
|
[ "$#" -eq 1 ] || { echo "Usage: $0 <version>" >&2; exit 1; }
|
|
eval "$(tools/version.sh "v$1")"
|
|
pkgver=$VERSION${ARCH_PRERELEASE:+_$ARCH_PRERELEASE}
|
|
for name in doona doona-fonts doona-precompressed; do
|
|
[ -f "release/$name-$NPM.tar.gz" ] || { echo "Missing release/$name-$NPM.tar.gz; run tools/package.sh first" >&2; exit 1; }
|
|
done
|
|
|
|
apk add --no-cache --quiet abuild
|
|
work=$(mktemp -d)
|
|
trap 'rm -rf "$work"' 0
|
|
trap 'exit 1' HUP INT TERM
|
|
# abuild names the repository after the APKBUILD's grandparent directory.
|
|
mkdir -p "$work/alpine/doona" "$work/distfiles"
|
|
cp "release/doona-$NPM.tar.gz" "release/doona-fonts-$NPM.tar.gz" "release/doona-precompressed-$NPM.tar.gz" "$work/distfiles/"
|
|
sed "s/^pkgver=.*/pkgver=$pkgver/" install/alpine/APKBUILD > "$work/alpine/doona/APKBUILD"
|
|
|
|
# apk finds the key by the file name abuild records in each signature, so it takes a fixed name.
|
|
export PACKAGER='Zakkaus <zakk@gentoozh.org>'
|
|
abuild-keygen -n -q
|
|
mv "$HOME"/.abuild/*.rsa "$work/doona-alpine.rsa"
|
|
mv "$HOME"/.abuild/*.rsa.pub "$work/doona-alpine.rsa.pub"
|
|
export PACKAGER_PRIVKEY="$work/doona-alpine.rsa"
|
|
# abuild checks the packages against the trusted keys when it indexes them.
|
|
cp "$work/doona-alpine.rsa.pub" /etc/apk/keys/
|
|
export SRCDEST="$work/distfiles" REPODEST="$work/packages"
|
|
|
|
(cd "$work/alpine/doona" && abuild -F checksum && abuild -F -d)
|
|
|
|
pkgrel=$(sed -n 's/^pkgrel=//p' install/alpine/APKBUILD)
|
|
mkdir -p release/alpine
|
|
for package in "$REPODEST"/alpine/*/*.apk; do
|
|
name=${package##*/}
|
|
name=${name%-"$pkgver-r$pkgrel".apk}
|
|
cp "$package" "release/alpine/$name-$NPM-r$pkgrel.alpine.apk"
|
|
done
|
|
cp "$work/doona-alpine.rsa.pub" release/alpine/
|
|
mkdir -p release/alpine-recipe
|
|
cp "$work/alpine/doona/APKBUILD" release/alpine-recipe/
|
|
ls -l release/alpine
|