知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.
Swift androidlinuxlive-captionsmacosmeeting-notesmenubar-appsimultaneous-interpretationspeech-recognitionsubtitlesswiftswiftuitranslationwindows
build: ship every platform in every release, so releases/latest always has every app
wqugurua5799a8d4583
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex dab8227..e35824f 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -1,8 +1,8 @@name: release-# One tag, one version for every platform (VERSION). The CHANGELOG.md section says which platforms-# changed (scripts/release_platforms.sh); only those are built and attached, so an app with no-# change finds no new release for itself. Android ships only once its signing key is in the+# One tag, one version for every platform (VERSION), and every release builds and attaches all of+# them (the CHANGELOG.md section has a group for each since 1.1.2; scripts/release_platforms.sh reads+# them), so releases/latest always has every app. Android ships only once its signing key is in the# secrets (android/scripts/keystore.sh --github). Each platform's tests run before its build, and# the release is left as a draft: nobody's update check sees it until scripts/publish-release.sh.on:diff --git a/AGENTS.md b/AGENTS.mdindex a418cd0..2739ae3 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -56,5 +56,5 @@ scripts/deploy-site.sh # build and deploy the site (cicada.indal- Commits are English Conventional Commits (`feat:` `fix:` `docs:` `build:` `refactor:` `test:` `chore:`). `feat:` and `fix:` subjects are the release notes (`scripts/changelog.py`), one line each linked to the commit: say what the user gets in one plain sentence, one change per commit. The scope picks the platform: `(windows)` `(android)` `(linux)` `(site)`, anything else is Mac.- Release notes have no Chinese but the brand: name UI in English (Listen to › Room).- Every user-visible change also gets a Chinese item in `site/changelog.json`, the website's changelog; keep `README.md` (Chinese, the default) and `README.en.md` in step.-- One semver version for every platform, in `VERSION`; every build reads it. Patch for fixes only, minor for features, major only when users of any platform must grant permissions again. A release ships only the platforms with a feat or fix.+- One semver version for every platform, in `VERSION`; every build reads it. Patch for fixes only, minor for features, major only when users of any platform must grant permissions again. Every release ships all four platforms.- This file stays under 6 KB with these sections; `scripts/check-agents.py` enforces it in `scripts/test.sh`, CI and the pre-commit hook. Implementation detail belongs in code comments, not here.diff --git a/CHANGELOG.md b/CHANGELOG.mdindex eaeedcc..5bb93f7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,8 +2,8 @@One section per release, newest first; one version covers every platform. `scripts/release.sh`writes it from the `feat:` and `fix:` commits since the last tag, grouped by platform (the commit's-scope), and the release workflow publishes it as the release notes and ships only the platforms in-it. Lines under `## Unreleased` become the release's summary. The Chinese changelog for users is `site/changelog.json`.+scope), and the release workflow publishes it as the release notes. Since 1.1.2 every release ships+every platform (one with nothing new says No changes); earlier ones shipped only those listed. Lines under `## Unreleased` become the release's summary. The Chinese changelog for users is `site/changelog.json`.## 1.1.1 — 2026-11-04diff --git a/scripts/changelog.py b/scripts/changelog.pyindex 56b6ea3..230e4d0 100755--- a/scripts/changelog.py+++ b/scripts/changelog.py@@ -6,8 +6,8 @@ scripts/changelog.py 1.0.1 --print # only prints the sectionRelease notes are the commit subjects, grouped by platform (one version covers them all): the scopepicks it, (windows) (android) (linux) or (site) for the website, (ios) none yet, anything else Mac; feat: goes under-New and fix: under Fixed; chore/docs/build/test/refactor stay out. A platform with no feat or fix-gets no group, and its update check then finds nothing new. `fix(windows,linux):` lands in both.+New and fix: under Fixed; chore/docs/build/test/refactor stay out. Every release ships every+platform, so one with no feat or fix still gets a group saying so. `fix(windows,linux):` lands in both.Each line links its commit. Lines written by hand under "## Unreleased" stay on top, as therelease's one-line summary."""@@ -65,6 +65,10 @@ def section(version, summary, entries=None):lines += [summary, ""]for name, kinds in groups.items():if not any(kinds.values()):+ # Every release ships every platform (one version for all), so an app with nothing new+ # still gets its group: scripts/release_platforms.sh and the site read the groups.+ if name != "Website":+ lines += [f"### {name}", "", "No changes; released to keep every platform on the same version.", ""]continuelines += [f"### {name}", ""]if name == "Website": # the site has no new/fixed split, as beforediff --git a/scripts/publish-release.sh b/scripts/publish-release.shindex 8816431..21b5809 100755--- a/scripts/publish-release.sh+++ b/scripts/publish-release.sh@@ -1,8 +1,8 @@#!/usr/bin/env bash# Makes a draft release public once its files have been tried: scripts/publish-release.sh 1.0.1# The release workflow leaves every new release a draft, so no update check offers it before this.-# It is marked latest only when it has the Mac app: Macs on 1.0.0 read releases/latest and would-# otherwise offer a release with nothing for them.+# It is marked latest only when it has the Mac app: Macs on 1.0.0 read releases/latest. Since 1.1.2+# every release ships every platform, so that is every release; 1.1.1 (Android only) was not.set -euo pipefailVERSION=${1:?usage: scripts/publish-release.sh <version, e.g. 1.0.1>}TAG="v$VERSION"diff --git a/scripts/release_platforms.sh b/scripts/release_platforms.shindex d1d2ca4..335fcf6 100755--- a/scripts/release_platforms.sh+++ b/scripts/release_platforms.sh@@ -1,7 +1,7 @@#!/usr/bin/env bash# Prints the platforms one version ships, one per line (mac, windows, android, linux): those with a-# group in its CHANGELOG.md section (scripts/changelog.py). Every platform shares the version, but-# one with no feat or fix is left out of the release, so its update check finds nothing new.+# group in its CHANGELOG.md section (scripts/changelog.py). Since 1.1.2 every section has all four+# (every release ships every platform); 1.0.0 to 1.1.1 shipped only the ones that changed.# A section written by hand without platform groups (1.0.0's "### Highlights") ships the Mac app.# scripts/release_platforms.sh 1.1.0set -euo pipefaildiff --git a/scripts/site.py b/scripts/site.pyindex e07769c..dbcc533 100755--- a/scripts/site.py+++ b/scripts/site.py@@ -9,9 +9,8 @@ header.html and footer.html are shared. site/changelog.json is the Chinese chang"date": null = not released yet) and only exists in Chinese: the other languages link to GitHub Releases.Also writes changelog/index.html, feed.xml (Atom), sitemap.xml and robots.txt.-Download links go to each platform's own newest release: a release ships only the platforms that-changed (scripts/release_platforms.sh), so releases/latest may have nothing for Windows, Linux or-Android. A version counts once changelog.json gives it a date; a platform with none yet shows 即将发布.+Download links go to each platform's own newest release (scripts/release_platforms.sh): since 1.1.2+every release ships every platform, but 1.0.0 to 1.1.1 shipped only the ones that changed. A version counts once changelog.json gives it a date; a platform with none yet shows 即将发布.python3 scripts/site.py # → build/sitepython3 -m http.server -d build/site # preview at http://localhost:8000/