release: Semantic versions and a News item for each release #18

Merged
namillis merged 1 commit from feat/release-versions into main 2026-11-11 20:15:41 +00:00
Owner

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. minor is the default, for new features (1.0.0 → 1.1.0). patch is for fixes only, major is the third choice, or you can pass an exact X.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+'s release.sh, which does the same thing for its SideStore builds.

    • The build number still counts up across versions (one past the source's latest), because iOS and SideStore need CFBundleVersion to increase.
    • The first 12 releases were all "1.0" and count as 1.0.0, so the next release is 1.1.0 (13).
    • Tags and release titles follow LiveWireTV: v1.1.0 and "LiveWire 1.1.0", instead of v1.0-12 and "LiveWire 1.0 (12)". The IPA is LiveWire-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:

    • title "LiveWire 1.1.0"
    • identifier livewire-<version>-<build>
    • a one-sentence caption
    • the date
    • the app's red tint
    • appID, so the app's banner shows under it
    • a url to the release page
    • notify: false, since SideStore already notifies about updates

    The 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 --apply is 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:

  • next gives minor → 1.1.0, patch → 1.0.1, major → 2.0.0 and 1.0.5 → 1.0.5. It refuses 2.0, 1.0.0 and nope with a message.
  • backfill-news printed 12 items and wrote nothing. With --apply it added 12 items, and a second run said every release has one.
  • add for a fake 1.1.0 (13) added the version and a News item with unique identifiers, and next then gave 1.2.0.
  • bash -n scripts/release.sh passes, and the app builds.
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. `minor` is the default, for new features (1.0.0 → 1.1.0). `patch` is for fixes only, `major` is the third choice, or you can pass an exact `X.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+'s `release.sh`, which does the same thing for its SideStore builds. - The build number still counts up across versions (one past the source's latest), because iOS and SideStore need `CFBundleVersion` to increase. - The first 12 releases were all "1.0" and count as 1.0.0, so the next release is **1.1.0 (13)**. - Tags and release titles follow LiveWireTV: `v1.1.0` and "LiveWire 1.1.0", instead of `v1.0-12` and "LiveWire 1.0 (12)". The IPA is `LiveWire-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](https://faq.altstore.io/developers/make-a-source#news-items) and the AltStore and SideStore Community sources: - title "LiveWire 1.1.0" - identifier `livewire-<version>-<build>` - a one-sentence caption - the date - the app's red tint - `appID`, so the app's banner shows under it - a `url` to the release page - `notify: false`, since SideStore already notifies about updates The 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 `--apply` is 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`: - `next` gives minor → 1.1.0, patch → 1.0.1, major → 2.0.0 and `1.0.5` → 1.0.5. It refuses `2.0`, `1.0.0` and `nope` with a message. - `backfill-news` printed 12 items and wrote nothing. With `--apply` it added 12 items, and a second run said every release has one. - `add` for a fake 1.1.0 (13) added the version and a News item with unique identifiers, and `next` then gave 1.2.0. - `bash -n scripts/release.sh` passes, and the app builds.
release.sh takes a minor, patch, major or exact version (minor by default) and tags v<version>. scripts/source.py adds versions and News in AltStore's format, and backfills News for past releases (dry run unless --apply). Settings shows the build too.
namillis deleted branch feat/release-versions 2026-11-11 20:15:41 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
namillis/LiveWireiOS!18
No description provided.