release: Semantic versions and a News item for each release #18
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/release-versions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Real version numbers for releases, and a News item in the SideStore / AltStore source for each one.
What changed
Semantic versions (
scripts/release.sh,scripts/source.py next). The second argument now bumps the last released version.minoris the default, for new features (1.0.0 → 1.1.0).patchis for fixes only,majoris the third choice, or you can pass an exactX.Y.Z. A version that isn't newer than the last release is refused, and so is a tag that already exists. This follows Sure+'srelease.sh, which does the same thing for its SideStore builds.CFBundleVersionto increase.v1.1.0and "LiveWire 1.1.0", instead ofv1.0-12and "LiveWire 1.0 (12)". The IPA isLiveWire-1.1.0.ipa.News for each release (
scripts/source.py add). Each release adds a News item next to its version, in the format of AltStore's source docs and the AltStore and SideStore Community sources:livewire-<version>-<build>appID, so the app's banner shows under iturlto the release pagenotify: false, since SideStore already notifies about updatesThe caption is the first line when the notes have several lines (
$'Headline\n\nDetails…'), else the first sentence. A caption over 170 characters is cut at its last comma that fits.Backfill (
scripts/source.py backfill-news <file> [--apply]). Adds News for every release without one. It's a dry run unless--applyis passed, and running it twice adds nothing.Settings → About shows the build too: "Version 1.1.0 (13)".
README.md: the release section.Intent: honest version numbers and a release feed in SideStore. Not a goal: renumbering builds 1–12, which stay "1.0" in the source because changing an installed version's number would confuse SideStore's update check.
Testing
On a copy of the live
livewire-ios.json:nextgives minor → 1.1.0, patch → 1.0.1, major → 2.0.0 and1.0.5→ 1.0.5. It refuses2.0,1.0.0andnopewith a message.backfill-newsprinted 12 items and wrote nothing. With--applyit added 12 items, and a second run said every release has one.addfor a fake 1.1.0 (13) added the version and a News item with unique identifiers, andnextthen gave 1.2.0.bash -n scripts/release.shpasses, and the app builds.