diff --git a/.github/release-config.json b/.github/release-config.json index a5a638e11..8e384612a 100644 --- a/.github/release-config.json +++ b/.github/release-config.json @@ -1,20 +1,19 @@ { "publishMode": "manual-final-approval", "crossPlatformReady": false, - "requiredPlatforms": ["mac", "ios", "android"], + "requiredPlatforms": ["mac", "ios"], + "excludedPlatforms": ["android"], "mac": { "products": ["sender", "receiver"] }, "ios": { "appId": "6817552864", "bundleId": "com.raisecaterror.meowdisplay.ios", - "submitForReview": true, + "submitForReview": false, "storeUrl": "https://apps.apple.com/app/id6817552864" }, "android": { "package": "com.raisecaterror.meowdisplay.android", - "uploadTrack": "internal", - "reviewTrack": "alpha", "storeUrl": "https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android" }, "website": { diff --git a/.github/workflows/recover-mac-release.yml b/.github/workflows/recover-mac-release.yml new file mode 100644 index 000000000..3e084f5ae --- /dev/null +++ b/.github/workflows/recover-mac-release.yml @@ -0,0 +1,200 @@ +name: Recover Mac release + +on: + workflow_dispatch: + inputs: + version: + description: Version to recover (pinned to 2.1.0) + required: true + type: string + default: '2.1.0' + candidate_sha: + description: Candidate commit SHA (pinned) + required: true + type: string + default: '94c796fc34fd699776764d67d2f26013909a308e' + draft_id: + description: Draft release ID (pinned to 442117184) + required: true + type: string + default: '442117184' + action: + description: 'verify (read-only preflight) | publish (protected: verify draft, publish, reconcile) | reconcile (protected: release already public, record it) | finish (protected: website live, finish publication)' + required: true + type: choice + options: + - verify + - publish + - reconcile + - finish + default: verify + promotion_pr: + description: 'finish only: number of the release/2.1.0 -> main promotion PR (optional)' + required: false + type: string + default: '' + live_release_sha256: + description: 'finish only, needed when Cloudflare challenges the runner: sha256 of https://meowdisplay.app/release.json as YOU fetched it' + required: false + type: string + default: '' + +permissions: {} + +concurrency: + group: recover-mac-release-${{ github.ref }} + cancel-in-progress: false + +jobs: + verify: + runs-on: xcode-27 + permissions: + contents: read + steps: + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + persist-credentials: false + - name: Select Xcode (.xcode-version) + run: scripts/ci/select-xcode.sh + # Read-only GITHUB_TOKEN cannot inspect an unpublished GitHub Release. + # Do not grant an unprotected job write access. The protected publish job + # runs recover-mac-release.sh --publish, which verifies every draft asset, + # notarization and Sparkle signature BEFORE editing the release. + # The repository is public: the script's git fetches of release/2.1.0 + # and release-state need no credential, so none is persisted. + - name: Preflight frozen candidate and release-state (read-only) + env: + GH_TOKEN: ${{ github.token }} + VERSION: ${{ inputs.version }} + CANDIDATE_SHA: ${{ inputs.candidate_sha }} + DRAFT_ID: ${{ inputs.draft_id }} + run: | + set -euo pipefail + scripts/release/reconcile-mac-release.sh --preflight + + # finish only: the website repository is private, so its branch HEAD and + # the files production is compared with are read here, with the website + # App's contents:read token from website-update (where its key lives), + # and handed to the protected job. Nothing is written. + site-evidence: + needs: verify + if: ${{ inputs.action == 'finish' }} + runs-on: ubuntu-latest + environment: website-update + permissions: + contents: read + steps: + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + persist-credentials: false + - name: Environment is protected + env: + GH_TOKEN: ${{ github.token }} + run: scripts/release/check-environment.sh website-update + - name: Website read token (website App, contents read only) + id: site-token + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + with: + client-id: ${{ vars.WEBSITE_APP_CLIENT_ID }} + private-key: ${{ secrets.WEBSITE_APP_PRIVATE_KEY }} + owner: raiseCatError + repositories: MeowDisplayWebsite + permission-contents: read + - name: Save the website's branch HEAD files (read-only) + env: + GH_TOKEN: ${{ steps.site-token.outputs.token }} + VERSION: ${{ inputs.version }} + CANDIDATE_SHA: ${{ inputs.candidate_sha }} + run: | + set -euo pipefail + scripts/release/reconcile-mac-release.sh --site-evidence "$RUNNER_TEMP/site-evidence" + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: site-evidence + path: ${{ runner.temp }}/site-evidence + retention-days: 1 + if-no-files-found: error + + # One protected job for every mutating action. publish is the only action + # that edits the GitHub Release; reconcile and finish refuse to write + # anything unless the release is already public, Latest, tagged at the + # candidate and carrying exactly the recorded assets. After a run whose + # release went public but whose reconciliation failed, re-run with + # action=reconcile, never publish (publish refuses a non-draft release). + publish: + needs: [verify, site-evidence] + if: >- + ${{ !cancelled() && needs.verify.result == 'success' && + (inputs.action == 'publish' || inputs.action == 'reconcile' || + (inputs.action == 'finish' && needs.site-evidence.result == 'success')) }} + runs-on: xcode-27 + environment: release-publish + permissions: + contents: write + pull-requests: write + actions: read + steps: + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 + with: + persist-credentials: false + - name: Select Xcode (.xcode-version) + run: scripts/ci/select-xcode.sh + - name: Deployment branch guard + env: + REF: ${{ github.ref }} + run: | + set -euo pipefail + case "$REF" in + "refs/heads/release/"*) ;; + *) echo "::error::Publication must run on a release/* branch to satisfy release-publish deployment branch policy (got $REF)"; exit 1 ;; + esac + - name: Environment requires human approval + id: check-env + env: + GH_TOKEN: ${{ github.token }} + run: scripts/release/check-environment.sh release-publish --require-reviewers + - name: Release state token (release App, contents only) + id: state-token + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + with: + client-id: ${{ vars.RELEASE_APP_CLIENT_ID }} + private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} + permission-contents: write + - name: Verify protected draft and publish Mac release as Latest + if: ${{ inputs.action == 'publish' }} + env: + GH_TOKEN: ${{ github.token }} + VERSION: ${{ inputs.version }} + CANDIDATE_SHA: ${{ inputs.candidate_sha }} + DRAFT_ID: ${{ inputs.draft_id }} + run: | + set -euo pipefail + scripts/release/recover-mac-release.sh --publish + - name: Reconcile release state + if: ${{ inputs.action == 'publish' || inputs.action == 'reconcile' }} + env: + RELEASE_STATE_TOKEN: ${{ steps.state-token.outputs.token }} + GH_TOKEN: ${{ github.token }} + VERSION: ${{ inputs.version }} + CANDIDATE_SHA: ${{ inputs.candidate_sha }} + run: | + set -euo pipefail + scripts/release/reconcile-mac-release.sh --execute + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + if: ${{ inputs.action == 'finish' }} + with: + name: site-evidence + path: ${{ runner.temp }}/site-evidence + - name: Finish publication (website serves release.json) + if: ${{ inputs.action == 'finish' }} + env: + SITE_EVIDENCE_DIR: ${{ runner.temp }}/site-evidence + RELEASE_STATE_TOKEN: ${{ steps.state-token.outputs.token }} + GH_TOKEN: ${{ github.token }} + VERSION: ${{ inputs.version }} + CANDIDATE_SHA: ${{ inputs.candidate_sha }} + PROMOTION_PR: ${{ inputs.promotion_pr }} + LIVE_RELEASE_SHA256: ${{ inputs.live_release_sha256 }} + run: | + set -euo pipefail + scripts/release/reconcile-mac-release.sh --finish diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index b4f0a3e70..c986b14ff 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -257,7 +257,7 @@ jobs: set -euo pipefail . scripts/release/baseline.env names=$(gh release view "v$VERSION" -R "$GITHUB_REPOSITORY" --json assets --jq '[.assets[].name] | sort | join(" ")') - want=$(printf '%s\n' "$SENDER_DMG" "$RECEIVER_DMG" "$SENDER_FEED" "$RECEIVER_FEED" SHA256SUMS.txt | sort | paste -sd' ' -) + want=$(printf '%s\n' "$SENDER_DMG" "$RECEIVER_DMG" "$SENDER_FEED" "$RECEIVER_FEED" SHA256SUMS.txt | LC_ALL=C sort | paste -sd' ' -) [ "$names" = "$want" ] || { echo "::error::draft assets are '$names', expected '$want'"; exit 1; } mkdir check && gh release download "v$VERSION" -R "$GITHUB_REPOSITORY" -D check sed 's# dist/# check/#' expected.sha256 | shasum -a 256 -c - diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 895bf0e35..969d3dbf7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.0.0" + ".": "2.1.0" } diff --git a/AndroidReceiver/README.md b/AndroidReceiver/README.md index 1aea0a14d..d2ac8747a 100644 --- a/AndroidReceiver/README.md +++ b/AndroidReceiver/README.md @@ -2,8 +2,7 @@ ## Availability and requirements -Android 2.0 is in **Google Play closed testing**, not a public production release. -[Request early access](https://meowdisplay.app/android/early-access). +Android 2.0 is available on [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android). It requires **Android 10 or later** and [MeowDisplay 2.0 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) (macOS 14+). The main Mac app shares and receives; use its sharing role to connect an Android receiver. @@ -78,7 +77,4 @@ Earlier real-device testing was reported; **additional Android physical QA for the 2.0 release-candidate process was waived by the maintainer**. This does not imply every device or advanced function was verified. -Android 2.0 is in **Google Play closed testing** -([request early access](https://meowdisplay.app/android/early-access)). It is -not in public production on Google Play; closed testing and production are -separate milestones. +Android 2.0 (versionCode 2000001) is public on [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android). diff --git a/AndroidReceiver/RECEIVER_CONTROLS.md b/AndroidReceiver/RECEIVER_CONTROLS.md index 870a0243a..4be0747ac 100644 --- a/AndroidReceiver/RECEIVER_CONTROLS.md +++ b/AndroidReceiver/RECEIVER_CONTROLS.md @@ -2,8 +2,8 @@ Implementation rows updated for 2.0 on 2026-11-02 against `dev`. The Verification section below preserves its earlier test-run record; this edit -does not claim new device testing. Android 2.0 is in closed testing, requires -Android 10+ and Mac 2.0, and has no USB transport. See [PARITY.md](../PARITY.md). +does not claim new device testing. Android 2.0 is on Google Play, requires +Android 10+ and Mac 2.0 or later, and has no USB transport. See [PARITY.md](../PARITY.md). The Android receiver's controls, input and adaptive layout are a port of the diff --git a/BRANCHING.md b/BRANCHING.md index 8e4b6f5e8..3ed27daa8 100644 --- a/BRANCHING.md +++ b/BRANCHING.md @@ -76,7 +76,7 @@ The same branch is then merged into `dev` so the two stay reconciled. This section records the migration checkpoint, not current branch or release availability. Since the 2.0.0 promotion (below), `main` is the default branch -and `dev` the development branch; the current platform release channels are in [README.md](README.md#platform-availability--november-2-2026). +and `dev` the development branch; the current platform release channels are in [README.md](README.md#platform-availability). - `raiseCatError/meowdisplay` is public and a GitHub **network fork** of `peetzweg/opendisplay`. - **Default branch: `legacy/dev-opendisplay-next`** (`3f24b51`), the former `dev/opendisplay-next`, renamed so `dev` could exist (Git can't hold `dev` beside `dev/…`). It becomes `dev` once the release workflows' resume and store-safety fixes are on `dev` and the scheduled workflows are confirmed inert. diff --git a/CHANGELOG.md b/CHANGELOG.md index d1657ee6d..105cce503 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,163 @@ # Changelog +## [2.1.0](https://github.com/raiseCatError/meowdisplay/compare/v2.0.0...v2.1.0) (2026-11-09) + + +### Features + +* **controls:** give the arrow keypad its own Shift, Option and Command ([e5871e3](https://github.com/raiseCatError/meowdisplay/commit/e5871e32009fff9b1f5100b2da1e7e0213d2c854)) +* **controls:** Lock Mac asks for control first, also from Session Actions ([1d94401](https://github.com/raiseCatError/meowdisplay/commit/1d94401d8c54124a8e6e13ce06b11f758aa9efca)) +* **ios:** add a built-in local calculator to the receiver ([24ae7c2](https://github.com/raiseCatError/meowdisplay/commit/24ae7c2751847092bacaf3c7123eb80015019ae7)) +* **ios:** add an exact-decimal engine for a local calculator ([401f4c5](https://github.com/raiseCatError/meowdisplay/commit/401f4c57f3d40d31181be592cae55378a8ea2210)), closes [#182](https://github.com/raiseCatError/meowdisplay/issues/182) +* **ios:** add the local calculator to the receiver controls ([0cd02f6](https://github.com/raiseCatError/meowdisplay/commit/0cd02f624e9abb2f61af1ce1c6ee4b9959fbea17)), closes [#182](https://github.com/raiseCatError/meowdisplay/issues/182) +* **ios:** an Arrow Keys item in the keyboard companion bar ([c0e9492](https://github.com/raiseCatError/meowdisplay/commit/c0e94920f614f05de2acedb396f7971a77c5f2a7)), closes [#179](https://github.com/raiseCatError/meowdisplay/issues/179) +* **ios:** go back to Home while keeping the session connected ([#121](https://github.com/raiseCatError/meowdisplay/issues/121)) ([1de3984](https://github.com/raiseCatError/meowdisplay/commit/1de39846ba37592dc98728b024dca875cec0291e)) +* **ios:** on-screen arrow keys with tap-to-open keypad and swipe presses ([366a3d0](https://github.com/raiseCatError/meowdisplay/commit/366a3d069f84a366b5ad72862ab8b45d076919b5)), closes [#179](https://github.com/raiseCatError/meowdisplay/issues/179) +* **ios:** prerequisites-first Remote Access setup and why a Connect over Remote failed ([c852b68](https://github.com/raiseCatError/meowdisplay/commit/c852b6825d2a9ca4425407c4674d176bcea0bd16)), closes [#95](https://github.com/raiseCatError/meowdisplay/issues/95) +* **ios:** quicker modifier shortcuts with a Hold Response setting ([0061913](https://github.com/raiseCatError/meowdisplay/commit/0061913eaa0c7130d47bce89ef067793e947cb05)), closes [#131](https://github.com/raiseCatError/meowdisplay/issues/131) +* **ios:** show the build number and a Rate MeowDisplay link in About ([48f2359](https://github.com/raiseCatError/meowdisplay/commit/48f2359bd308128eb25afb2063014bfe3ac74dc6)) +* **ios:** touch and hold Settings for Session Actions (overlay) ([20bdbac](https://github.com/raiseCatError/meowdisplay/commit/20bdbace0f09907a674dd9adac9e9230cdf154b9)) +* **ios:** touch and hold Settings to disconnect from the Mac ([8bc2de1](https://github.com/raiseCatError/meowdisplay/commit/8bc2de177d99609a0a0990c6019bd19a51fe27cb)) +* **ios:** touch and hold Settings to open Session Actions ([eb2fe9b](https://github.com/raiseCatError/meowdisplay/commit/eb2fe9bcde891fe5447a3f0cdeb9db5878797257)) +* **lock-screen:** Always Allow includes lock screen control; an explicit off stays ([f884690](https://github.com/raiseCatError/meowdisplay/commit/f8846903cab19002015182ef098983949868b83c)) +* **lock-screen:** secure key input, tagged input, Ask handoff, recovery ([73db714](https://github.com/raiseCatError/meowdisplay/commit/73db7147d29a48e1ab5def00c61371ec09e26fde)) +* **lock-screen:** show the Mac's lock screen from the iPad ([131c993](https://github.com/raiseCatError/meowdisplay/commit/131c993ab00872463d4e51556a06bab8ebef4d43)) +* **lock-screen:** tag touches and clicks; refused presses reported as clicks ([1f0424b](https://github.com/raiseCatError/meowdisplay/commit/1f0424ba8e2e2743e7027a552e234b5a4e1a3d13)) +* **lock-screen:** trusted devices can operate the Mac's own lock screen ([8a5c351](https://github.com/raiseCatError/meowdisplay/commit/8a5c351df5b1ab7aa701a2e546f73af89ff3b3da)) +* **mac:** menu-bar icon drawn from the MeowDisplay mark ([5d269d4](https://github.com/raiseCatError/meowdisplay/commit/5d269d421aa9f5610b0e702654ed0e43a21b356d)) +* **mac:** new installs start as Dock & Menu Bar ([2276188](https://github.com/raiseCatError/meowdisplay/commit/2276188a670f068ff42d2afe2845eb6839562e40)) +* **protocol:** let a key ask for exactly its own modifiers ([77a8dfd](https://github.com/raiseCatError/meowdisplay/commit/77a8dfdd5ef9870ca6e2664a2b3fc644d6ecd9df)) +* **receiver:** add pane fullscreen shortcut and drag-to-remove ([79f35aa](https://github.com/raiseCatError/meowdisplay/commit/79f35aa8b6ce57b5664285b0aec5ab0366364a56)) +* **receiver:** make Normal the Stage Peek Dock default for new installs ([cb43a1a](https://github.com/raiseCatError/meowdisplay/commit/cb43a1adba35bb5cc55cb2f7e3f754aac5384aa1)) +* **receiver:** the Mac Receiver says the Mac is locked instead of going blank ([f2ff346](https://github.com/raiseCatError/meowdisplay/commit/f2ff3461faab56753e6d3a9904a867280c333135)) +* **release:** exclude Android from a release with excludedPlatforms; per-run iOS submission authorization ([35a6f91](https://github.com/raiseCatError/meowdisplay/commit/35a6f91792ddb8833febca96608a78567305373f)) +* Streaming Priority reads Latency, Balanced, Smoothness ([5b7fc2c](https://github.com/raiseCatError/meowdisplay/commit/5b7fc2c77a44f769b2e9e3fa3f086f32a89d140e)) +* **window-mode:** a tucked float waits at its edge at full length ([f908de9](https://github.com/raiseCatError/meowdisplay/commit/f908de937d05083239dc893ed442fc53812f362c)) +* **window-mode:** circle while dragging to switch Pane and Floating ([bf4bd63](https://github.com/raiseCatError/meowdisplay/commit/bf4bd63ac34540205fce0471451fd51cb2e83b15)) +* **window-mode:** circling switches a drag in about a second ([b277d9f](https://github.com/raiseCatError/meowdisplay/commit/b277d9ff2ffd41f5b352e2ae52e658e4d81976d4)) +* **window-mode:** Enable Floating Windows switch in Settings ▸ Controls ▸ Window Switcher ([542b432](https://github.com/raiseCatError/meowdisplay/commit/542b43201469375ac78ea1d33e78d2274452db15)) +* **window-mode:** fill and restore a pane's real Mac window on request ([b43130b](https://github.com/raiseCatError/meowdisplay/commit/b43130b74164c5bda68b6014e58d3dc066a3727a)) +* **window-mode:** Fill Window on Mac and Restore Previous Size on Mac in a float's On Your Mac menu ([62a7322](https://github.com/raiseCatError/meowdisplay/commit/62a732284d9c2330356fa5e673e2d015070651f7)) +* **window-mode:** Fill Window on Mac and Restore Previous Size on Mac in the pane menu ([8b5c2bf](https://github.com/raiseCatError/meowdisplay/commit/8b5c2bf92d51a4b1dfa63f67e190db32c9e4980e)) +* **window-mode:** floating panes model, Mac validation and wire ([54a7b24](https://github.com/raiseCatError/meowdisplay/commit/54a7b24b59258bbeaaf804074cfce1ee36e746f9)) +* **window-mode:** floating windows on iPhone and iPad ([c8968b4](https://github.com/raiseCatError/meowdisplay/commit/c8968b4119860bc523fae4aef5e9a21d07e4f92a)) +* **window-mode:** freeform float viewport drawn once while it moves ([4c0e806](https://github.com/raiseCatError/meowdisplay/commit/4c0e80676382b8963cd30f50fd8b89d191d1ff22)) +* **window-mode:** Remove from This Device for a float being docked ([47ca38e](https://github.com/raiseCatError/meowdisplay/commit/47ca38e46098732cafdf9d60bfd2bb6c972d77bc)) +* **window-mode:** throws tuck into the edge they reach, on any edge ([5126a65](https://github.com/raiseCatError/meowdisplay/commit/5126a6531cd692a3fda0dee837a7b6ec962437ac)) +* **window-mode:** tucked floats wait as slivers you can peek at and pull out ([09cf9ae](https://github.com/raiseCatError/meowdisplay/commit/09cf9ae465bb31657f416bfb13ad95abe70c9e08)) +* **window-mode:** tucked strips show their window after a reconnect ([940666f](https://github.com/raiseCatError/meowdisplay/commit/940666f05ca179831377fed66ffa03af47c4a242)) +* **window-mode:** windows closed on the Mac leave the layout ([f323beb](https://github.com/raiseCatError/meowdisplay/commit/f323beb5ca3cd7762a00b418a125eae3bac0afbe)) +* **window:** double-tap pane title for local fullscreen; drag a pane to Remove from Layout ([e1691ed](https://github.com/raiseCatError/meowdisplay/commit/e1691edf7d8d318381dfead7cc816d96b3c8e1a2)), closes [#120](https://github.com/raiseCatError/meowdisplay/issues/120) + + +### Bug Fixes + +* **android:** show and accept nothing while the Mac is locked ([ce762ed](https://github.com/raiseCatError/meowdisplay/commit/ce762ed426b523b698b352738a6833ece5c45d7d)) +* **ios:** drop a held tray touch when the controls move under it ([663c356](https://github.com/raiseCatError/meowdisplay/commit/663c3566224df6122dfd20a8be3619d0db1af066)), closes [#131](https://github.com/raiseCatError/meowdisplay/issues/131) +* **ios:** drop the Settings long-press menu while a shortcut palette is open ([f83df68](https://github.com/raiseCatError/meowdisplay/commit/f83df681911614d34a3fd0a006e4173e6fb3d5f1)) +* **ios:** keep centred prompts off an iPhone Duo fold ([4236010](https://github.com/raiseCatError/meowdisplay/commit/42360105bf6510ead168e87e776f724beb25a0b2)), closes [#99](https://github.com/raiseCatError/meowdisplay/issues/99) +* **ios:** keep Demo Mode controls off an iPhone Duo fold ([418370a](https://github.com/raiseCatError/meowdisplay/commit/418370aaf25db74426942ae99e3684fca2a2adfb)) +* **ios:** keep prompts, the keyboard bar and Demo Mode off an iPhone Duo fold ([e42ea93](https://github.com/raiseCatError/meowdisplay/commit/e42ea936ad61dfddeb51478273a08be5d5f3def9)) +* **ios:** keep Stage Peek labels legible over bright windows ([18fcb30](https://github.com/raiseCatError/meowdisplay/commit/18fcb305e916e09fa4edc48de708377345d118cd)) +* **ios:** keep the controls up while Session Actions is open ([1c311da](https://github.com/raiseCatError/meowdisplay/commit/1c311dabcd9ab401a68e3e3166a2eead2653fdc6)) +* **ios:** keep the Settings session menu off a faded rail and Auto-hide paused ([dfd5184](https://github.com/raiseCatError/meowdisplay/commit/dfd518470b2609196d3ad193e075682b168c8fca)) +* **ios:** keep the typing location above the keyboard with Zoom While Typing ([da8dd2d](https://github.com/raiseCatError/meowdisplay/commit/da8dd2d9cc8d2a861b860efb309110c9dd3569d5)) +* **ios:** keep Window view pane chrome on the picture while typing ([c270811](https://github.com/raiseCatError/meowdisplay/commit/c270811698b5db35fd853e80e635fd574cbefc07)) +* **ios:** let a fast two-finger double-tap reset a Window view pane ([00590da](https://github.com/raiseCatError/meowdisplay/commit/00590da6179fe1749ee084749fedd44e1057769f)) +* **ios:** map touches through the picture as drawn while it animates ([ff57e44](https://github.com/raiseCatError/meowdisplay/commit/ff57e44461362491569cd799f008b659e762e594)) +* **ios:** republish the iPad canvas after rotation in Custom layout ([a0be1af](https://github.com/raiseCatError/meowdisplay/commit/a0be1afd492ae807b8f2fd9ef851fbd1df76dea3)) +* **ios:** split the keyboard bar around an iPhone Duo fold ([b3103fb](https://github.com/raiseCatError/meowdisplay/commit/b3103fb0f8a7e6714b82d11b5b956e68454f1115)) +* **ios:** stop retrying audio playback during an audio interruption ([cb6b030](https://github.com/raiseCatError/meowdisplay/commit/cb6b0304f9d66bf744abcb9c8bc4d903b368c480)) +* **ios:** time arrow-key repeats with CACurrentMediaTime ([2ad3955](https://github.com/raiseCatError/meowdisplay/commit/2ad3955b89c92323e3c932aec8d8fb544f15d9d4)) +* **ios:** use the dense Stage Peek surface with Increase Contrast ([51982f3](https://github.com/raiseCatError/meowdisplay/commit/51982f38edacd391386baebc167ccac5d65cdbfa)) +* **lock-screen:** cursor, clear cover, opt-in default, Extend, audit F1-F7 ([fea4608](https://github.com/raiseCatError/meowdisplay/commit/fea4608f56e7c27d9d144757ff7c532b216530d8)) +* **lock-screen:** no pre-lock picture, snapshot or PiP of the lock screen; keyboard keeps its owner ([f50f773](https://github.com/raiseCatError/meowdisplay/commit/f50f773b08ee524cd717890586967c45d260da9d)) +* **lock-screen:** one lock-episode boundary for every input family ([d82739d](https://github.com/raiseCatError/meowdisplay/commit/d82739df3f9e27e5b52441e76ab43a47e4499816)) +* **lock-screen:** survive the mode switch's first notice; Mirror; return after a timeout ([89445a2](https://github.com/raiseCatError/meowdisplay/commit/89445a2faefc9d7f0842b64e4eaeaeca1b8b3384)) +* **lock-screen:** the control tray drops keyboard mode when unlocking closes the keyboard ([6d05f92](https://github.com/raiseCatError/meowdisplay/commit/6d05f9206d25f881c1923d60581ae898aef3c898)) +* **lock-screen:** the password field stays above the keyboard; its hide key closes it ([6391324](https://github.com/raiseCatError/meowdisplay/commit/6391324a601e19f5e55243111455ca1c83843e0f)) +* **mac:** capture an offscreen window at the highest active display scale ([c847e78](https://github.com/raiseCatError/meowdisplay/commit/c847e78f6efc88880c79d0775b349479625d2352)) +* **mac:** capture Window view panes at the display's real backing scale ([6c769ca](https://github.com/raiseCatError/meowdisplay/commit/6c769caca00403d5e32549599f97fd4ba901aa0e)) +* **mac:** clarify physical pairing approval guidance ([5d54c6a](https://github.com/raiseCatError/meowdisplay/commit/5d54c6a522719dde3b74e5db27e1d8d4b079adf0)) +* **mac:** don't let an automatic attempt absorb an explicit Connect ([c099858](https://github.com/raiseCatError/meowdisplay/commit/c0998589502b7aa96ac71298548cb8923d03aae4)) +* **mac:** explain refused pairing approval ([bc31047](https://github.com/raiseCatError/meowdisplay/commit/bc3104717dcbf6fae5f8161d77f735daf2f25c77)) +* **mac:** fall back to 2x for a window on no display ([79ec277](https://github.com/raiseCatError/meowdisplay/commit/79ec2770760d8285b88f9749997cddff8cb27ad5)) +* **mac:** keep the capture configuration on live changes ([4abe757](https://github.com/raiseCatError/meowdisplay/commit/4abe757a13183fdee8e0fefac63627fa0ffda46b)), closes [#172](https://github.com/raiseCatError/meowdisplay/issues/172) +* **mac:** only offer USB Connect for a device that is plugged in ([85fb352](https://github.com/raiseCatError/meowdisplay/commit/85fb352945e70afcde0c25bc9d014498e03e6289)) +* **mac:** open request panels on the owner's Space and display ([1b2921a](https://github.com/raiseCatError/meowdisplay/commit/1b2921a04d655efc26031a5a1baf92ddba47d69e)), closes [#191](https://github.com/raiseCatError/meowdisplay/issues/191) +* **mac:** resize a Window view pane's capture when its window changes size ([531e7ce](https://github.com/raiseCatError/meowdisplay/commit/531e7ceb4427a6b0bc8d2b291b8ae7f11bef41fb)), closes [#138](https://github.com/raiseCatError/meowdisplay/issues/138) +* **mac:** resolve a Bonjour QUIC service before building the multiplex group ([#219](https://github.com/raiseCatError/meowdisplay/issues/219)) ([add52c4](https://github.com/raiseCatError/meowdisplay/commit/add52c4df27a9b7b59e0df67a931d0f0e0ee81c2)) +* **mac:** restart streaming once when a receiver changes a setting ([1336740](https://github.com/raiseCatError/meowdisplay/commit/13367403ec6e2d2b9482f244ed069d86785fd788)) +* **mac:** send the last frame the rate limit turned away ([11a555b](https://github.com/raiseCatError/meowdisplay/commit/11a555bd6bdf99c63d3d739bca00fbadb78ba1e3)), closes [#123](https://github.com/raiseCatError/meowdisplay/issues/123) +* **mac:** show and bound a Connect that never reaches the device ([cc55bb5](https://github.com/raiseCatError/meowdisplay/commit/cc55bb596c5172bbd453525e9f8c31eec26438ff)) +* **mac:** show owner authentication as its own pairing step ([f9610d5](https://github.com/raiseCatError/meowdisplay/commit/f9610d55f837bb90c9d4032fb08ec77630f17a29)) +* **receiver:** don't offer Remove from Layout on the last Window view pane ([eade970](https://github.com/raiseCatError/meowdisplay/commit/eade970c655492ac76dd5c00ac4c7b1a6e9efd47)), closes [#120](https://github.com/raiseCatError/meowdisplay/issues/120) +* **receiver:** end nothing from the receiver while the Mac reads the goodbye ([6de8311](https://github.com/raiseCatError/meowdisplay/commit/6de831167e30b94f223014620a225327ed250ec8)) +* **receiver:** keep a QUIC connection open until the Mac reads the goodbye ([53b89f6](https://github.com/raiseCatError/meowdisplay/commit/53b89f61f2ea08e81e8a056f56b7eb8a1f9124d0)), closes [#162](https://github.com/raiseCatError/meowdisplay/issues/162) +* **receiver:** keep the current session when forgetting another Mac ([5beab04](https://github.com/raiseCatError/meowdisplay/commit/5beab04b537a4867d3bbe2f7a67594db4b8cb81f)) +* **receiver:** let Cancel win between the Cancel and Remove drop zones ([3dd6d81](https://github.com/raiseCatError/meowdisplay/commit/3dd6d81b91a3e4f4745ed6e7faa8e9ae8d503b9c)) +* **receiver:** stop remote input when the surface can't be used ([559a47b](https://github.com/raiseCatError/meowdisplay/commit/559a47b5dd32c788eeaae2d6394b723982a2881b)) +* **release:** follow an Android testing candidate without letting it hold the release ([6985194](https://github.com/raiseCatError/meowdisplay/commit/6985194d8549e5da0c0db8265b461416aa94c82d)) +* **release:** refuse a release that requires Android on a testing track ([3063a50](https://github.com/raiseCatError/meowdisplay/commit/3063a50f06fa28f4a2f0eb64f78d84c5993df625)) +* **release:** store a raw App Store Connect key base64-encoded, as the release code reads it ([8b694e0](https://github.com/raiseCatError/meowdisplay/commit/8b694e0f0606c311bff95a375d85ab88b2681b82)) +* **release:** write release-state with the release App's token ([e8511a3](https://github.com/raiseCatError/meowdisplay/commit/e8511a3b3c72d9140605947dbe6445930e73f5f7)) +* **security:** show and accept nothing while the Mac is locked ([e1947dc](https://github.com/raiseCatError/meowdisplay/commit/e1947dc24192d072a769562f9ed4f29006d9b4d4)) +* **stage-manager:** switch it through one counted owner that leaves the Dock alone ([fed4ec3](https://github.com/raiseCatError/meowdisplay/commit/fed4ec3832e45b408cec08adcb436b2dada94e8f)) +* **stage-peek:** drags put the search keyboard away and never stay stuck ([6b67fe8](https://github.com/raiseCatError/meowdisplay/commit/6b67fe8c55055f012cfd2c03e757cab8a9ae0a00)) +* **streaming:** stop receiver profile requests restarting streams under Automatic ([9f5a35c](https://github.com/raiseCatError/meowdisplay/commit/9f5a35ccffcec71f896b6783f10b6677b996e35b)) +* **window-mode:** a float circled into a card stays docking until it's dropped ([5194a28](https://github.com/raiseCatError/meowdisplay/commit/5194a2801e9b2a8a38c46c1db96df3508f4f8ce0)) +* **window-mode:** a float let go flush with a side stays flush ([62af534](https://github.com/raiseCatError/meowdisplay/commit/62af534a0250b9e09c712e9208b0520e43d52a86)) +* **window-mode:** a moving float follows the finger past any edge ([d69495a](https://github.com/raiseCatError/meowdisplay/commit/d69495a87e31439fcaab9c8dea62fb0f4dad046f)) +* **window-mode:** a peek, a pull and a tap carry on from where the strip is drawn ([0d626d8](https://github.com/raiseCatError/meowdisplay/commit/0d626d847771fe6d4e73329184d504a82bfe4509)) +* **window-mode:** a sheet on screen counts before the listing catches up ([cf37c9b](https://github.com/raiseCatError/meowdisplay/commit/cf37c9bc1f71a1936ae0dc88080568c399486d36)) +* **window-mode:** a sheet ScreenCaptureKit doesn't list is still its window's ([8c03fe0](https://github.com/raiseCatError/meowdisplay/commit/8c03fe02804b3f18d53a30330c2384bc227de5e9)) +* **window-mode:** a small window of the app between a sheet and its window doesn't part them ([39f49fd](https://github.com/raiseCatError/meowdisplay/commit/39f49fd831e2a417742d5962f6c7e0d89a86797b)) +* **window-mode:** an app dropped from Stage Peek opens like one picked in the picker ([df6e905](https://github.com/raiseCatError/meowdisplay/commit/df6e905168568e1dead6c4a8a4fef7002a753844)) +* **window-mode:** an iPhone shows several floats at once, like an iPad ([958ee6a](https://github.com/raiseCatError/meowdisplay/commit/958ee6afcc20152a8a13843e279281af63f8df7e)) +* **window-mode:** an Open panel wider than its window is its sheet when the app confirms it ([e8c605b](https://github.com/raiseCatError/meowdisplay/commit/e8c605b44851782ee336c2176d4e9c9924fd0369)) +* **window-mode:** apps running without a window can be asked for one ([56465b1](https://github.com/raiseCatError/meowdisplay/commit/56465b1a3391fc7227c2ddfa0d3333d3fe2b51ec)) +* **window-mode:** arranging floats leaves Mac focus alone; leaving Extend asks first ([1826768](https://github.com/raiseCatError/meowdisplay/commit/182676891c835256b15728ba7cede19addea4246)) +* **window-mode:** ask for app icons on every connection, not only while browsing ([316a501](https://github.com/raiseCatError/meowdisplay/commit/316a501aa4fc1d582d1f2c4e04fcf6070a3e0896)) +* **window-mode:** chooser taps land where the chooser is drawn ([317af87](https://github.com/raiseCatError/meowdisplay/commit/317af8743818786ff6438794438d2544c9e6941f)) +* **window-mode:** circling switches only on a deliberate loop, and again the other way ([b017c30](https://github.com/raiseCatError/meowdisplay/commit/b017c30e4d45cdd89bdd568bbe840d501368f22d)) +* **window-mode:** Demo Mode strips keep clear of its controls and safe area ([9d98bf3](https://github.com/raiseCatError/meowdisplay/commit/9d98bf30f8d14a8f691739671aa22ee6a2ca97a1)) +* **window-mode:** divider holds leave tucked strips their touches ([191ad4e](https://github.com/raiseCatError/meowdisplay/commit/191ad4e7ceeeb20636c300c796df52d723c2647c)) +* **window-mode:** draw tucked floats' strips again ([5b64e18](https://github.com/raiseCatError/meowdisplay/commit/5b64e189bb6515feb154663bc555c6c818415bb5)) +* **window-mode:** every tucked float keeps a strip a finger can reach ([2484608](https://github.com/raiseCatError/meowdisplay/commit/248460856e90ca39a1f6e0f531501d98dc103f90)) +* **window-mode:** float chrome no longer shows through floats; stable options menu ([3826b15](https://github.com/raiseCatError/meowdisplay/commit/3826b1569bddbb654c1851e9ce9ec176944c125d)) +* **window-mode:** float over the mirrored desktop, never from Extend; Minimize on Mac sticks ([82f834a](https://github.com/raiseCatError/meowdisplay/commit/82f834a23319b5a7013421a2844d9a1a08c82d8c)) +* **window-mode:** float selection stays local; typing-paused notice on floats ([e78c35a](https://github.com/raiseCatError/meowdisplay/commit/e78c35a56012010ab2013be7370f8c128caf31d1)) +* **window-mode:** give each pane title its own accessibility frame ([3a350b1](https://github.com/raiseCatError/meowdisplay/commit/3a350b1f54538460d8c688e1541bbc0002f90eba)) +* **window-mode:** keep each pane's title layer from becoming one pane-sized element ([ffedde1](https://github.com/raiseCatError/meowdisplay/commit/ffedde1861da6eca42c1c596e2d3f11d212362e4)) +* **window-mode:** keep the drag HUD, Arrange's bar and float chrome clear of unsafe edges and controls ([afb8b4a](https://github.com/raiseCatError/meowdisplay/commit/afb8b4af06e8c50930e84ead33c0e8535bcc2145)) +* **window-mode:** keep the original frame when Fill is chosen again ([530aba0](https://github.com/raiseCatError/meowdisplay/commit/530aba0e931b40988ea7b6704ed74fefb4e98ebb)) +* **window-mode:** let Window view input through the macOS 27 Dock's display-wide window ([6002330](https://github.com/raiseCatError/meowdisplay/commit/6002330bd2a097481078a1deb0b2ebb01b413e8d)) +* **window-mode:** Mac re-checks control right before opening an app ([dd9bd2a](https://github.com/raiseCatError/meowdisplay/commit/dd9bd2aed4e735e4339e5e02ad53d1a09760b5df)) +* **window-mode:** Mission Control notice on each paused pane and float, not one banner ([857302d](https://github.com/raiseCatError/meowdisplay/commit/857302d92122f5861af3dcdc3d1c6a2708bc79be)) +* **window-mode:** no prompt to float from Mirror; Show on Mac on a minimized float ([e42259f](https://github.com/raiseCatError/meowdisplay/commit/e42259f47555959f59aee0069d6e14afeefd1848)) +* **window-mode:** one app icon placeholder for titles, Stage Peek and its dock ([4ab9761](https://github.com/raiseCatError/meowdisplay/commit/4ab9761fe4e5fc32e53d00e49310b4e4f5899917)) +* **window-mode:** one app icon placeholder on the docking card and tucked strips ([c405704](https://github.com/raiseCatError/meowdisplay/commit/c4057043eaecb7a907828ba924e89f0e77af3e96)) +* **window-mode:** one hold on a folded pane title opens its options ([300a12c](https://github.com/raiseCatError/meowdisplay/commit/300a12c67f6fabf237a63990e2831983cde50db3)) +* **window-mode:** picker opening times waits with the wall clock, not systemUptime ([d13cbfe](https://github.com/raiseCatError/meowdisplay/commit/d13cbfecfad610fc0b339cde4c3e6183fb3eeb81)) +* **window-mode:** place Window view overlays clear of unsafe edges and controls ([fcd49ff](https://github.com/raiseCatError/meowdisplay/commit/fcd49ffe5ce68d38b58833cab03e56f99f95f6c6)) +* **window-mode:** presses reach Open and Save panels shown in a pane ([97f6178](https://github.com/raiseCatError/meowdisplay/commit/97f617844e783a99943bebf6c3b75a5db88f5d51)) +* **window-mode:** read the window list fail-closed and test the hit-test's coordinates ([06bc317](https://github.com/raiseCatError/meowdisplay/commit/06bc317720d63a84b96fde0ab57439bf61e53039)) +* **window-mode:** say which windows Mission Control pauses, and let their notice fold ([55e23c8](https://github.com/raiseCatError/meowdisplay/commit/55e23c85417f4556534977ca719ec3841882620d)) +* **window-mode:** sheets found live shape the pane and take typing ([41b9726](https://github.com/raiseCatError/meowdisplay/commit/41b972656fc44431939eae4f12bae28ac5c4583a)) +* **window-mode:** show one Mission Control banner above panes and floats ([c83a765](https://github.com/raiseCatError/meowdisplay/commit/c83a765134beb10e101c84496b0f1005a6683ea3)) +* **window-mode:** the Mac locking ends drags, float moves and app openings ([9117ae2](https://github.com/raiseCatError/meowdisplay/commit/9117ae2ab2be3c752bc1c8632c69358c81861668)) +* **window-mode:** the open-app question points at its app on iPad ([35a9e0a](https://github.com/raiseCatError/meowdisplay/commit/35a9e0af7e730789ac65470361dddc18e9235012)) +* **window-mode:** the picker's open-app question offers Request Control without control ([dc6b1a0](https://github.com/raiseCatError/meowdisplay/commit/dc6b1a05e0be8b1364fb82e135921ef7d37e0c3e)) +* **window-mode:** window picker finds apps that aren't open and opens them into its tile ([bd13168](https://github.com/raiseCatError/meowdisplay/commit/bd13168531231067fa85a63f17e46222ef817535)) +* **window-mode:** ws 2 only from receivers that draw floats; Float zone and placement ([8b94c82](https://github.com/raiseCatError/meowdisplay/commit/8b94c82c1890d018f50c6b3031d19df591a5936a)) + + +### Performance Improvements + +* **cursor:** draw the Mac cursor on the receiver's refresh and report every step ([13afc9f](https://github.com/raiseCatError/meowdisplay/commit/13afc9ff07e7bc235b59866e91cc7230828bd2eb)) +* **ios:** draw the Mac cursor on the display refresh ([2acf254](https://github.com/raiseCatError/meowdisplay/commit/2acf25455c194205897585dbc605fc3c60c68727)) +* **mac:** report every cursor step the wire carries ([cee5356](https://github.com/raiseCatError/meowdisplay/commit/cee53562c2bf8d973aac4c3bc84324bc7328b015)) + ## [2.0.0](https://github.com/raiseCatError/meowdisplay/compare/v1.20.0...v2.0.0) (2026-10-31) diff --git a/CLOUD-HANDOFF-2.0.md b/CLOUD-HANDOFF-2.0.md index 224dce6c6..7e234f31a 100644 --- a/CLOUD-HANDOFF-2.0.md +++ b/CLOUD-HANDOFF-2.0.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** The 2.0 local-to-cloud handoff of 2026-10-31. 2.0.0 shipped on November 2, 2026; the branch model, release-pipeline audit and toolchain below describe that moment, not today. Current: [BRANCHING.md](BRANCHING.md), [RELEASE.md](RELEASE.md), [ARCHITECTURE.md](ARCHITECTURE.md), [SETUP.md](SETUP.md), [CHANGELOG.md](CHANGELOG.md). [Archive index](docs/archive/README.md). + # MeowDisplay 2.0 — cloud handoff Written 2026-10-31 at the end of local development. Local work stops here; what remains runs in diff --git a/COMPARISON.md b/COMPARISON.md index ef9e43f7c..39bb0cbdb 100644 --- a/COMPARISON.md +++ b/COMPARISON.md @@ -1,7 +1,7 @@ # Compare MeowDisplay with other remote-display apps **Last audited:** 2026-11-05 (UTC) -**MeowDisplay reference:** 2.0.0 stable (Mac and iPhone/iPad); Android 2.0 closed testing +**MeowDisplay reference:** 2.0.0 stable (Mac and iPhone/iPad); Android 2.0 closed testing (audit date; Android 2.0 is now on Google Play) **Evidence:** Official product sites, App Store listings, and public project documentation. **This is a documented feature comparison, not a hands-on benchmark.** Already using another app? This page is intended to help you decide whether MeowDisplay fits your setup—or whether an alternative is a better choice. Different products solve different problems, and a missing feature may matter more than a long feature list. @@ -20,7 +20,7 @@ Already using another app? This page is intended to help you decide whether Meow | Use an **iPhone** as a Mac display | MeowDisplay supports iPhone; Apple's Sidecar does **not** support iPhone (iPad only). | | Connect by **USB** | MeowDisplay supports USB with iPhone/iPad. **Android does not currently have USB transport.** Connection support differs elsewhere; check each product's requirements. | | Connect **away from home** | MeowDisplay needs a network route you configure (for example Tailscale); it has **no MeowDisplay-hosted relay**. Some competitors provide automatic relays, sometimes behind a subscription. | -| Need an **Android receiver today** | MeowDisplay 2.0 is in **closed testing** on Android, not public production. RustDesk, AnyDesk and Duet offer established Android products. | +| Need an **Android receiver today** | MeowDisplay 2.0 for Android is on [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android). It has fewer features than the Apple apps; see [PARITY.md](PARITY.md). RustDesk, AnyDesk and Duet offer established Android products. | | Want **free and open-source software** | MeowDisplay is GPLv3 with no feature paywall. **Sill is also completely free and open source** (Apache-2.0); RustDesk and PocketCtrl also publish source, with different scope and licensing. | ## Mac-to-phone and window-streaming alternatives @@ -33,7 +33,7 @@ For this group, products with a **visible US App Store rating count** are listed | Product | Public availability | US App Store ratings* | Display / interaction approach | Free use and paid limits | Sources | | --- | --- | ---: | --- | --- | --- | -| **[MeowDisplay](https://meowdisplay.app/)** | **2.0 stable** on Mac and iPhone/iPad; **Android closed test** | Not ranked | Mirror; virtual Extend; multi-pane Window view; Stage Peek; Direct Touch or Trackpad; Mac receiver | **Free, no paid feature tiers. GPLv3.** Remote access requires your own reachable network route; no hosted relay | [Release](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0) · [Window view](WINDOW_MODE.md) · [Platform parity](PARITY.md) | +| **[MeowDisplay](https://meowdisplay.app/)** | **2.0 stable** on Mac and iPhone/iPad; **Android 2.0 on Google Play** | Not ranked | Mirror; virtual Extend; multi-pane Window view; Stage Peek; Direct Touch or Trackpad; Mac receiver | **Free, no paid feature tiers. GPLv3.** Remote access requires your own reachable network route; no hosted relay | [Release](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0) · [Window view](WINDOW_MODE.md) · [Platform parity](PARITY.md) | | **[Sill](https://getsill.app/)** | Public iPhone/iPad App Store + Mac download | 50 | Selected Mac window or desktop; direct touch, gestures and trackpad; upright iPhone defaults to picture plus trackpad/controls, with a **Larger Picture** option for windows | **Free, no purchases; Apache-2.0 open source.** Own network, USB or user-managed VPN/route | [Features](https://getsill.app/) · [Support](https://getsill.app/support.html) · [Terms](https://getsill.app/terms.html) · [Source](https://github.com/Saffsanity/sill) · [US App Store](https://apps.apple.com/us/app/sill-mac-streaming/id6816359860) | | **[Macky](https://apps.apple.com/us/app/macky-remote-mac-terminal/id6758050739)** | Public iPhone/iPad App Store + Mac companion | 19 | Desktop streaming and remote terminal; peer-to-peer WebRTC connection advertised | Free download, with Lifetime Pro in-app purchases (US listing shows multiple offers); current free-session restrictions not independently tested | [US App Store listing, features and purchases](https://apps.apple.com/us/app/macky-remote-mac-terminal/id6758050739) | | **[Mirage](https://mirage.ethanlipnik.com/)** | Public App Store; iPhone, iPad, Mac and Apple Vision | 8 | Individual app or desktop streams; **up to eight app streams with Pro**; touch/Pencil and multiple Apple-device receivers | **Free:** 1 window, 720p, 30fps, without audio or Connect Anywhere. **Pro:** $7.99/mo, $59/yr or $199 lifetime (US site) | [Official plan comparison](https://mirage.ethanlipnik.com/upgrade) · [App Store](https://apps.apple.com/us/app/mirage-remote-display/id6757893115) | @@ -95,7 +95,7 @@ Other adjacent apps include [Glassy Desk](https://apps.apple.com/us/app/glassy-d - Your computer runs **Windows or Linux**. MeowDisplay has no Windows/Linux sender or receiver implementation or planned release commitment. [Platform scope](PARITY.md) - You require **automatic Internet connectivity through a hosted relay or account directory** with no network configuration. MeowDisplay doesn't run those services; use a remote-desktop tool that provides them. [Connection options](README.md#connections) -- You need a **publicly released Android receiver** immediately. MeowDisplay's Android 2.0 remains in closed testing. [Release status](README.md#platform-availability--november-2-2026) +- You need **Android feature parity** with the Apple apps. Android 2.0 is on Google Play but doesn't have every Apple feature. [Platform parity](PARITY.md) - You need a professionally managed **remote-support fleet**, enterprise administration or guaranteed service levels. MeowDisplay targets personal access to your own Mac, not centralized device administration. - You only need **an iPad second screen** and your devices meet Apple's requirements. Try Sidecar first; you may not need another app. [Apple Sidecar](https://support.apple.com/en-us/102597) diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md index 83bf690a4..20786a067 100644 --- a/COMPATIBILITY.md +++ b/COMPATIBILITY.md @@ -9,11 +9,18 @@ orchestration, [upstream #135](https://github.com/peetzweg/opendisplay/issues/13 force update, and the wire-protocol handshake). It is a protocol-evolution and planning reference, **not a store-release status report**: current versions and download links are in -[README.md](README.md#platform-availability--november-2-2026). +[README.md](README.md#platform-availability). MeowDisplay has receiving apps on iPhone, iPad, Android and Mac. The main Mac app both shares and receives; the separate Receiver-only app runs on macOS 12 -or later. Android 2.0 (closed testing) requires the Mac 2.0 app. All +or later. Android 2.0 (Google Play) works with the Mac app 2.0 and later. +The Mac's updater (Sparkle) has one feed, so it offers Mac 2.1 to every Mac +2.0 install, including Macs used with Android, and Android 2.0 keeps working +with it over the same protocol (pv 22, pairing 13). It doesn't get the 2.1 +features. While a Mac 2.1 is locked, it sends Android 2.0 no picture and +accepts none of its input: the Android screen shows video off (dark) with no +lock notice, can't show or operate the lock screen, and resumes once the Mac +is unlocked at the Mac. All receivers negotiate the same shared wire protocol but have different platforms, release channels and capability limits. @@ -32,6 +39,54 @@ This document is the companion policy for *evolving* it. > secure-transport boundary are implemented. Sections marked _(planned)_ > describe target behavior. +## Operating systems: minimum and tested + +**Minimum supported.** Each app is built to run on this version or later +(the deployment targets in `project.yml` and `AndroidReceiver/app/build.gradle.kts`): + +| App | Minimum | +| --- | --- | +| MeowDisplay for Mac (share and receive) | macOS 14 | +| MeowDisplay Receiver (receiver-only Mac app) | macOS 12 | +| MeowDisplay for iPhone and iPad | iOS / iPadOS 16.4 | +| MeowDisplay for Android | Android 10 (API 29) | + +**Tested.** What has actually been run, as of the 2.1 release candidate: + +- **CI, every pull request:** the Mac app, MeowDisplay Receiver and the + iOS app are built and the Mac tests run on GitHub's hosted macOS runner, + currently macOS 27.0.1 (26A434) with Xcode 27.1 (`xcode-27-arm64` image). The iPhone Duo UI + tests run in an iOS 27 simulator, and the Android tests on the JVM. CI + doesn't run on older macOS or iOS versions. +- **Physical devices, 2.1 release QA:** a Mac on macOS 27.0 sending to an + iPhone 14 Pro Max (iOS 27.0.1) and an iPad (9th generation, iPadOS 27.0.1). + The receiver-only Mac app and receiving on a second Mac haven't been tested + on hardware. + +Every version from the minimum up is supported, including ones we haven't +run: macOS 14 to 26 for the Mac app, iOS / iPadOS 16.4 to 26, and every +version for MeowDisplay Receiver, which so far is only built in CI. Problems +on those versions are bugs: please +[report them](https://github.com/raiseCatError/meowdisplay/issues/new/choose) +with your macOS or iOS version. + +**Known issues** + +- **Mac app quits after approving pairing on macOS 14 and 15** + ([#219](https://github.com/raiseCatError/meowdisplay/issues/219)). Reported + with Mac 2.0.0 on macOS 15.7.7 and an iPhone on the same Wi-Fi. Right after + pairing, the Mac sets up QUIC from the iPhone's Bonjour service, and macOS 15 + rejects that ("Endpoint Bonjour is of invalid type for multiplex group"); + macOS 27 accepts it, which is why our testing didn't catch it. Mac 2.1 + includes a proposed fix ([#226](https://github.com/raiseCatError/meowdisplay/pull/226)): + the service is resolved to an address first, and if that doesn't work, Auto + uses the secure TCP connection instead. It's tested on macOS 27 only and + **not yet verified on a Mac running macOS 14 or 15**. The reporter saw the same + failure over Tailscale; that route dials an address directly, so this cause + doesn't explain it, and the Tailscale failure remains unexplained. A second + user reported the same quit on an Intel Mac running macOS 14.8.9 (before 2.1, + app version not stated); no logs yet, so it's not confirmed to be the same cause. + --- ## 1. The problem diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9c513f707..14389d818 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,8 +3,8 @@ Thanks for helping make MeowDisplay better. Bug reports, carefully described ideas, documentation, physical-device testing, translations, and focused code changes are welcome. You do not need to write code to contribute. The current platform versions and download channels are in -[README.md](README.md#platform-availability--november-2-2026): Mac and -iPhone/iPad 2.0 are stable releases, and Android 2.0 is in closed testing. +[README.md](README.md#platform-availability): Mac and iPhone/iPad 2.1 are +stable releases, and Android 2.0 is on Google Play. Keep documentation clear about that distinction, and record source inspection, automated tests and physical-device tests separately. diff --git a/PARITY.md b/PARITY.md index 1254c5a25..df5211fb2 100644 --- a/PARITY.md +++ b/PARITY.md @@ -2,8 +2,8 @@ **MeowDisplay 2.0 is the stable Mac and iPhone/iPad release.** The main Mac app shares and receives; the separate Receiver-only app remains available. -Android 2.0 is in closed testing and requires Mac 2.0. Android requires Android 10+ and has no USB -transport. See [platform availability](README.md#platform-availability--november-2-2026). +Android 2.0 is on Google Play and works with Mac 2.0 or later (it doesn't get the 2.1 features; see [COMPATIBILITY.md](COMPATIBILITY.md)). Android requires Android 10+ and has no USB +transport. See [platform availability](README.md#platform-availability). What each receiving app can do today: iPhone/iPad (iOS), Android, and Mac Receiver. diff --git a/PRODUCT_SCOPE.md b/PRODUCT_SCOPE.md index 4e908400c..93b0e19c1 100644 --- a/PRODUCT_SCOPE.md +++ b/PRODUCT_SCOPE.md @@ -67,5 +67,5 @@ for implemented behavior and distribution status. Releases follow [RELEASE.md](RELEASE.md). Store upload, review, approval, testing tracks and public production are different states: no document should say a platform is available to the public until the corresponding -store or GitHub Release actually confirms it. As of 2.0.0, Mac and -iPhone/iPad are stable releases and Android is in Google Play closed testing. +store or GitHub Release actually confirms it. As of 2.1.0, Mac and +iPhone/iPad are stable releases, and Android 2.0 is public on Google Play. diff --git a/README.md b/README.md index 42914080f..4499a7e08 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ **Mac Everywhere, On Whatever Display** -Use your iPhone, iPad or another Mac (and, in closed testing, an Android -device) as a free, open-source display for your Mac. Mirror or extend the -desktop over USB or local Wi-Fi, then control the Mac with touch, -trackpad-style input, gestures and a keyboard. +Use MeowDisplay to mirror, extend or view individual Mac windows on your +iPhone or iPad. Control your Mac with touch, a trackpad-style pointer, +shortcuts and a keyboard. Another Mac can also act as a receiver, and Android +2.0 is on Google Play. [Website](https://meowdisplay.app) · [Features](https://meowdisplay.app/features.html) · @@ -18,79 +18,120 @@ trackpad-style input, gestures and a keyboard. [Privacy](https://meowdisplay.app/privacy.html) · [Support on Ko-fi](https://ko-fi.com/raisecaterror) -**[Download MeowDisplay 2.0 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg)** · Download on the App Store +**[Download MeowDisplay 2.1 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg)** · Download on the App Store · Get it on Google Play -
+Mac 2.1.0 stable, shares and receives (macOS 14+) · [Mac Receiver 2.1.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) (macOS 12+) · iPhone/iPad 2.1.0 on the App Store · Android 2.0 on Google Play · [All downloads](https://meowdisplay.app/downloads) -Latest MeowDisplay website preview showing Mac settings beside iPhone and iPad receivers +

+MeowDisplay 2.0 Mac app with connected devices, beside an iPhone showing Safari and TextEdit in two Window view panes + +The released Mac app and iPhone Window view, shown in the 2.0 press-kit composition · See the original iPhone screen +

## Overview -MeowDisplay mirrors, extends or shows individual Mac windows on an iPhone, -iPad, Android device or another Mac. Mobile receivers add touch, pointer, -keyboard, gestures and shortcut controls; Mac Receiver has keyboard/trackpad -forwarding implemented, with physical two-Mac verification still pending. -Connect using USB where supported, local Wi-Fi, or a private network you -control, with devices paired and every session encrypted. +MeowDisplay sends your Mac's display to an iPhone, iPad, Android receiver or +another Mac. Choose **Mirror**, **Extend** or **Window view** for each device. +Mobile receivers have touch, keyboard, pointer and shortcut controls. -No MeowDisplay account is required, and there is no MeowDisplay-hosted relay -or server in the middle. +Connect over USB (iPhone/iPad), local Wi-Fi or a private network you control. +Devices must pair, and sessions are encrypted. You don't need a MeowDisplay +account or hosted relay. Mac-to-Mac keyboard and trackpad forwarding is +implemented, but physical verification with two Macs is still pending. **Already using another remote-display app?** [Compare MeowDisplay with alternatives](COMPARISON.md) to check platform support, input styles, pricing, feature limits and trade-offs before deciding what fits your setup. -## MeowDisplay 2.0 — official release +## MeowDisplay 2.1 -MeowDisplay 2.0 is officially released, with iPhone and iPad available on the -App Store. Distribution differs by platform as shown below. +MeowDisplay 2.1 is out for Mac, iPhone and iPad. Android 2.0 is on Google +Play. Distribution differs by platform as shown below. -### Platform availability — November 2, 2026 +### Platform availability | Platform | Available version | Get it | | --- | --- | --- | -| Mac app · macOS 14+ · share or receive | **2.0.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0) | -| Receiver-only Mac app · macOS 12+ | **2.0.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplayReceiver.dmg) | -| iPhone / iPad · iOS / iPadOS 16.4+ | **2.0.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | -| Android · Android 10+ | **2.0 closed testing** | [Request early access](https://meowdisplay.app/android/early-access) | +| Mac app · macOS 14+ · share or receive | **2.1.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0) | +| Receiver-only Mac app · macOS 12+ | **2.1.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) | +| iPhone / iPad · iOS / iPadOS 16.4+ | **2.1.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | +| Android · Android 10+ | **2.0 on Google Play** | [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android) | The main Mac app includes both sharing and receiving: share this Mac's display, or use this Mac as another Mac's display. The separate Receiver-only app is -also available for Macs running macOS 12 or later. Android 2.0 requires the -Mac 2.0 app. +also available for Macs running macOS 12 or later. Checksums and every official +download are on [meowdisplay.app/downloads](https://meowdisplay.app/downloads). + +Android 2.0 works with the Mac app 2.0 and later, including 2.1. The 2.1 +features below are on iPhone and iPad only for now, and with Mac 2.1 a locked +Mac shows as a dark screen on Android until it's unlocked at the Mac. If you'd +rather stay on Mac 2.0, it remains available: +[MeowDisplay 2.0 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg). + +## What's new in MeowDisplay 2.1 + +- **Floating windows:** in Window view, a Mac window can float over your panes. + Move it, resize it, throw it at an edge to tuck it away, and add it back to + the layout when you're done. You can turn floating windows off in Settings. +- **Fill Window on Mac** and **Restore Previous Size on Mac** for a window in a pane. +- **Window view:** the window picker also opens apps that aren’t running, + pane titles are clearer, and closing a window on the Mac tidies the layout: + its tab or floating window goes away, and a pane whose only window closed + stays, empty, with Choose Window and Remove Pane. +- **Mission Control and Stage Manager:** notices only on the windows they + pause, and Stage Manager switches no longer touch the Dock. +- **Lock screen:** while the Mac is locked, MeowDisplay shows nothing and + accepts no input by default. The one exception is lock screen control: an + iPhone or iPad that already has control (Always Allow Requests, or control + granted before the Mac locked) can show macOS's own lock screen and type the + password there, and macOS checks it. Each device's Allow Lock Screen Control + switch turns this off. Lock Mac asks for control first. +- **Controls:** the arrow keypad gets its own Shift, Option and Command, and + Open and Save choosers in a pane take presses where you tap. +- **Zoom While Typing** keeps the typing location above the keyboard. +- **Mac app:** new installs start in the Dock and menu bar, with a menu-bar + icon drawn from the MeowDisplay mark, and Wi-Fi connections over QUIC find + the Mac more reliably. ## What's new in MeowDisplay 2.0 -**MeowDisplay 2.0** is a major expansion of the Mac sender and receiver -experience, with an emphasis on making a Mac practical to use from a phone: - -- **Window view:** choose and arrange individual Mac windows as tiles on the - receiver, rather than always viewing an entire desktop. -- **Stage Peek:** quickly switch between Mac windows from a receiver's edge. -- **Natural Touch:** phone-friendly tapping, scrolling, dragging and - long-press interactions, alongside the existing Classic and Trackpad modes. -- **Per-device display modes:** let different receivers choose Mirror, Extend - or Window view according to what makes sense for them. -- **Android receiver:** Android joins the iPhone, iPad and Mac receiver - implementations, currently available through closed testing. +Version 2.0 adds Window view, Stage Peek and more ways to control a Mac from +a phone. The main changes are: + +- **Window view:** arrange the Mac windows you choose in panes on the receiver. +- **Stage Peek:** hold the edge to find and switch windows or show the full desktop. +- **Natural Touch:** an optional direct-touch style for tapping, scrolling, + dragging and right-clicking. Classic and Trackpad remain available. +- **Per-device display modes:** choose Mirror, Extend or Window view independently + for each receiver. +- **Android receiver:** Android 2.0 is available on Google Play. - **Files and clipboard:** Remote Finder and Unified Clipboard on the mobile receivers, with separate permissions granted by the Mac owner. Clipboard sharing starts off on both sides. -- **Privacy Shield:** cover the Mac's physical screens while using it remotely. - This is a viewing shield, not a lock; its limitations are in [SECURITY.md](SECURITY.md#privacy-shield). +- **Privacy Shield:** cover the Mac's physical screens during remote use. + It is a viewing shield, not a lock; see the [limitations](SECURITY.md#privacy-shield). - **One Mac app, both roles:** the main Mac app shares and receives. A separate Receiver-only app remains available for macOS 12+. - **Mac Receiver input:** control the sending Mac with the receiving Mac's keyboard and trackpad after requesting control. -- **Remote connection improvements:** easier remote access and authenticated - Tailscale route handling, without claiming unrestricted Internet discovery. +- **Remote Access:** reach a paired Mac over a private network you set up, + including supported Tailscale routes. There is no public Internet discovery. + +The iPhone and iPad apps also provide a Text Bar and Zoom While Typing, which +keeps the active line enlarged on the receiver. -MeowDisplay 2.0 is the stable Mac and iPhone/iPad release. Android 2.0 remains -in closed testing. See the platform table -above and [downloads](https://meowdisplay.app/downloads) before installing. +### MeowDisplay 2.0 in use + +

+iPhone 14 Pro Max frame with MeowDisplay Window view displaying Safari and TextEdit in two panes +iPhone 14 Pro Max frame showing Stage Peek with app search and Full Desktop +iPhone 14 Pro Max frame showing on-screen Command, Option, Control, Shift, Escape, Tab and keyboard controls + +Window view · Stage Peek · Control Tray. These press-kit mockups frame the real 2.0 iPhone screenshots. Select one to inspect the original, unframed interface. +

## At a glance @@ -104,40 +145,36 @@ above and [downloads](https://meowdisplay.app/downloads) before installing. | **Connections** | USB · local Wi-Fi · Remote Access · Auto-Reconnect · Wake & Connect | | **Audio** | Mac system audio on the receiver · Mac keeps playing locally · A/V sync and Resync | | **Security** | Trusted pairing with a matching code · TLS 1.3 · pinned peer identity | -| **Receivers** | iPhone and iPad · Android in closed testing · another Mac using the main app's receiver role or Receiver-only app, with keyboard and trackpad control (physical two-Mac input verification outstanding, [#12](https://github.com/raiseCatError/meowdisplay/issues/12)) | +| **Receivers** | iPhone and iPad · Android · another Mac using the main app's receiver role or Receiver-only app, with keyboard and trackpad control (physical two-Mac input verification outstanding, [#12](https://github.com/raiseCatError/meowdisplay/issues/12)) | ## Why MeowDisplay? -MeowDisplay isn't trying to be the most powerful remote desktop. It's trying -to make one common moment take as little thought as possible: you pull out -your iPhone or iPad, your Mac is there, and you can use it. - -That shapes where the effort goes: - -- **Interaction feel.** Touch, pointer and gesture handling are designed for - fingers on glass, not a mouse emulated on a phone. -- **Mirror and a real Extend.** Show a Mac display as it is, or give the Mac - a separate virtual workspace, with clamshell and headless workflows. -- **iPhone first.** The iPhone is the main receiver, with iPad fully - supported. -- **Your own devices and networks.** USB, local Wi-Fi, or a private network - you control. No MeowDisplay account and no MeowDisplay-hosted relay. -- **Quick access, not administration.** It's for using your own Mac from a - nearby screen, not for managing fleets of machines. - -Looking for a **Sidecar alternative for iPhone**, or comparing Mac display -apps like **Duet Display**, **Luna Display** and **Astropad**? MeowDisplay is -free and open source, supports both mirroring and a true extended desktop, -and doesn't require an account or a MeowDisplay-hosted relay. Unlike -account-based remote desktop tools such as **Jump Desktop**, remote access -requires a network route you set up yourself. These products serve different -needs; see the [setup FAQ](https://meowdisplay.app/docs#faq) for details. +MeowDisplay is for using your own Mac from a smaller screen, especially an +iPhone. The controls are designed for touch, and Window view lets you focus +on individual apps instead of shrinking a whole desktop. + +- **Mirror or Extend.** View an existing display, or create a separate virtual + desktop that macOS can arrange alongside other displays. +- **Control from a phone.** Use touch styles, a trackpad-style pointer, + gestures, shortcut trays and a keyboard. +- **Use your own network.** Connect over USB, local Wi-Fi or a private-network + route that you configure. No MeowDisplay account or hosted relay is required. +- **Personal use first.** This is for accessing your Mac from another screen, + not for enterprise fleet management. + +Comparing it with Sidecar, Duet Display, Luna Display, Astropad or Jump +Desktop? These apps handle different devices and workflows. MeowDisplay is +free and open source, offers Mirror and Extend, and requires you to set up +your own network route for Remote Access. See the +[setup FAQ](https://meowdisplay.app/docs#faq) before choosing an option. ## Display: Mirror & Extend

-MeowDisplay Mac Mirror settings, as shown on the website -MeowDisplay Mac Extend settings, as shown on the website +MeowDisplay 2.0 Mac Displays settings with Mirror selected and an existing BenQ display available +MeowDisplay 2.0 Mac Displays settings with Extend selected and virtual-display sizing options + +Mac display settings: Mirror (left) and Extend (right). See Extend running on an iPad.

- **Mirror** shows an existing Mac display on the receiver. With multiple @@ -154,9 +191,15 @@ to power; headless compatibility is still being tested across Mac models. ## Window mode -Besides **Mirror** and **Extend**, a device can choose **Windows**: Mac windows -you pick, shown side by side as tiles on that device. Each device chooses on -its own; nothing changes for the others. +Choose **Windows** to arrange selected Mac windows in panes on a receiver. +Each device has its own display mode, so switching one does not change the +others. + +

+MeowDisplay 2.0 on iPad with Safari and two TextEdit windows arranged in three panes + +Three-pane Window view on an iPad (9th generation) · Open full-resolution screenshot +

- **Tiles.** One window is the default. Every receiver supports up to 9 panes, including phones; the available space and minimum pane size decide how @@ -164,11 +207,6 @@ its own; nothing changes for the others. - **Choose windows.** Hold three fingers still on the picture, or use Settings → Display → **Show Mac Windows…**. On the Mac Receiver, use **Windows** in the title bar or ⌃⌥W. -- **Switch quickly.** **Stage Peek** (the default): hold the left or right - edge, slide to browse, tap a window. **Rail** is optional, under Settings → - Controls → **Window Switcher**. **Full Desktop** returns to the whole Mac - screen; from the whole screen, **Switch to Window view?** offers the way - back once per launch. - **Typing.** One pointer works across the tiles; keys go to the tile you selected, and only while its app is in front on the Mac. Control needs the same session permission as always, and a View Only session can arrange tiles @@ -177,7 +215,16 @@ its own; nothing changes for the others. Window on Mac…** is separate and asks first. A Mac can turn Window mode off under Settings → Displays → Windows. -More in [WINDOW_MODE.md](WINDOW_MODE.md). +### Stage Peek + +Stage Peek is the default Window view switcher. Hold the left or right edge, +then slide to find a window or tap to switch. You can search running apps and +use **Full Desktop** to return to the complete Mac screen. From there, +**Switch to Window view?** offers a way back once per launch. + +The optional **Rail** switcher is under Settings → Controls → **Window +Switcher**. See [WINDOW_MODE.md](WINDOW_MODE.md) for pane and switching +behavior. ## Input & gestures @@ -201,7 +248,9 @@ an optional style. Saved choices can differ. ### Allow Input & control requests

-MeowDisplay Mac input settings, as shown on the website +MeowDisplay 2.0 Mac Input settings showing the Allow Input master switch and per-device Input Requests policy + +Mac Input settings: allowing connections does not grant control.

**Allow Input is the Mac-wide master switch.** Receivers can stay connected @@ -326,19 +375,24 @@ works as a trackpad and keyboard for the Mac. ### Keyboard -Tap the tray's Keyboard button for the on-screen keyboard, or use a hardware -keyboard connected to the iPhone or iPad. Latched modifiers from the Control -Tray combine with the keys you type. +Tap the tray's Keyboard button for the on-screen keyboard, or connect a +hardware keyboard to the iPhone or iPad. Since 2.0, the hardware keyboard's +**arrow keys**, Escape, Tab and Forward Delete are forwarded to the Mac while +remote input is allowed. Latched modifiers from the Control Tray combine +with the keys you type. ## Control Trays & Chords ### Main Control Tray -The keys a touch screen is missing, close at hand: **Command**, **Option**, -**Control**, **Shift**, **Escape**, **Tab**, **Dock**, **Keyboard** and -**Settings**. Reorder controls, show or hide each one, and keep several -setups as profiles. Haptics, a landscape tray side, and Avoid Notch let it fit -the device you're holding. +The Main Control Tray puts **Command**, **Option**, **Control**, **Shift**, +**Escape**, **Tab**, **Dock**, **Keyboard** and **Settings** on the receiver. +Reorder or hide buttons and save different profiles. You can also choose +haptics, the tray side in landscape, and Avoid Notch. + +The [iPhone Control Tray screenshot](https://meowdisplay.app/press-kit/Screenshots/iPhone/MeowDisplay-iPhone-Control-Tray.png) +shows the actual controls without the device frame. + ### Chords @@ -380,15 +434,16 @@ Control Trays above. ### Auto-hide -**There when you need it. Out of the way when you don't.** With Auto-hide, the -control trays retreat after a period of inactivity and interacting with the -receiver brings them back. Manual Collapse stays separate, and Auto-hide can -be turned off. +Auto-hide hides the control trays after a period of inactivity and brings +them back when you interact with the receiver. Manual Collapse works +separately. You can turn Auto-hide off. ## Devices

-MeowDisplay Mac devices settings, as shown on the website +MeowDisplay 2.0 Mac Devices settings showing Known Devices, Nearby pairing and Pair over Remote + +Mac Devices settings: manage existing pairings and discover receivers.

Pair a receiver once, then manage it in **Devices** on the Mac: @@ -409,7 +464,7 @@ Either side can start a session, and the Mac sender always streams. When connection approval is required, an explicit Connect waits for acceptance; background reconnects never prompt. -Receivers include **iPhone**, **iPad**, **Android** (closed testing), and another +Receivers include **iPhone**, **iPad**, **Android**, and another Mac using the main app's receiver role or the separate **Mac Receiver**. Once the sending Mac allows control, the receiving Mac's own keyboard and trackpad drive it while the video window is in front; press ⌃⌥⎋ to pause. @@ -487,15 +542,20 @@ More in [SECURITY.md](SECURITY.md) and the | **MeowDisplay** (the Mac app for sharing and receiving) | macOS 14 or later | | **MeowDisplay Receiver** (a spare Mac as a display) | macOS 12 or later | | **MeowDisplay** for iPhone and iPad | iOS / iPadOS 16.4 or later | -| **MeowDisplay** for Android (closed beta) | Android 10 or later; Mac 2.0 sender required. Build requirements: [AndroidReceiver/README.md](AndroidReceiver/README.md); features: [PARITY.md](PARITY.md) | +| **MeowDisplay** for Android | Android 10 or later; Mac 2.0 or later required. Build requirements: [AndroidReceiver/README.md](AndroidReceiver/README.md); features: [PARITY.md](PARITY.md) | Remote control of the Mac needs Accessibility permission; capturing a display needs Screen Recording. +These are the minimum versions each app is built for. Which versions have +actually been tested, and known issues such as +[#219 on macOS 14 and 15](https://github.com/raiseCatError/meowdisplay/issues/219), are in +[COMPATIBILITY.md](COMPATIBILITY.md#operating-systems-minimum-and-tested). + ## Install -The links in [Platform availability](#platform-availability--november-2-2026) -install stable 2.0. The main Mac app can share and receive; choose the separate +The links in [Platform availability](#platform-availability) +install stable 2.1. The main Mac app can share and receive; choose the separate Receiver-only app when that is all the Mac needs. **Mac, with Homebrew (optional):** signed and notarized, macOS 14 or later. @@ -512,7 +572,7 @@ and installs MeowDisplay into `/Applications`. Update with `brew install --cask raiseCatError/tap/meowdisplay-receiver`. **Mac, direct download:** get `MeowDisplay.dmg` (or `MeowDisplayReceiver.dmg`) -from the [latest release](https://github.com/raiseCatError/meowdisplay/releases/latest) +from the [2.1.0 release](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0) and drag the app to Applications. **iPhone and iPad:** install MeowDisplay from the @@ -521,13 +581,15 @@ iPadOS 16.4 or later). ## Getting started -1. [Download MeowDisplay for Mac](https://github.com/raiseCatError/meowdisplay/releases/latest/download/MeowDisplay.dmg), open the DMG, drag MeowDisplay to +1. [Download MeowDisplay 2.1 for Mac](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg), open the DMG, drag MeowDisplay to Applications and open it. 2. Install [MeowDisplay from the App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) on your iPhone or iPad - and open it. + and open it. Android 2.0 is on [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android). + To receive on another Mac, install the main app or the + [Mac Receiver 2.1.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) (macOS 12+). 3. Connect over USB or Wi-Fi, and pair the devices by confirming the matching code. -4. Choose **Mirror** or **Extend**. +4. Choose **Mirror**, **Extend** or **Window view**. 5. Grant Screen Recording and Local Network permissions as requested. For control, also grant Accessibility, enable **Allow Input** on the Mac, and use **Request Control** in the receiver's Settings. @@ -545,11 +607,8 @@ echo "DEVELOPMENT_TEAM=YOURTEAMID" > .env ``` Open `MeowDisplay.xcodeproj` and run the `OpenSidecarMac` scheme for the Mac -app, or `OpenSidecariOS` for the iPhone/iPad receiver. The historical 1.20.0 -apps were built from -[`release/app-store-rc`](https://github.com/raiseCatError/meowdisplay/tree/release/app-store-rc). Signing, permissions and -troubleshooting are in [SETUP.md](SETUP.md); release process in -[RELEASE.md](RELEASE.md). +app, or `OpenSidecariOS` for the iPhone/iPad receiver. Signing, permissions and troubleshooting are in [SETUP.md](SETUP.md). +The release process is in [RELEASE.md](RELEASE.md). ## Documentation @@ -583,8 +642,8 @@ forms for bugs, feature requests, exploratory ideas, documentation, and hardware compatibility reports. **Base branches and pull requests on `dev`**, where development happens. -`main` is the source of the latest published release and changes only when -a release is promoted ([BRANCHING.md](BRANCHING.md)). +`main` holds the latest published release source; only approved release +promotions and documentation-only promotions reach it ([BRANCHING.md](BRANCHING.md)). MeowDisplay is **personal-first, not non-commercial**: using it for your own professional or commercial work is welcome. We are **not currently planning an @@ -612,17 +671,15 @@ continued development is appreciated, but entirely optional: [Ko-fi](https://ko-fi.com/raisecaterror) · [GitHub Sponsors](https://github.com/sponsors/raiseCatError). -Sharing the project, reporting issues and helping others also make a difference. -Thank you for every bit of support. ♥️ +Bug reports, translations and help with testing are useful too. ♥️ ## Built on OpenDisplay MeowDisplay started as a fork of [OpenDisplay](https://github.com/peetzweg/opendisplay) by Philip Poloczek. -OpenDisplay already had a working low-level foundation — Mac screen -capture, virtual displays, video encoding and an iPhone/iPad receiver — and -there was no good reason to rebuild a working open-source base just to say -every layer was written from scratch. Thank you to OpenDisplay for it. +OpenDisplay provided the original foundation for Mac screen capture, +virtual displays, video encoding and an iPhone/iPad receiver. Thanks to +Philip Poloczek and the OpenDisplay contributors for that work. Most of MeowDisplay's own work since then has gone into what happens on top of that foundation: Direct Touch, Trackpad and gestures, Smart Touch, diff --git a/RELEASE.md b/RELEASE.md index 0c8e888c9..54b1a1422 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,21 +1,29 @@ # Release process -## Platform availability — November 2, 2026 +## Platform availability — MeowDisplay 2.1.0 | Platform | Available version | Get it | | --- | --- | --- | -| Mac app · macOS 14+ · share or receive | **2.0.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0) | -| Receiver-only Mac app · macOS 12+ | **2.0.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplayReceiver.dmg) | -| iPhone / iPad · iOS / iPadOS 16.4+ | **2.0.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | -| Android · Android 10+ | **2.0 closed beta** | [Request early access](https://meowdisplay.app/android/early-access) | +| Mac app · macOS 14+ · share or receive | **2.1.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0) | +| Receiver-only Mac app · macOS 12+ | **2.1.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) | +| iPhone / iPad · iOS / iPadOS 16.4+ | **2.1.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | +| Android · Android 10+ | **2.0 on Google Play** (not part of 2.1) | [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android) · Mac companion [2.0.0](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) | The main Mac app includes both sharing and receiving: share this Mac's display, or use this Mac as another Mac's display. The separate Receiver-only app is -also available for Macs running macOS 12 or later. Android 2.0 requires the -Mac 2.0 app. - - -MeowDisplay 2.0 is the stable release. The main Mac app includes sender and +also available for Macs running macOS 12 or later. Android 2.0 works with the +Mac app 2.0 and 2.1 (without the 2.1 features); see +[COMPATIBILITY.md](COMPATIBILITY.md). The Mac 2.0 downloads stay at their +`v2.0.0` URLs. + +This table and the README describe 2.1.0 as released. They reach `main` +only through the promotion PR that `release-publish` opens after the Mac +release is Latest and the stores step has run. `RELEASE_AUTO_PROMOTE` stays +unset for 2.1.0: merge that PR by hand only once `v2.1.0` is the Latest +GitHub release and 2.1.0 is live on the App Store (the stores step can finish +while iOS is still waiting). + +MeowDisplay 2.0 was the previous stable release. The main Mac app includes sender and receiver roles; the separate Receiver-only app remains available. The publication gate and historical release process are documented below. @@ -445,6 +453,28 @@ finished step. Never hand-edit a published feed: it is signed, and the apps reject an edited copy. +### 2.1.0 Mac recovery (`recover-mac-release.yml`) + +The 2.1.0 publication stopped after the draft was created (run +43085872196). `recover-mac-release.yml`, dispatched from +`release/2.1.0-recovery`, finishes it from that draft without rebuilding. +Its `action` input selects one step: + +| Action | Jobs | What it does | +| --- | --- | --- | +| `verify` | `verify` only (read-only) | Checks the frozen candidate's config and runs the real `publish start` gate on a scratch copy of release-state | +| `publish` | `verify` + `publish` (release-publish approval) | Verifies the draft, publishes it as Latest, checks the live feeds (reverts on failure), then reconciles release-state | +| `reconcile` | `verify` + `publish` (approval) | For a release that is already public: verifies it live (Latest, tag at the candidate, the five recorded asset digests) and records Mac as published. Never edits the release | +| `finish` | `verify` + `publish` (approval) | When `meowdisplay.app/release.json` serves 2.1.0: records the website and finishes the publication. If Cloudflare's Bot Fight Mode challenges the runner (it does for GitHub-hosted runners, and WAF skip rules can't exempt a path from it), production is proven instead: a read-only `site-evidence` job (website App, contents: read, `website-update`) saves the private website repository's `main` HEAD files; its `release.json` must equal release-state's manifest, production must serve `llms.txt` and `site.js` byte-identical to that HEAD, and `live_release_sha256` (the approver's own `curl -fsSL https://meowdisplay.app/release.json \| shasum -a 256`) must equal that HEAD's `release.json` | + +If a `publish` run made the release public but failed afterwards, re-run +with `reconcile`, never `publish`: `publish` refuses a release that is no +longer a draft. A rollback returns the release to a draft and restores +`v2.0.0` as Latest. The `v2.1.0` tag stays (tags can't be deleted), and +anyone who fetched the feed while it was live may already have updated. +Every script a workflow runs directly must be tracked as `100755`; +`check-release-workflows.rb` checks this in Git's index. + ## Release PR and versions `release-pr.yml` (manual, from `release/`) runs release-please diff --git a/SECURITY.md b/SECURITY.md index 4dacf655e..d7b8551b8 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -300,12 +300,14 @@ reaches it. Unknown counts as locked, never as unlocked. app icons, app list, Stage Peek or picker content, Remote Finder listings, pane menus, text caret or clipboard. Frames captured or queued just before the lock are dropped too. Devices are told the Mac is locked and that video is off, so even an older receiver drops its last - picture. The iOS and Android receivers cover everything with an opaque "locked" screen, + picture. The iOS receiver and this repository's Android receiver cover everything with an opaque "locked" screen, forget the stills, backdrops, window names and app lists they held, close Stage Peek and the window pickers, and ignore any content message that still arrives. The layout is kept, but after the unlock content comes back only from fresh messages from the Mac, never from a cache. - Android treats `macLockState` like iOS (anything but a clear `unlocked`, including a state it - doesn't know, counts as locked) and offers no Show Lock Screen or remote unlock. + This repository's Android receiver treats `macLockState` like iOS (anything but a clear + `unlocked`, including a state it doesn't know, counts as locked) and offers no Show Lock Screen + or remote unlock. The released Android 2.0 predates that: it doesn't read `macLockState`, shows + video off and keeps what it already had, while the Mac sends it nothing new and drops its input. - **Nothing gets in.** Keys, buttons, touches and drags the device was holding are released at the lock; everything sent afterwards is dropped until the Mac unlocks, so nothing reaches the lock screen or a window behind it. A device set to Ask is refused without a prompt (nobody diff --git a/SETUP.md b/SETUP.md index 441d8e18b..b28e43e9f 100644 --- a/SETUP.md +++ b/SETUP.md @@ -1,18 +1,18 @@ # MeowDisplay setup guide -## Platform availability — November 2, 2026 +## Platform availability | Platform | Available version | Get it | | --- | --- | --- | -| Mac app · macOS 14+ · share or receive | **2.0.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0) | -| Receiver-only Mac app · macOS 12+ | **2.0.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0/MeowDisplayReceiver.dmg) | -| iPhone / iPad · iOS / iPadOS 16.4+ | **2.0.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | -| Android · Android 10+ | **2.0 closed beta** | [Request early access](https://meowdisplay.app/android/early-access) | +| Mac app · macOS 14+ · share or receive | **2.1.0 stable** | [Download MeowDisplay](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplay.dmg) · [release notes](https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0) | +| Receiver-only Mac app · macOS 12+ | **2.1.0 stable** | [Download MeowDisplay Receiver](https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0/MeowDisplayReceiver.dmg) | +| iPhone / iPad · iOS / iPadOS 16.4+ | **2.1.0 on the App Store** | [App Store](https://apps.apple.com/us/app/meowdisplay/id6817552864) | +| Android · Android 10+ | **2.0 on Google Play** | [Google Play](https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android) | The main Mac app includes both sharing and receiving: share this Mac's display, or use this Mac as another Mac's display. The separate Receiver-only app is -also available for Macs running macOS 12 or later. Android 2.0 requires the -Mac 2.0 app. +also available for Macs running macOS 12 or later. Android 2.0 works with the +Mac app 2.0 or later; see [COMPATIBILITY.md](COMPATIBILITY.md). @@ -26,7 +26,8 @@ differences between receiver platforms. - **Xcode**: use the version pinned by `.xcode-version` for reproducible Mac/iOS builds. The Mac sender target supports macOS 14+, the standalone - Mac Receiver macOS 12+, and iPhone/iPad iOS/iPadOS 16.4+. + Mac Receiver macOS 12+, and iPhone/iPad iOS/iPadOS 16.4+. Tested versions + and known issues: [COMPATIBILITY.md](COMPATIBILITY.md#operating-systems-minimum-and-tested). - **Android source builds** need JDK 17 and Android SDK platform 36; they use Gradle in `AndroidReceiver/` instead of Xcode. - [`xcodegen`](https://github.com/yonaskolb/XcodeGen) — `brew install xcodegen`. diff --git a/SUPPORT.md b/SUPPORT.md index cfdcbd4f7..9fc646427 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -1,8 +1,8 @@ # Getting help -For the current release, see [platform availability](README.md#platform-availability--november-2-2026). -MeowDisplay 2.0 is stable on Mac and released on iPhone/iPad. Android 2.0 -is in closed testing and requires Mac 2.0. The main Mac app shares and +For the current release, see [platform availability](README.md#platform-availability). +MeowDisplay 2.1 is stable on Mac and released on iPhone/iPad. Android 2.0 +is on Google Play and works with Mac 2.0 or later. The main Mac app shares and receives; the separate Receiver-only app also remains available. For a bug report, include both app versions, OS versions, device models, diff --git a/TECHNICAL_NOTES.md b/TECHNICAL_NOTES.md index b3927e9d9..d8d25fb31 100644 --- a/TECHNICAL_NOTES.md +++ b/TECHNICAL_NOTES.md @@ -138,7 +138,7 @@ documented general mechanism, referenced conceptually, not a specific quoted page.) An integrated remote-WoL relay/router solution for MeowDisplay is **future** -work, not planned for the near term — see [README.md](README.md#roadmap). +work, not planned for the near term — see [REMOTE_WAKE_ON_LAN.md](REMOTE_WAKE_ON_LAN.md#current-status). ## Reference implementations / related research diff --git a/assets/readme/google-play-badge.png b/assets/readme/google-play-badge.png new file mode 100644 index 000000000..f44f4bdc3 Binary files /dev/null and b/assets/readme/google-play-badge.png differ diff --git a/launch/APP_STORE_LAUNCH.md b/docs/archive/1.20/APP_STORE_LAUNCH.md similarity index 91% rename from launch/APP_STORE_LAUNCH.md rename to docs/archive/1.20/APP_STORE_LAUNCH.md index b9d316068..556323700 100644 --- a/launch/APP_STORE_LAUNCH.md +++ b/docs/archive/1.20/APP_STORE_LAUNCH.md @@ -1,3 +1,5 @@ +> **Archived 2026-11-12 — historical, not maintained.** The 1.20.0 launch announcement (October 25, 2026), superseded by the 2.0.0 release. Current availability: [README.md](../../../README.md) and [CHANGELOG.md](../../../CHANGELOG.md). [Archive index](../README.md). + # MeowDisplay is now available *October 25, 2026* diff --git a/RELEASE_ASSETS.md b/docs/archive/1.20/RELEASE_ASSETS.md similarity index 90% rename from RELEASE_ASSETS.md rename to docs/archive/1.20/RELEASE_ASSETS.md index a8b6d6b98..50112a42f 100644 --- a/RELEASE_ASSETS.md +++ b/docs/archive/1.20/RELEASE_ASSETS.md @@ -1,10 +1,12 @@ +> **Archived 2026-11-12 — historical, not maintained.** The 1.20.0 screenshot and asset plan. Current: README images in `assets/readme/`, store listing in [fastlane/APP_STORE_LISTING.md](../../../fastlane/APP_STORE_LISTING.md), press kit in [tools/press-kit/README.md](../../../tools/press-kit/README.md). [Archive index](../README.md). + # Release screenshots and assets checklist **Historical asset plan.** This checklist records the original repository and 1.20.0 submission preparation. Its outstanding capture notes are not the current App Store submission status: iPhone/iPad **2.0.0 is publicly released** as of November 2, 2026. Check App Store Connect before replacing store assets; -see [README.md](README.md#platform-availability--november-2-2026) for current availability. +see [README.md](../../../README.md#platform-availability) for current availability. What's already in place, and what still needs physical capture. Two @@ -57,7 +59,7 @@ presentation. the README captures above must not be submitted as App Store assets. - The planned set (six real captures, iPhone and iPad) is in - [`fastlane/APP_STORE_LISTING.md` § Screenshot plan](fastlane/APP_STORE_LISTING.md#screenshot-plan). + [`fastlane/APP_STORE_LISTING.md` § Screenshot plan](../../../fastlane/APP_STORE_LISTING.md#screenshot-plan). - Required iPhone and iPad sizes must be confirmed in App Store Connect at upload time; they aren't recorded here to avoid going stale. - Screenshots are uploaded by hand — `fastlane ios release` skips them. diff --git a/launch/SOCIAL_POSTS.md b/docs/archive/1.20/SOCIAL_POSTS.md similarity index 94% rename from launch/SOCIAL_POSTS.md rename to docs/archive/1.20/SOCIAL_POSTS.md index 7cd62724e..c4b652fad 100644 --- a/launch/SOCIAL_POSTS.md +++ b/docs/archive/1.20/SOCIAL_POSTS.md @@ -1,3 +1,5 @@ +> **Archived 2026-11-12 — historical, not maintained.** Unposted social drafts for the 1.20.0 launch (October 25, 2026); their feature list and links predate 2.0.0. Current availability: [README.md](../../../README.md) and [CHANGELOG.md](../../../CHANGELOG.md). [Archive index](../README.md). + # Launch posts: drafts, not posted Ready-to-publish copy for the MeowDisplay launch (October 25, 2026): the diff --git a/docs/archive/README.md b/docs/archive/README.md new file mode 100644 index 000000000..e7861d0f7 --- /dev/null +++ b/docs/archive/README.md @@ -0,0 +1,44 @@ +# Archive + +Historical documents kept for the record. Nothing listed here is maintained +or authoritative: each file starts with a note naming the document to use +instead. + +A document is moved here only when it describes a finished release, a newer +document covers its subject, and no code, tooling, test or active +instruction depends on it at its old path. Moved files keep their history: +use `git log --follow`. + +## 1.20.0 launch — [`1.20/`](1.20/) + +Material for the first public release (October 25, 2026), superseded by +2.0.0 and 2.1.0. + +| File | Was | What it records | Use instead | +| --- | --- | --- | --- | +| [RELEASE_ASSETS.md](1.20/RELEASE_ASSETS.md) | `RELEASE_ASSETS.md` | 1.20.0 screenshot and asset plan | [fastlane/APP_STORE_LISTING.md](../../fastlane/APP_STORE_LISTING.md), [tools/press-kit/README.md](../../tools/press-kit/README.md) | +| [APP_STORE_LAUNCH.md](1.20/APP_STORE_LAUNCH.md) | `launch/` | 1.20.0 launch announcement | [README.md](../../README.md), [CHANGELOG.md](../../CHANGELOG.md) | +| [SOCIAL_POSTS.md](1.20/SOCIAL_POSTS.md) | `launch/` | Unposted 1.20.0 social drafts | [README.md](../../README.md), [CHANGELOG.md](../../CHANGELOG.md) | + +## 2.0 handoff — marked historical, not moved + +Written at the end of local 2.0 development (2026-10-31). They stay at their +original paths because `Shared/AutomaticRemoteRoutes.swift` and the Android +`AutomaticRemoteRoutes.kt` cite `handoff-2.0/COMPLETION-MATRIX.md` as +evidence. Each file is marked historical at the top. + +| File | What it records | Use instead | +| --- | --- | --- | +| [CLOUD-HANDOFF-2.0.md](../../CLOUD-HANDOFF-2.0.md) | Local-to-cloud handoff: state, QA done, release pipeline as found | [BRANCHING.md](../../BRANCHING.md), [RELEASE.md](../../RELEASE.md), [ARCHITECTURE.md](../../ARCHITECTURE.md) | +| [COMPLETION-MATRIX.md](../../handoff-2.0/COMPLETION-MATRIX.md) | 2.x requirement status, 2026-10-28 … 31 | [PARITY.md](../../PARITY.md), [CHANGELOG.md](../../CHANGELOG.md) | +| [BRANDING-AUDIT.md](../../handoff-2.0/BRANDING-AUDIT.md) | Where legacy OpenSidecar/OpenDisplay names remain, and why | [TERMINOLOGY.md](../../TERMINOLOGY.md) | +| [EXTEND-START-ALTTAB-FINDINGS.md](../../handoff-2.0/EXTEND-START-ALTTAB-FINDINGS.md) | Extend start latency caused by AltTab flooding replayd | [ARCHITECTURE.md](../../ARCHITECTURE.md), `Mac/ShareableContentBroker.swift` | +| [PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md](../../handoff-2.0/PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md) | Design note behind the crash-safe shield prototype | [SECURITY.md](../../SECURITY.md), [Prototypes/CrashSafeShield/ASSESSMENT.md](../../Prototypes/CrashSafeShield/ASSESSMENT.md) | +| [RELEASE-2.0.0-ANDROID-QA-WAIVER.md](../../handoff-2.0/RELEASE-2.0.0-ANDROID-QA-WAIVER.md) | Owner's Android QA waiver for 2.0.0 only | [RELEASE.md](../../RELEASE.md) | +| [STORE-ACCESSIBILITY.md](../../handoff-2.0/STORE-ACCESSIBILITY.md) | What was verified for the 2.0 store accessibility declarations | No maintained replacement; check the store consoles before submitting | + +## Current documentation + +Start at the [README](../../README.md#documentation), then +[ARCHITECTURE.md](../../ARCHITECTURE.md), [SETUP.md](../../SETUP.md), +[CONTRIBUTING.md](../../CONTRIBUTING.md) and [RELEASE.md](../../RELEASE.md). diff --git a/docs/release/2.2.0-notes.md b/docs/release/2.2.0-notes.md new file mode 100644 index 000000000..c7147bfc5 --- /dev/null +++ b/docs/release/2.2.0-notes.md @@ -0,0 +1,147 @@ +# MeowDisplay 2.2.0: release notes and store text (draft) + +Status: **draft for owner review. Not published.** Apple platforms only. 2.2.0 ships on Mac +(MeowDisplay and MeowDisplay Receiver) and iPhone/iPad. Android is excluded from this release +(`excludedPlatforms`); MeowDisplay 2.0 for Android stays as it is on Google Play. + +Sources: `Shared/WhatsNew.swift` (the in-app What's New the owner accepted on 9000101/9000102), +`docs/qa/2.2-qa-checklist.md` Part 1 (what changed from 2.1) and Round 9. Every line names a +feature that is in the 2.2 candidate. Nothing here is a claim about Android. + +## Terms + +Use these names everywhere (app, store, site, release notes): + +| Name | What it is | Where | +| --- | --- | --- | +| Auto-Pan | The zoomed view follows the pointer to the edge | iPhone/iPad: Settings › Gestures | +| Display Overview (Beta) | Every Mac display in one view, full screen or as a Window mode pane | iPhone/iPad | +| Arrange Displays (Beta) | Move the Mac's displays from Stage Peek; the Mac asks first | iPhone/iPad; on the Mac: "Arrange from iPhone and iPad (Beta)" | +| Display Scaling | Larger text and controls for a device used as an extended display | Mac (was "Desktop Size" in QA builds before Round 8) | +| Active Connection | Read-only: how a device is connected right now (USB, direct Wi-Fi, local network, another network) | iPhone/iPad: Settings › Connections; Mac: Settings › Overview and Streaming; Mac Receiver overview | +| Rearrange Controls | Your own control order, separately for portrait and landscape | iPhone/iPad: touch and hold Settings | + +Don't write "Tailscale" as the route a session uses, "Desktop Size", or "Auto Pan"/"autopan". + +## App Store: What's New in This Version (iPhone and iPad) + +Plain text, under the 4,000-character limit. Paste into App Store Connect for version 2.2.0. + +``` +• Auto-Pan: when you're zoomed in, the view follows the pointer to the edge, whether you use touch, Trackpad mode, a mouse or a trackpad. Choose where it works in Settings › Gestures. +• Display Overview (Beta): see all your Mac's displays in one view, full screen or as a pane in Window mode. +• Arrange Displays (Beta): move your Mac's displays around from Stage Peek. Your Mac asks first, unless it always allows this device. +• Rearrange Controls: touch and hold Settings to put your controls in your own order, separately for portrait and landscape. + +Also new +• The calculator now floats, with history and notes. Optional: add it in Edit Function Tray. +• Find the Pointer: an optional arrow points to the pointer when it's out of view. +• See when your Mac sleeps during a session, with a Wake Mac button. +• Active Connection in Settings › Connections shows how this device reaches your Mac. +• Use Less Data (Automatic, On or Off) for mobile and metered networks. +• Many fixes for Window mode, the keyboard controls, lock screen and wake. + +Most new features need MeowDisplay 2.2 on your Mac. Update it from the Mac app or at meowdisplay.app. +``` + +Promotional text (optional, 170 characters, can change without review): + +``` +New in 2.2: Auto-Pan follows your pointer when you're zoomed in, plus Display Overview (Beta) and your own control layout. +``` + +## GitHub release and CHANGELOG (Mac) + +release-please writes the 2.2.0 section of `CHANGELOG.md` from the Conventional Commit titles +(`release-pr.yml`), and `release-publish.yml` uses that section as the GitHub release body. To give +readers a summary before the commit list, add this paragraph at the top of the 2.2.0 section in the +release PR (below the `## [2.2.0]` heading, above `### Features`): + +```markdown +**MeowDisplay 2.2** for Mac, iPhone and iPad. + +- **Auto-Pan** (iPhone and iPad): when you're zoomed in, the view follows the pointer to the edge, + with touch, Trackpad mode, a mouse or a trackpad. +- **Display Overview (Beta)** and **Arrange Displays (Beta)**: see every Mac display in one view, + and move displays from your iPhone or iPad. The Mac asks first unless it always allows that device. +- **Display Scaling** (Mac): larger text and controls for a device you use as an extended display. +- **Stay Awake with Lid Closed** (Mac, optional): keep a MacBook available with its lid closed. +- **Active Connection**: Settings shows how each device is connected. +- **Rearrange Controls**, a floating calculator, Find the Pointer, Use Less Data, and a Mac Asleep + screen with Wake Mac. + +Downloads: `MeowDisplay.dmg` (macOS 14 or later) and `MeowDisplayReceiver.dmg` (macOS 12 or later). +iPhone and iPad: update from the App Store. MeowDisplay 2.0 for Android works with Mac 2.2 and +doesn't get these features. +``` + +## Mac update (Sparkle) and the Mac What's New window + +`release-mac.yml` builds the appcasts with `generate_appcast` and no notes file, so the Sparkle +update dialog shows no release notes (as for 2.1.0). After updating, the Mac shows its What's New +window once (catalog items for `.mac`). No change is proposed. If notes in the update dialog are +wanted later, that is a reviewed workflow change, not part of 2.2.0. Text for it, if ever needed: + +``` +MeowDisplay 2.2 +• Arrange from iPhone and iPad (Beta): a paired device can move your displays around. You confirm each change, unless you always allow that device. +• Display Scaling: choose larger text and controls for a device you use as an extended display. +• Stay Awake with Lid Closed (optional): keep a MacBook available to your devices with its lid closed. +• Active Connection: Settings › Overview and Streaming show how each device is connected. +On iPhone and iPad: Auto-Pan, Display Overview (Beta) and Rearrange Controls. Update MeowDisplay there too. +``` + +## Website highlights (for the website's 2.2 change, merged only once 2.2 is live) + +- Headline: "MeowDisplay 2.2 is here for Mac, iPhone and iPad." +- Highlights, in this order: Auto-Pan; Display Overview (Beta); Arrange Displays (Beta); Display + Scaling (Mac); Rearrange Controls; Active Connection. +- Availability line: "iPhone and iPad 2.2 on the App Store · Mac 2.2 for macOS 14+ · Mac Receiver + for macOS 12+ · Android 2.0 on Google Play (works with Mac 2.0 or later)." +- Android pages: unchanged apart from the Mac companion link (Mac 2.2 instead of 2.1). Don't list + any 2.2 feature for Android. + +## Setup and support docs + +- Compatibility: iOS/iPadOS 2.2 with Mac 2.1 connects. The Mac's views don't follow the pointer in + Window mode, and the Overview pane and Arrange Displays need a Mac with 2.2 (its `welcome.features` + `overviewPane` and `displayArrange`). Mac 2.2 with iOS 2.1 or Android 2.0 works as with Mac 2.1 + (PROTOCOL.md 6.10 Auto-Pan addendum: every new field is optional). +- Support: if the view doesn't follow the pointer, check Settings › Gestures › Auto-Pan and that the + Mac runs 2.2. Active Connection shows Unknown briefly after connecting; that is expected. + +## Production candidate and upgrade verification plan + +The candidate is built only by CI from `release/2.2.0` (`release-candidate.yml`): Mac DMGs signed, +notarized and staged with signed feeds (`release-build`), iOS uploaded to App Store Connect +(`ios-upload`), no Android job (`builds android` = false). Nothing publishes before the +`release-publish` approval. Local QA builds (Dev/QA bundle IDs) are not candidates. + +1. **Before pushing `release/2.2.0`:** `release-preflight.yml` green from `main` + (tooling + published baseline). Then, on the release branch, `release-dry-run.yml` + (credentialed: match, Sparkle private key, App Store Connect) once. +2. **Candidate checks (RELEASE.md § Verification):** `codesign --verify --deep --strict` and + `spctl -a -vv` on both DMGs; `verify-feed.sh` for `appcast.xml` and `appcast-receiver.xml` + against the shipped key; `CFBundleShortVersionString`/`CFBundleVersion` 2.2.0 (above the live + 2.1.0 feed); launch on a non-development account; Mac Receiver on macOS 12 if a machine exists. + iOS: the build processes in App Store Connect as 2.2.0 with `PrivacyInfo.xcprivacy`. +3. **Upgrade from 2.1.0 (blocking, physical):** + - Mac: on a Mac running the published 2.1.0 (Sparkle feed from meowdisplay.app), install the + candidate DMG over it (the feed only changes at publication). Pairings, Known Devices, + Allow Input policies and Display Scaling default survive; What's New shows once; Screen + Recording and Accessibility grants persist (same designated requirement as 2.1.0, checked by + `published-baseline.sh`). + - iPhone (and iPad if available): App Store 2.1.0 installed, then the 2.2.0 TestFlight build over + it. Pairing with the Mac kept, settings kept (Auto-Pan defaults On for saved preferences + without the key), What's New shows once, then not again. + - Cross-version: iPhone 2.1.0 with the Mac candidate, and the Mac 2.1.0 with the iPhone + candidate: connect, Mirror, Window view, input. + - Android 2.0.0 (Google Play) with the Mac candidate, if a device is available (recommended). +4. **After publication:** **Check for Updates…** in Mac 2.1.0 finds 2.2.0; the website serves + the 2.2.0 `release.json` through the workflow's PR; Homebrew bump PR verified with + `brew audit --cask --strict --online` before merging. + +## Android (separate, unchanged) + +No Android release in 2.2.0. Google Play keeps MeowDisplay 2.0 (versionCode 2000001). The +`AndroidReceiver` changes on `dev` since 2.0 are not shipped by this release and aren't described. diff --git a/fastlane/APP_STORE_LISTING.md b/fastlane/APP_STORE_LISTING.md index e12cddb9d..9336d3e60 100644 --- a/fastlane/APP_STORE_LISTING.md +++ b/fastlane/APP_STORE_LISTING.md @@ -7,7 +7,7 @@ The existing field copy and first-submission checklist below are reference material from the 1.20.0 launch, not a verified export of today's live 2.0 metadata. Preserve legal/export and contact details in App Store Connect; do not infer new answers from this documentation update. Current downloads -and platform requirements are in [README.md](../README.md#platform-availability--november-2-2026). +and platform requirements are in [README.md](../README.md#platform-availability). Stored reference copy for the iOS app's App Store Connect text fields. diff --git a/fastlane/PLAY_STORE_LISTING.md b/fastlane/PLAY_STORE_LISTING.md index 098464dd3..c89b90e1d 100644 --- a/fastlane/PLAY_STORE_LISTING.md +++ b/fastlane/PLAY_STORE_LISTING.md @@ -149,6 +149,9 @@ To test a live session: install MeowDisplay on a Mac with macOS 14 or later (htt ## Testing track +Android 2.0 (versionCode 2000001) is now in production on Google Play. The +requirement below is kept as the record of how production access was gained. + The developer account is a personal account created after 13 November 2023: production access needs a **closed test with at least 12 testers opted in for 14 consecutive days**, then **Apply for production** on the Dashboard diff --git a/handoff-2.0/BRANDING-AUDIT.md b/handoff-2.0/BRANDING-AUDIT.md index 798dea008..314dff430 100644 --- a/handoff-2.0/BRANDING-AUDIT.md +++ b/handoff-2.0/BRANDING-AUDIT.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** The 2.0 branding audit (2026-10-31). Current naming rules: [TERMINOLOGY.md](../TERMINOLOGY.md). [Archive index](../docs/archive/README.md). + # MeowDisplay 2.0 branding audit Scope: case-insensitive search for opensidecar, opendisplay, oldsidecar, "open sidecar" and "open display" across Swift, Kotlin, xcstrings, strings, Info.plists, project.yml, Android res, HTML/TSX site sources, scripts and docs. diff --git a/handoff-2.0/COMPLETION-MATRIX.md b/handoff-2.0/COMPLETION-MATRIX.md index e7f10113f..15b5066d8 100644 --- a/handoff-2.0/COMPLETION-MATRIX.md +++ b/handoff-2.0/COMPLETION-MATRIX.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** 2.x requirement status as of the 2.0 handoff (2026-10-28 … 31). Current: [PARITY.md](../PARITY.md), [CHANGELOG.md](../CHANGELOG.md), [WINDOW_MODE.md](../WINDOW_MODE.md). [Archive index](../docs/archive/README.md). + # MeowDisplay 2.x requirement status (2026-10-28, completion pass) diff --git a/handoff-2.0/EXTEND-START-ALTTAB-FINDINGS.md b/handoff-2.0/EXTEND-START-ALTTAB-FINDINGS.md index 175e4c6a8..fe1336eb3 100644 --- a/handoff-2.0/EXTEND-START-ALTTAB-FINDINGS.md +++ b/handoff-2.0/EXTEND-START-ALTTAB-FINDINGS.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** Extend start-latency investigation from 2.0 QA (2026-10-30). The fix lives in `Mac/ShareableContentBroker.swift` and `Mac/CoalescingFetch.swift`; see [ARCHITECTURE.md](../ARCHITECTURE.md). [Archive index](../docs/archive/README.md). + # Extend start latency (P0), 2026-10-30 night diff --git a/handoff-2.0/PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md b/handoff-2.0/PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md index 16da9fb26..4c0b004be 100644 --- a/handoff-2.0/PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md +++ b/handoff-2.0/PRIVACY-SHIELD-CRASH-SAFE-DESIGN.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** The 2026-10-30 design note behind the crash-safe Privacy Shield prototype. Current: [SECURITY.md](../SECURITY.md) (shipped behaviour) and [Prototypes/CrashSafeShield/ASSESSMENT.md](../Prototypes/CrashSafeShield/ASSESSMENT.md) (prototype results and the owner's open decisions). [Archive index](../docs/archive/README.md). + # Crash-safe Privacy Shield: design note (2026-10-30) diff --git a/handoff-2.0/RELEASE-2.0.0-ANDROID-QA-WAIVER.md b/handoff-2.0/RELEASE-2.0.0-ANDROID-QA-WAIVER.md index 83b1c57e7..e54b1167a 100644 --- a/handoff-2.0/RELEASE-2.0.0-ANDROID-QA-WAIVER.md +++ b/handoff-2.0/RELEASE-2.0.0-ANDROID-QA-WAIVER.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** A decision that applied to the 2.0.0 release only. Current release rules: [RELEASE.md](../RELEASE.md) and `.github/release-config.json`. [Archive index](../docs/archive/README.md). + # MeowDisplay 2.0.0: Android physical QA waiver **Status: WAIVED by the owner (2026-10-31). Not executed, not passed.** diff --git a/handoff-2.0/STORE-ACCESSIBILITY.md b/handoff-2.0/STORE-ACCESSIBILITY.md index f659db7ee..6dc6f960d 100644 --- a/handoff-2.0/STORE-ACCESSIBILITY.md +++ b/handoff-2.0/STORE-ACCESSIBILITY.md @@ -1,3 +1,5 @@ +> **Historical, not maintained (marked 2026-11-12).** What was verified for the 2.0 store accessibility declarations (2026-10-30). There is no maintained replacement: check App Store Connect and Google Play Console before the next submission; store listing text is in [fastlane/APP_STORE_LISTING.md](../fastlane/APP_STORE_LISTING.md). [Archive index](../docs/archive/README.md). + # Store accessibility: what to declare for MeowDisplay 2.0 (2026-10-30) diff --git a/press-kit/Information/MeowDisplay-Descriptions.md b/press-kit/Information/MeowDisplay-Descriptions.md index e2e342eed..c8398e00c 100644 --- a/press-kit/Information/MeowDisplay-Descriptions.md +++ b/press-kit/Information/MeowDisplay-Descriptions.md @@ -16,7 +16,7 @@ Stage Peek lists open windows and running apps so you can switch, search or add Devices connect over USB or local Wi-Fi, or remotely over a private network you control, such as Tailscale. Devices are paired, sessions are encrypted, and the Mac decides who may control it. ## Longer overview -MeowDisplay uses a Mac as the sender and an iPhone, iPad, Android device or another Mac as the receiver. Version 2.0 of the Mac app and the iPhone/iPad app is released. Android is in closed testing and does not yet have full parity with the Apple apps. +MeowDisplay uses a Mac as the sender and an iPhone, iPad, Android device or another Mac as the receiver. Version 2.0 of the Mac app and the iPhone/iPad app is released. Android 2.0 is on Google Play and does not yet have full parity with the Apple apps. Display modes. Mirror shows the same display you see on the Mac. Extend adds a separate virtual display that macOS treats like any other monitor. Each connected device can have its own mode, so an iPad can extend while an iPhone shows windows. @@ -46,7 +46,7 @@ MeowDisplay is free, with no subscription, and its source is published under GPL - Mac app (sender and receiver): macOS 14 or later - Separate receiver-only Mac app: macOS 12 or later - iPhone and iPad: iOS / iPadOS 16.4 or later, App Store — https://apps.apple.com/app/id6817552864 -- Android: Android 10 or later, closed testing only +- Android: Android 10 or later, Google Play — https://play.google.com/store/apps/details?id=com.raisecaterror.meowdisplay.android - Connections: USB (iPhone/iPad), local Wi-Fi, Remote Access over a private network such as Tailscale - Website: https://meowdisplay.app - Release notes: https://github.com/raiseCatError/meowdisplay/releases/tag/v2.0.0 diff --git a/press-kit/Information/MeowDisplay-Reviewer-Guide.md b/press-kit/Information/MeowDisplay-Reviewer-Guide.md index 9f87f9671..2f738f8da 100644 --- a/press-kit/Information/MeowDisplay-Reviewer-Guide.md +++ b/press-kit/Information/MeowDisplay-Reviewer-Guide.md @@ -10,7 +10,7 @@ MeowDisplay is free. You do not need a review code, licence key or account. ## What it does not do - It does not run a cloud relay, account system or remote-access service. Remote Access needs a route you provide. - It is not a fleet-management or enterprise remote-support product. -- Android is in closed testing and does not have every feature of the Apple apps. +- Android 2.0 is on Google Play and does not have every feature of the Apple apps. - It does not replace Apple Sidecar or Universal Control and does not use them. ## What to install diff --git a/press-kit/Information/MeowDisplay-Usage-and-Brand-Guidelines.md b/press-kit/Information/MeowDisplay-Usage-and-Brand-Guidelines.md index a716089f1..2c88e0e06 100644 --- a/press-kit/Information/MeowDisplay-Usage-and-Brand-Guidelines.md +++ b/press-kit/Information/MeowDisplay-Usage-and-Brand-Guidelines.md @@ -23,7 +23,7 @@ Use the supplied PNGs as they are. Do not redraw, recolour, crop, stretch or add ## Accuracy - Do not alter app screens, add controls or show features MeowDisplay does not have. -- Describe Android as closed testing, not as released. +- Describe Android 2.0 only by the features it has. - Remote Access needs a private-network route such as Tailscale; do not describe it as a cloud service. ## Three kinds of media diff --git a/scripts/ci/classify_pr_paths.py b/scripts/ci/classify_pr_paths.py index 79cab70cb..711563b98 100644 --- a/scripts/ci/classify_pr_paths.py +++ b/scripts/ci/classify_pr_paths.py @@ -129,7 +129,7 @@ # release-tooling checks they stay fail-closed. Listed by name: a new workflow # means full CI until it is added here. RELEASE_WORKFLOWS = frozenset(f".github/workflows/{name}.yml" for name in ( - "pr-title", "reference-intake", "reference-sync", "release-android", "release-candidate", + "pr-title", "recover-mac-release", "reference-intake", "reference-sync", "release-android", "release-candidate", "release-dry-run", "release-ios", "release-mac", "release-monitor", "release-pr", "release-preflight", "release-publish", "release-state-access", "repository-guard", )) diff --git a/scripts/release/baseline.env b/scripts/release/baseline.env index 90f9e8178..54cbf40ca 100644 --- a/scripts/release/baseline.env +++ b/scripts/release/baseline.env @@ -5,19 +5,19 @@ # reviewed commit, after a newer release has been verified live. REPO=raiseCatError/meowdisplay TEAM_ID=CZ8BW9J896 -BASELINE_TAG=v2.0.0 -BASELINE_URL=https://github.com/raiseCatError/meowdisplay/releases/download/v2.0.0 +BASELINE_TAG=v2.1.0 +BASELINE_URL=https://github.com/raiseCatError/meowdisplay/releases/download/v2.1.0 BASELINE_SUPUBLICEDKEY=M9Je3RXE9GYGv7ZvVmJj2xK2FrpSR/rQvbuZFfYORcU= LIVE_FEED_BASE=https://meowdisplay.app SENDER_DMG=MeowDisplay.dmg -SENDER_DMG_SHA256=9b9fb406774d40ca737d74fb597d9dd8eaf7b3877d6bc4e6d294fff7d239bae7 +SENDER_DMG_SHA256=d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316 SENDER_APP="MeowDisplay.app" SENDER_BUNDLE_ID=com.raisecaterror.meowdisplay.mac SENDER_FEED=appcast.xml RECEIVER_DMG=MeowDisplayReceiver.dmg -RECEIVER_DMG_SHA256=3860b8941aa48e8f48b59f7252be8fe742c6bbd01c22b067a5861cb847581d98 +RECEIVER_DMG_SHA256=4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7 RECEIVER_APP="MeowDisplay Receiver.app" RECEIVER_BUNDLE_ID=com.raisecaterror.meowdisplay.mac.receiver RECEIVER_FEED=appcast-receiver.xml diff --git a/scripts/release/check-release-workflows.rb b/scripts/release/check-release-workflows.rb old mode 100755 new mode 100644 index cc5778715..ebb15457e --- a/scripts/release/check-release-workflows.rb +++ b/scripts/release/check-release-workflows.rb @@ -106,7 +106,8 @@ def transitive_needs(jobs, id, seen = []) REFERENCE_MERGE = %r{(git (merge|cherry-pick|rebase)[^\n]*reference)|(gh pr (create|merge)[^\n]*reference/opendisplay)}.freeze RELEASE_WORKFLOWS = %w[release-candidate.yml release-mac.yml release-ios.yml release-android.yml release-publish.yml - release-pr.yml release-dry-run.yml release-monitor.yml release-state-access.yml].freeze + release-pr.yml release-dry-run.yml release-monitor.yml release-state-access.yml + recover-mac-release.yml].freeze SCHEDULE_SWITCHES = { "release-monitor.yml" => "RELEASE_AUTOMATION", "reference-sync.yml" => "REFERENCE_SYNC", "repository-guard.yml" => "REPOSITORY_GUARD" }.freeze @@ -332,6 +333,7 @@ def release_ref_guard?(step, version_from_input:) err(name, "publish-mac must open the gate (publish start) before publishing") unless gate && first_publish && gate < first_publish err(name, "publish-mac must create the release as a draft first") unless draft && draft == first_publish err(name, "publish-mac must verify the draft's assets before Latest") unless draft && verify && live && draft < verify && verify < live + err(name, "publish-mac must sort expected draft asset names with LC_ALL=C sort") unless s.any? { |x| run_text(x).include?("LC_ALL=C sort") } err(name, "publish-mac must revert Latest when the live feeds don't verify") unless live && revert && live < revert end # The release state is written by GitHub Actions and is not evidence by @@ -360,6 +362,53 @@ def release_ref_guard?(step, version_from_input:) end end +# MARK: - Mac release recovery + +if (doc = load("recover-mac-release.yml")) + name = "recover-mac-release.yml" + common(name, doc) + only_trigger(name, doc, "workflow_dispatch") + secrets_behind_environments(name, doc, %w[release-publish website-update]) + jobs = doc["jobs"] || {} + ver = jobs["verify"] + # The site-evidence job only reads the private website repository. + if (se = jobs["site-evidence"]) + tok = steps(se).find { |s| s["uses"].to_s.start_with?("actions/create-github-app-token@") } || {} + perms = (tok["with"] || {}).select { |k, _| k.start_with?("permission-") } + unless env_name(se) == "website-update" && perms == { "permission-contents" => "read" } && + se["permissions"] == { "contents" => "read" } && !se.to_s.include?("RELEASE_STATE_TOKEN") + err(name, "site-evidence must stay read-only: website-update, website App token with contents: read only, no state token") + end + end + err(name, "verify must preflight candidate configuration") unless ver && steps(ver).any? { |s| run_text(s).include?("reconcile-mac-release.sh --preflight") } + pub = jobs["publish"] + if pub.nil? + err(name, "missing the publish job") + else + err(name, "publish job must use the release-publish environment") unless env_name(pub) == "release-publish" + err(name, "publish job must depend on verify") unless needs(pub).include?("verify") + err(name, "publish job must check release-publish with required reviewers") unless steps(pub).any? { |s| run_text(s).include?("check-environment.sh release-publish --require-reviewers") } + # Only action=publish may edit the GitHub Release; reconcile and finish + # write release-state only, with the release App's token. + steps(pub).each do |s| + text = run_text(s) + if text.include?("recover-mac-release.sh --publish") && s["if"].to_s.gsub(/\s+/, " ") != "${{ inputs.action == 'publish' }}" + err(name, "the publish step must run only for action == 'publish'") + end + if text.match?(/reconcile-mac-release\.sh --(execute|finish)/) && + s.dig("env", "RELEASE_STATE_TOKEN") != "${{ steps.state-token.outputs.token }}" + err(name, "step #{s['name'].inspect} writes the release state without RELEASE_STATE_TOKEN") + end + end + end + # The unprotected verify job stays read-only: no environment, secret, + # App token or write permission. + if ver && (env_name(ver) || uses_secrets?(ver) || ver.to_s.include?("create-github-app-token") || + ver["permissions"] != { "contents" => "read" }) + err(name, "verify job must hold no credential: no environment, secret, App token or write permission") + end +end + # MARK: - Release PR, dry run, monitor if (doc = load("release-pr.yml")) @@ -644,6 +693,65 @@ def release_ref_guard?(step, version_from_input:) end end +# MARK: - Executed scripts are executable in Git + +# A workflow step that runs `scripts/...` directly needs the file's Git mode +# to be 100755: the runner's checkout restores modes from Git, so a 100644 +# script fails there with "Permission denied" (2.1.0 recovery run 43117186436) +# while tests that run it through `bash` still pass. Shell scripts under +# scripts/ also call each other directly ("$here/release-state.sh"), so every +# tracked scripts/**/*.sh must be executable too. Git's index is the source of +# truth, not the local filesystem. MEOW_REPO_ROOT (tests only) points at another +# repository's index. +REPO_ROOT = ENV["MEOW_REPO_ROOT"] || File.expand_path("../..", __dir__) +# A script path in command position: line start, or after ; & | ( { $( ! or a +# shell keyword. `ruby scripts/x.rb`, `bash scripts/x.sh` and `. scripts/x.env` +# name their interpreter and need no executable bit. +DIRECT_SCRIPT = %r!(?:^|[;&|(\{]|\$\(|\!|\b(?:then|do|else|if|exec|time)\b)\s*(scripts/[A-Za-z0-9_./-]+)!.freeze + +def git_modes(root) + out = IO.popen(["git", "-C", root, "ls-files", "-s", "--", "scripts"], err: File::NULL, &:read) + return nil unless $?.success? + + out.lines.to_h do |line| + meta, path = line.chomp.split("\t", 2) + [path, meta.split(" ").first] + end +end + +if (modes = git_modes(REPO_ROOT)) + Dir[File.join(DIR, "*.yml")].sort.each do |path| + name = File.basename(path) + doc = YAML.safe_load(File.read(path), aliases: false) + doc.fetch("jobs", {}).each do |id, job| + steps(job).each do |s| + run_text(s).each_line do |line| + next if line.strip.start_with?("#") + + line.scan(DIRECT_SCRIPT).flatten.uniq.each do |script| + script = script.sub(/[.,]+\z/, "") + mode = modes[script] + if mode.nil? + err(name, "job #{id} runs #{script}, which Git does not track") + elsif mode != "100755" + err(name, "job #{id} runs #{script} directly, but Git tracks it as #{mode}, not 100755 " \ + "(git update-index --chmod=+x #{script})") + end + end + end + end + end + end + modes.each do |script, mode| + next unless script.end_with?(".sh") || script == "scripts/release/meow-release" + next if mode == "100755" + + err(script, "tracked as #{mode}; scripts are executed directly and must be 100755 (git update-index --chmod=+x #{script})") + end +else + err(REPO_ROOT, "cannot read Git file modes (git ls-files); executable bits must be checked from Git") +end + if @errors.empty? puts "release, store and repository workflows are fail-closed (#{DIR})" else diff --git a/scripts/release/reconcile-mac-release.sh b/scripts/release/reconcile-mac-release.sh new file mode 100755 index 000000000..96e6037ff --- /dev/null +++ b/scripts/release/reconcile-mac-release.sh @@ -0,0 +1,443 @@ +#!/usr/bin/env bash +# reconcile-mac-release.sh: Reconcile release-state through the authorized release App +# after Mac 2.1.0 publication is live. +# +# Usage: +# reconcile-mac-release.sh (--execute | --finish | --manifest-only | --preflight | --site-evidence DIR) +# +# Modes: +# --execute Mutate release-state: advance publication from 'failed' to +# 'in-progress', record Mac platform as 'published', process +# stores, generate website manifest, and verify remote state. +# Requires RELEASE_STATE_TOKEN (App ID 5582030). +# --manifest-only Strictly read-only: generate website release.json manifest +# from recorded state without mutating release-state. +# --finish After the website serves release.json for this version: +# record website-updated and finish the publication. Same +# live-release checks and token as --execute. +# --preflight Read-only dry-run of publication start using frozen candidate config. +# --site-evidence DIR Read-only: save the website repository's branch HEAD +# and the files --finish compares with production into DIR. +# GH_TOKEN must read that (private) repository. +# +# --execute and --finish first prove, live, that GitHub release $DRAFT_ID is +# public, is Latest, is tagged at the candidate, and carries exactly the five +# recorded assets (GitHub's own sha256 digests). Only then is anything written. +# Both are safe to re-run: a step already recorded changes nothing. +# +# Requirements: +# - Pinned to VERSION 2.1.0, CANDIDATE_SHA 94c796fc34fd699776764d67d2f26013909a308e. +# - For --execute, Mac 2.1.0 must already be published live as Latest on GitHub. +# - Respects scratch storage policy and verifies all transitions fail-closed. +set -euo pipefail + +readonly PINNED_VERSION="2.1.0" +readonly PINNED_CANDIDATE_SHA="94c796fc34fd699776764d67d2f26013909a308e" +readonly PINNED_REPO="raiseCatError/meowdisplay" +readonly PINNED_RELEASE_ID="442117184" +readonly PINNED_SHA256SUMS_DIGEST="279e22555e9a84a4fc59bd7d529f4efca6ccf2a8c986ac9fc939d627368bc1b7" + +VERSION="${VERSION:-$PINNED_VERSION}" +CANDIDATE_SHA="${CANDIDATE_SHA:-$PINNED_CANDIDATE_SHA}" +REPO="${GITHUB_REPOSITORY:-$PINNED_REPO}" +export GITHUB_REPOSITORY="$REPO" +export GH_TOKEN="${GH_TOKEN:-${RELEASE_STATE_TOKEN:-${GITHUB_TOKEN:-}}}" + +if [ "$VERSION" != "$PINNED_VERSION" ]; then + echo "::error::VERSION must be '$PINNED_VERSION' (attempted override to '$VERSION' rejected)" + exit 1 +fi +if [ "$CANDIDATE_SHA" != "$PINNED_CANDIDATE_SHA" ]; then + echo "::error::CANDIDATE_SHA must be '$PINNED_CANDIDATE_SHA' (attempted override to '$CANDIDATE_SHA' rejected)" + exit 1 +fi +if [ "$REPO" != "$PINNED_REPO" ]; then + echo "::error::GITHUB_REPOSITORY must be '$PINNED_REPO' (attempted override to '$REPO' rejected)" + exit 1 +fi + +mode="" +case "${1:-}" in + --manifest-only) + mode="manifest-only" + ;; + --preflight) + mode="preflight" + ;; + --execute) + mode="execute" + ;; + --finish) + mode="finish" + ;; + --site-evidence) + mode="site-evidence" + evidence_out=${2:?--site-evidence needs an output directory} + ;; + *) + echo "::error::usage: reconcile-mac-release.sh (--execute | --finish | --manifest-only | --preflight | --site-evidence DIR)" + echo " --execute: Reconcile release-state with authorized release App token (mutating)" + echo " --finish: Record the live website manifest and finish publication (mutating)" + echo " --manifest-only: Generate website release.json from current recorded state (read-only)" + echo " --preflight: Check frozen candidate config and state machine without publishing" + exit 1 + ;; +esac + +here="$(cd "$(dirname "$0")" && pwd)" + +state_cmd="release-state.sh" +command -v "$state_cmd" >/dev/null 2>&1 || state_cmd="$here/release-state.sh" + +# Scratch storage policy enforcement: +# In CI: $RUNNER_TEMP is required. +# In local runs: scratch storage must genuinely reside on the mounted external T7 volume (/Volumes/T7Tmp/ai-dev). +# Fake mount points, unmounted volumes, and arbitrary non-T7 paths are strictly rejected. +scratch_base="" +if [ -n "${RUNNER_TEMP:-}" ]; then + scratch_base="$RUNNER_TEMP" +else + # 1. Verify /Volumes/T7Tmp is genuinely mounted and present in mount table + if ! mount | grep -E -q '[[:space:]]on /Volumes/T7Tmp[[:space:]]'; then + echo "::error::External T7 scratch volume (/Volumes/T7Tmp) is not mounted." + exit 1 + fi + # 2. Verify /Volumes/T7Tmp is an actual mount point, not a directory on internal root + if [ "$(df -P /Volumes/T7Tmp 2>/dev/null | awk 'NR==2{print $6}')" != "/Volumes/T7Tmp" ]; then + echo "::error::/Volumes/T7Tmp is not a mounted volume (detected fake mount-point directory on internal disk)." + exit 1 + fi + # 3. Verify external T7 health via t7run if available + if command -v t7run >/dev/null 2>&1; then + t7run --check || { echo "::error::T7 scratch storage verification (t7run --check) failed"; exit 1; } + fi + + # 4. Resolve candidate scratch directory + target_scratch="" + if [ -n "${T7_RUN_DIR:-}" ]; then + target_scratch="$T7_RUN_DIR" + elif [ -n "${TMPDIR:-}" ] && [[ "$TMPDIR" == /Volumes/T7Tmp/* ]]; then + target_scratch="$TMPDIR" + else + target_scratch="/Volumes/T7Tmp/ai-dev/tmp" + fi + + # 5. Ensure candidate directory exists or can be created + mkdir -p "$target_scratch" 2>/dev/null || { + echo "::error::Failed to create or access scratch directory '$target_scratch'" + exit 1 + } + + # 6. Verify canonical physical path (resolving symlinks) genuinely resides under /Volumes/T7Tmp/ai-dev + canonical_scratch=$(cd "$target_scratch" && pwd -P) + case "$canonical_scratch" in + /Volumes/T7Tmp/ai-dev | /Volumes/T7Tmp/ai-dev/*) + ;; + *) + echo "::error::Scratch path '$target_scratch' resolves to '$canonical_scratch', which is outside /Volumes/T7Tmp/ai-dev. Arbitrary scratch paths are rejected." + exit 1 + ;; + esac + + # 7. Verify the filesystem mount point of the canonical path is /Volumes/T7Tmp + scratch_mount=$(df -P "$canonical_scratch" 2>/dev/null | awk 'NR==2{print $6}') + if [ "$scratch_mount" != "/Volumes/T7Tmp" ]; then + echo "::error::Scratch path '$canonical_scratch' is mounted on '$scratch_mount', expected '/Volumes/T7Tmp'." + exit 1 + fi + + scratch_base="$canonical_scratch" +fi + +work=$(mktemp -d "$scratch_base/meow-reconcile.XXXXXX") +trap 'rm -rf "$work"' EXIT + +if { [ "$mode" = "execute" ] || [ "$mode" = "finish" ]; } && [ -z "${RELEASE_STATE_TOKEN:-}" ]; then + echo "::error::RELEASE_STATE_TOKEN is required to mutate the protected release-state branch (Ruleset 26251855)." + exit 1 +fi + +echo "=== MeowDisplay Release-State Reconciliation ===" +echo "Version: $VERSION" +echo "Candidate SHA: $CANDIDATE_SHA" +echo "Repository: $REPO" +echo "Mode: $mode" +echo "" + +root="$here/../.." +# An explicit refspec: the remote-tracking ref is updated whatever fetch +# refspec the checkout configured (actions/checkout, a shallow clone, a +# developer clone). The repository is public, so this read needs no +# credential; the checkout deliberately persists none. +fetch_release_state() { + git -C "$root" fetch -q --no-tags origin "+refs/heads/release-state:refs/remotes/origin/release-state" +} + +# Generic main config still requires Android; the frozen 2.1.0 candidate +# explicitly excludes Android. Always extract the config from that commit. +candidate_config="$work/approved-release-config.json" +git -C "$root" fetch -q --no-tags origin refs/heads/release/2.1.0 || { + echo "::error::Cannot fetch frozen release/2.1.0" + exit 1 +} +candidate_head=$(git -C "$root" rev-parse FETCH_HEAD) +[ "$candidate_head" = "$CANDIDATE_SHA" ] || { + echo "::error::release/2.1.0 moved to $candidate_head; expected $CANDIDATE_SHA" + exit 1 +} +git -C "$root" show "$CANDIDATE_SHA:.github/release-config.json" > "$candidate_config" || { + echo "::error::Cannot read frozen candidate release config" + exit 1 +} +jq -e '(.requiredPlatforms | sort) == ["ios","mac"] and (.excludedPlatforms | sort) == ["android"] and .ios.submitForReview == false' "$candidate_config" >/dev/null || { + echo "::error::Frozen candidate config must require mac + ios, exclude android, and disable iOS resubmission" + exit 1 +} +echo "✓ Approved candidate config verified: Mac + iOS; Android excluded" + +# Preflight the REAL publication state machine on an expendable copy, +# preventing the original post-publication reconciliation failure. +if [ "$mode" = "preflight" ]; then + fetch_release_state || { + echo "::error::Cannot fetch fresh release-state for preflight" + exit 1 + } + git -C "$root" show "origin/release-state:releases/$VERSION.json" > "$work/state-for-preflight.json" + "$here/meow-release" publish start "$work/state-for-preflight.json" \ + --config "$candidate_config" --branch-head "$CANDIDATE_SHA" || { + echo "::error::Publication state machine refuses recovery" + exit 1 + } + echo "✓ Read-only preflight passed; scratch state only" + exit 0 +fi + +# Mode: manifest-only (genuinely read-only) +if [ "$mode" = "manifest-only" ]; then + echo "1. Generating website manifest from current recorded release-state (read-only)..." + fetch_release_state || { + echo "::error::Failed to fetch origin/release-state from remote. Relying on stale local state is prohibited." + exit 1 + } + manifest_out="$work/release.json" + "$state_cmd" "$VERSION" publish website-manifest STATE \ + --config "$candidate_config" \ + --out "$manifest_out" + + cat "$manifest_out" + echo "" + echo "✓ Manifest generated successfully (read-only mode; zero state mutations performed)" + exit 0 +fi + +# Proves the public release is exactly the approved one before any state write. +verify_live_release() { + echo "1. Checking the live GitHub Release against the recorded artifacts..." + local release latest_tag tag_sha names want_names recorded_state + release=$(gh api "repos/$REPO/releases/$PINNED_RELEASE_ID") + [ "$(jq -r .tag_name <<< "$release")" = "v$VERSION" ] || { echo "::error::release $PINNED_RELEASE_ID is not tagged v$VERSION"; exit 1; } + [ "$(jq -r .draft <<< "$release")" = "false" ] || { + echo "::error::release $PINNED_RELEASE_ID (v$VERSION) is still a draft: nothing was published, so nothing is reconciled" + exit 1 + } + latest_tag=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) + [ "$latest_tag" = "v$VERSION" ] || { echo "::error::Latest release is '$latest_tag', expected 'v$VERSION'"; exit 1; } + tag_sha=$(gh api "repos/$REPO/commits/v$VERSION" --jq .sha) + [ "$tag_sha" = "$CANDIDATE_SHA" ] || { echo "::error::v$VERSION tag points to $tag_sha, expected candidate $CANDIDATE_SHA"; exit 1; } + + fetch_release_state || { echo "::error::Failed to fetch origin/release-state"; exit 1; } + recorded_state=$(git -C "$root" show "origin/release-state:releases/$VERSION.json") + # GitHub computes each asset's sha256 itself ("digest"); compare all five, + # by name, to the recorded Mac artifacts plus the pinned SHA256SUMS.txt. + names=$(jq -r '[.assets[] | "\(.name) \(.digest)"] | sort | join(",")' <<< "$release") + want_names=$(jq -r --arg sums "$PINNED_SHA256SUMS_DIGEST" \ + '[(.platforms.mac.artifacts[] | "\(.name) sha256:\(.sha256)"), "SHA256SUMS.txt sha256:\($sums)"] | sort | join(",")' <<< "$recorded_state") + [ "$names" = "$want_names" ] || { + echo "::error::live assets of v$VERSION are [$names], expected exactly [$want_names]" + exit 1 + } + echo "✓ v$VERSION is public and Latest at $CANDIDATE_SHA with exactly the five recorded assets" +} + +# Bot Fight Mode challenges GitHub-hosted runners on the site's HTML, JSON and +# XML (Cloudflare Security Events, run 43125145760); WAF skip rules cannot +# exempt a path from it. Only after such a challenge, production is proven by +# evidence the runner CAN observe. Every link is required: +# 1. The website repository's branch HEAD files (SITE_EVIDENCE_DIR, saved by +# --site-evidence in the read-only site-evidence job: the repository is +# private, and only the website App in website-update may read it). +# 2. That HEAD's manifest is exactly what release-state generates +# (publishedAt aside). +# 3. The PRODUCTION origin serves files Bot Fight Mode does not challenge +# (llms.txt, site.js) byte-identical to that HEAD: production serves this +# build, not an older, failed or rolled-back deployment. +# 4. LIVE_RELEASE_SHA256: the approver's own fetch of the production manifest +# (shasum -a 256) equals that HEAD's manifest byte for byte. +# Sets live_version. Anything missing or different stops before any write. +readonly PRODUCTION_PROBES="llms.txt site.js" +site_coordinates() { + site_repo=$(jq -r .website.repository "$candidate_config") + site_branch=$(jq -r '.website.branch // "main"' "$candidate_config") + [[ $site_repo =~ ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$ && $site_branch =~ ^[A-Za-z0-9._/-]+$ ]] || { echo "::error::bad website repository/branch"; exit 1; } + live_url=$(jq -r .website.liveUrl "$candidate_config") + [[ $live_url =~ ^(https://[A-Za-z0-9.-]+)/([A-Za-z0-9._/-]+\.json)$ ]] || { echo "::error::bad website.liveUrl '$live_url'"; exit 1; } + live_origin=${BASH_REMATCH[1]} + manifest_path=${BASH_REMATCH[2]} +} + +verify_site_via_production_evidence() { + local dir=${SITE_EVIDENCE_DIR:-} head want f got + [[ ${LIVE_RELEASE_SHA256:-} =~ ^[0-9a-f]{64}$ ]] || { + echo "::error::live_release_sha256 is required here: fetch $live_url yourself and pass its sha256 (curl -fsSL $live_url | shasum -a 256); nothing recorded" + exit 1 + } + [ -n "$dir" ] && [ -f "$dir/head" ] || { echo "::error::no website evidence (SITE_EVIDENCE_DIR); nothing recorded"; exit 1; } + head=$(cat "$dir/head") + [[ $head =~ ^[0-9a-f]{40}$ ]] || { echo "::error::bad website HEAD in the evidence; nothing recorded"; exit 1; } + echo " website evidence: $site_repo $site_branch HEAD $head" + + "$state_cmd" "$VERSION" publish website-manifest STATE --config "$candidate_config" --out "$work/expected-manifest.json" >/dev/null + [ "$(jq -S 'del(.publishedAt)' "$dir/$manifest_path")" = "$(jq -S 'del(.publishedAt)' "$work/expected-manifest.json")" ] || { + echo "::error::$site_repo@$head's $manifest_path is not what release-state describes; nothing recorded" + exit 1 + } + want=$(shasum -a 256 "$dir/$manifest_path" | cut -c1-64) + [ "$want" = "$LIVE_RELEASE_SHA256" ] || { + echo "::error::your production $manifest_path sha256 $LIVE_RELEASE_SHA256 is not $site_branch@${head:0:12}'s $want; nothing recorded" + exit 1 + } + echo " ✓ $site_branch's $manifest_path = release-state's manifest; sha256 $want = your production fetch" + + for f in $PRODUCTION_PROBES; do + [ -f "$dir/$f" ] || { echo "::error::website evidence lacks $f; nothing recorded"; exit 1; } + got=$(curl -sS --max-time 30 -o "$work/prod-$f" -w '%{http_code}' "$live_origin/$f?ts=$(date +%s)") || got=000 + [ "$got" = 200 ] || { echo "::error::production $live_origin/$f answered HTTP $got; production unverified, nothing recorded"; exit 1; } + cmp -s "$work/prod-$f" "$dir/$f" || { + echo "::error::production $live_origin/$f is not $site_branch@${head:0:12}'s (production serves another build?); nothing recorded" + exit 1 + } + echo " ✓ production $live_origin/$f = $site_branch@${head:0:12}" + done + live_version=$(jq -r .version "$dir/$manifest_path") +} + +# Mode: site-evidence (read-only): what --finish compares production with. +if [ "$mode" = "site-evidence" ]; then + site_coordinates + mkdir -p "$evidence_out" + head=$(gh api "repos/$site_repo/commits/$site_branch" --jq .sha) + [[ $head =~ ^[0-9a-f]{40}$ ]] || { echo "::error::cannot resolve $site_repo $site_branch"; exit 1; } + for f in "$manifest_path" $PRODUCTION_PROBES; do + mkdir -p "$evidence_out/$(dirname "$f")" + gh api -H "Accept: application/vnd.github.raw" "repos/$site_repo/contents/$f?ref=$head" > "$evidence_out/$f" + done + printf '%s\n' "$head" > "$evidence_out/head" + echo "✓ saved $site_repo@$head ($site_branch HEAD): $manifest_path $PRODUCTION_PROBES" + exit 0 +fi + +# Mode: finish (mutating): the website serves this version's release.json. +if [ "$mode" = "finish" ]; then + verify_live_release + current=$(git -C "$root" show "origin/release-state:releases/$VERSION.json") + if [ "$(jq -r .publication.stage <<< "$current")" = "published" ]; then + echo "✓ publication of $VERSION is already recorded as published; nothing to do" + exit 0 + fi + [ "$(jq -r .publication.stage <<< "$current")" = "in-progress" ] && [ "$(jq -r .platforms.mac.stage <<< "$current")" = "published" ] || { + echo "::error::finish needs publication in-progress with Mac published (run action=reconcile first); state is $(jq -c '{publication: .publication.stage, mac: .platforms.mac.stage}' <<< "$current")" + exit 1 + } + [[ ${PROMOTION_PR:-} =~ ^[0-9]*$ ]] || { echo "::error::PROMOTION_PR must be a pull request number"; exit 1; } + site_coordinates + code=$(curl -sS --max-time 30 -D "$work/live.headers" -o "$work/live.json" -w '%{http_code}' "$live_url?ts=$(date +%s)") || code=000 + if [ "$code" = 200 ]; then + live_version=$(jq -r .version "$work/live.json" 2>/dev/null || echo none) + echo "✓ $live_url fetched directly (version $live_version)" + elif [ "$code" = 403 ] && grep -qiE '^cf-mitigated:[[:space:]]*challenge' "$work/live.headers"; then + echo "$live_url answered this runner with a Cloudflare challenge (Bot Fight Mode cannot be skipped for it)." + verify_site_via_production_evidence + else + echo "::error::$live_url answered HTTP $code without a Cloudflare challenge; nothing recorded" + exit 1 + fi + [ "$live_version" = "$VERSION" ] || { + echo "::error::$live_url serves version '$live_version', not $VERSION; deploy the website first (nothing recorded)" + exit 1 + } + echo "2. Recording the live website manifest..." + "$state_cmd" "$VERSION" publish website-updated STATE \ + --config "$candidate_config" --url "$live_url" --live-version "$live_version" + echo "3. Finishing the publication..." + "$state_cmd" "$VERSION" publish finish STATE \ + --config "$candidate_config" ${PROMOTION_PR:+--pr "$PROMOTION_PR"} + fetch_release_state || { echo "::error::Failed to fetch origin/release-state after finishing"; exit 1; } + final=$(git -C "$root" show "origin/release-state:releases/$VERSION.json") + echo "publication: $(jq -c .publication <<< "$final")" + echo "website: $(jq -c .website <<< "$final")" + [ "$(jq -r .publication.stage <<< "$final")" = "published" ] || { + echo "::error::publication is '$(jq -r .publication.stage <<< "$final")', not published" + exit 1 + } + echo "✓ MeowDisplay $VERSION publication finished" + exit 0 +fi + +# Mode: execute (mutating) +verify_live_release + +# 2. Require release App token for state writes +echo "2. Checking release-state authorization..." +if [ -z "${RELEASE_STATE_TOKEN:-}" ]; then + echo "::error::RELEASE_STATE_TOKEN is required to mutate the protected release-state branch (Ruleset 26251855)." + echo "The release App (App ID 5582030) token must be minted in a protected environment." + exit 1 +fi + +# 3. Transition publication from 'failed' to 'in-progress' +echo "3. Restarting publication state from 'failed' to 'in-progress'..." +"$state_cmd" "$VERSION" publish start STATE \ + --config "$candidate_config" \ + --branch-head "$CANDIDATE_SHA" + +# 4. Advance Mac platform to 'published' +echo "4. Recording Mac platform publication in release-state..." +"$state_cmd" "$VERSION" publish mac-published STATE \ + --config "$candidate_config" \ + --url "https://github.com/$REPO/releases/tag/v$VERSION" + +# 5. iOS is already published, Android excluded. Do NOT invoke stores: +# that requires unnecessary App Store credentials and risks store actions. +echo "5. Keeping previously published iOS; no store operations" + +# 6. Generate accurate website manifest +echo "6. Generating website manifest release.json..." +manifest_out="$work/release.json" +"$state_cmd" "$VERSION" publish website-manifest STATE \ + --config "$candidate_config" \ + --out "$manifest_out" + +cat "$manifest_out" +echo "" + +# 7. Verify updated release-state on remote +echo "7. Verifying reconciled release-state..." +fetch_release_state || { + echo "::error::Failed to fetch origin/release-state after reconciliation" + exit 1 +} +new_state=$(git -C "$root" show origin/release-state:releases/"$VERSION".json) +pub_stage=$(jq -r .publication.stage <<< "$new_state") +mac_stage=$(jq -r .platforms.mac.stage <<< "$new_state") +ios_stage=$(jq -r .platforms.ios.stage <<< "$new_state") + +[ "$pub_stage" = "in-progress" ] || { echo "::error::publication stage is '$pub_stage', expected 'in-progress'"; exit 1; } +[ "$mac_stage" = "published" ] || { echo "::error::Mac stage is '$mac_stage', expected 'published'"; exit 1; } +[ "$ios_stage" = "published" ] || { echo "::error::iOS stage is '$ios_stage', expected 'published'"; exit 1; } + +echo "✓ release-state successfully reconciled:" +echo " - platforms.mac: published" +echo " - platforms.ios: published" +echo " - publication: in-progress (ready for website deploy and source promotion)" +echo "" +echo "Next step: deploy release.json on the website, then run this workflow with action=finish." diff --git a/scripts/release/recover-mac-release.sh b/scripts/release/recover-mac-release.sh new file mode 100755 index 000000000..a7f12b0e0 --- /dev/null +++ b/scripts/release/recover-mac-release.sh @@ -0,0 +1,385 @@ +#!/usr/bin/env bash +# recover-mac-release.sh: Safely verify and recover a Mac release from an immutable draft. +# +# Usage: +# recover-mac-release.sh [--verify | --publish] +# +# Modes: +# --verify (default) Download draft assets, verify SHA-256 hashes against approved +# release-state records, and verify Developer ID code signing, Gatekeeper +# notarization, stapled tickets, designated requirements, and Sparkle feed +# Ed25519 signatures against the published baseline public key. +# Local execution is strictly verification-only. +# --publish Perform all verifications, publish the draft as Latest, verify live feeds, +# and auto-revert with verified rollback on live feed verification failure. +# Publication is permitted ONLY within GitHub Actions using the protected +# 'release-publish' environment with required reviewers. +# +# Security & Safety: +# - Pinned strictly to exact VERSION (2.1.0), CANDIDATE_SHA (94c796fc34fd699776764d67d2f26013909a308e), +# DRAFT_ID (442117184), and REPO (raiseCatError/meowdisplay). Overrides are rejected. +# - Fail-closed: refuses to execute if any argument or live state deviates. +# - Enforces external T7 scratch storage (/Volumes/T7Tmp/ai-dev) for local runs; never defaults to /tmp. +# - Verified rollback: if publication occurs but live feeds fail to propagate within 5 minutes, +# Latest is restored to previous release and v2.1.0 is returned to draft, verifying both actions. +# Rollback limits: the v2.1.0 tag created at publication stays (the tag ruleset forbids +# deletion), and clients that fetched the feed while it was live may already have updated. +# - A release that is already public is never published or rolled back again from here: +# the workflow's action=reconcile verifies it live and records it. +# - Release-state reconciliation: requires the authorized release App token (contents: write). +set -euo pipefail + +readonly PINNED_VERSION="2.1.0" +readonly PINNED_CANDIDATE_SHA="94c796fc34fd699776764d67d2f26013909a308e" +readonly PINNED_DRAFT_ID="442117184" +readonly PINNED_REPO="raiseCatError/meowdisplay" +readonly PINNED_SHA256SUMS_DIGEST="279e22555e9a84a4fc59bd7d529f4efca6ccf2a8c986ac9fc939d627368bc1b7" + +# Reject any attempt to supply differing inputs +if [ -n "${VERSION:-}" ] && [ "$VERSION" != "$PINNED_VERSION" ]; then + echo "::error::VERSION must be '$PINNED_VERSION' (attempted override to '$VERSION' rejected)" + exit 1 +fi +if [ -n "${CANDIDATE_SHA:-}" ] && [ "$CANDIDATE_SHA" != "$PINNED_CANDIDATE_SHA" ]; then + echo "::error::CANDIDATE_SHA must be '$PINNED_CANDIDATE_SHA' (attempted override to '$CANDIDATE_SHA' rejected)" + exit 1 +fi +if [ -n "${DRAFT_ID:-}" ] && [ "$DRAFT_ID" != "$PINNED_DRAFT_ID" ]; then + echo "::error::DRAFT_ID must be '$PINNED_DRAFT_ID' (attempted override to '$DRAFT_ID' rejected)" + exit 1 +fi +if [ -n "${GITHUB_REPOSITORY:-}" ] && [ "$GITHUB_REPOSITORY" != "$PINNED_REPO" ]; then + echo "::error::GITHUB_REPOSITORY must be '$PINNED_REPO' (attempted override to '$GITHUB_REPOSITORY' rejected)" + exit 1 +fi + +VERSION="$PINNED_VERSION" +CANDIDATE_SHA="$PINNED_CANDIDATE_SHA" +DRAFT_ID="$PINNED_DRAFT_ID" +REPO="$PINNED_REPO" +export GITHUB_REPOSITORY="$REPO" +EXPECTED_SHA256SUMS_DIGEST="$PINNED_SHA256SUMS_DIGEST" + +mode="verify" +if [ "${1:-}" = "--publish" ]; then + mode="publish" +elif [ -n "${1:-}" ] && [ "${1:-}" != "--verify" ]; then + echo "::error::unknown option '${1:-}' (usage: recover-mac-release.sh [--verify | --publish])" + exit 1 +fi + +echo "=== MeowDisplay Mac Release Recovery ===" +echo "Version: $VERSION" +echo "Candidate SHA: $CANDIDATE_SHA" +echo "Draft ID: $DRAFT_ID" +echo "Mode: $mode" +echo "Repository: $REPO" +echo "" + +here="$(cd "$(dirname "$0")" && pwd)" + +# Publication gate: Local execution is strictly verification-only. +# Publication MUST run inside GitHub Actions within the protected release-publish environment with required reviewers. +if [ "$mode" = "publish" ]; then + if [ "${GITHUB_ACTIONS:-false}" != "true" ]; then + echo "::error::Local execution is verification-only (--verify). Publication is permitted ONLY within GitHub Actions using the protected 'release-publish' environment with required reviewers." + exit 1 + fi + if [ -z "${GITHUB_RUN_ID:-}" ]; then + echo "::error::GITHUB_RUN_ID is not set. Publication must run within an active GitHub Actions workflow run." + exit 1 + fi + + "$here/check-environment.sh" release-publish --require-reviewers || { + echo "::error::Execution environment 'release-publish' is not protected with required reviewers." + exit 1 + } + + approvals_json=$(gh api "repos/$REPO/actions/runs/$GITHUB_RUN_ID/approvals" 2>/dev/null || echo "[]") + is_approved=$(jq -r '[.[] | select(.environments[].name == "release-publish" and .state == "approved")] | length > 0' <<< "$approvals_json") + if [ "$is_approved" != "true" ]; then + echo "::error::Current GitHub Actions run $GITHUB_RUN_ID has not received human approval for 'release-publish' from required reviewers." + exit 1 + fi + echo "✓ Verified human approval for 'release-publish' on GitHub Actions run $GITHUB_RUN_ID" +fi + +# Scratch storage policy enforcement: +# In CI: $RUNNER_TEMP is required. +# In local runs: scratch storage must genuinely reside on the mounted external T7 volume (/Volumes/T7Tmp/ai-dev). +# Fake mount points, unmounted volumes, and arbitrary non-T7 paths are strictly rejected. +scratch_base="" +if [ -n "${RUNNER_TEMP:-}" ]; then + scratch_base="$RUNNER_TEMP" +else + # 1. Verify /Volumes/T7Tmp is genuinely mounted and present in mount table + if ! mount | grep -E -q '[[:space:]]on /Volumes/T7Tmp[[:space:]]'; then + echo "::error::External T7 scratch volume (/Volumes/T7Tmp) is not mounted." + exit 1 + fi + # 2. Verify /Volumes/T7Tmp is an actual mount point, not a directory on internal root + if [ "$(df -P /Volumes/T7Tmp 2>/dev/null | awk 'NR==2{print $6}')" != "/Volumes/T7Tmp" ]; then + echo "::error::/Volumes/T7Tmp is not a mounted volume (detected fake mount-point directory on internal disk)." + exit 1 + fi + # 3. Verify external T7 health via t7run if available + if command -v t7run >/dev/null 2>&1; then + t7run --check || { echo "::error::T7 scratch storage verification (t7run --check) failed"; exit 1; } + fi + + # 4. Resolve candidate scratch directory + target_scratch="" + if [ -n "${T7_RUN_DIR:-}" ]; then + target_scratch="$T7_RUN_DIR" + elif [ -n "${TMPDIR:-}" ] && [[ "$TMPDIR" == /Volumes/T7Tmp/* ]]; then + target_scratch="$TMPDIR" + else + target_scratch="/Volumes/T7Tmp/ai-dev/tmp" + fi + + # 5. Ensure candidate directory exists or can be created + mkdir -p "$target_scratch" 2>/dev/null || { + echo "::error::Failed to create or access scratch directory '$target_scratch'" + exit 1 + } + + # 6. Verify canonical physical path (resolving symlinks) genuinely resides under /Volumes/T7Tmp/ai-dev + canonical_scratch=$(cd "$target_scratch" && pwd -P) + case "$canonical_scratch" in + /Volumes/T7Tmp/ai-dev | /Volumes/T7Tmp/ai-dev/*) + ;; + *) + echo "::error::Scratch path '$target_scratch' resolves to '$canonical_scratch', which is outside /Volumes/T7Tmp/ai-dev. Arbitrary scratch paths are rejected." + exit 1 + ;; + esac + + # 7. Verify the filesystem mount point of the canonical path is /Volumes/T7Tmp + scratch_mount=$(df -P "$canonical_scratch" 2>/dev/null | awk 'NR==2{print $6}') + if [ "$scratch_mount" != "/Volumes/T7Tmp" ]; then + echo "::error::Scratch path '$canonical_scratch' is mounted on '$scratch_mount', expected '/Volumes/T7Tmp'." + exit 1 + fi + + scratch_base="$canonical_scratch" +fi + +work=$(mktemp -d "$scratch_base/meow-recover.XXXXXX") +trap 'rm -rf "$work"' EXIT + +# 1. Inspect live draft release +echo "1. Checking draft release identity..." +gh api "repos/$REPO/releases/$DRAFT_ID" > "$work/draft.json" +tag_name=$(jq -r .tag_name "$work/draft.json") +is_draft=$(jq -r .draft "$work/draft.json") +target_commitish=$(jq -r .target_commitish "$work/draft.json") + +[ "$tag_name" = "v$VERSION" ] || { echo "::error::draft tag is '$tag_name', expected 'v$VERSION'"; exit 1; } +if [ "$is_draft" = "false" ]; then + # Post-publication, not pre-publication: never publish or roll back again + # from here. Reconcile verifies the live release before recording it. + echo "::error::release $DRAFT_ID (v$VERSION) is already public (draft=false). Do not re-run publish: run this workflow with action=reconcile, which verifies the live release and records it in release-state." + exit 1 +fi +[ "$is_draft" = "true" ] || { echo "::error::release $DRAFT_ID is not a draft (draft=$is_draft)"; exit 1; } +[ "$target_commitish" = "$CANDIDATE_SHA" ] || { echo "::error::target_commitish is '$target_commitish', expected '$CANDIDATE_SHA'"; exit 1; } +echo "✓ Draft $DRAFT_ID targets approved candidate $CANDIDATE_SHA" + +# 2. Confirm iOS is already published (fail-closed on fetch failure, no stale state) +echo "2. Confirming iOS release status in release-state..." +# Explicit refspec: updates origin/release-state whatever fetch refspec the +# checkout configured. The repository is public; no credential is needed. +git -C "$here/../.." fetch -q --no-tags origin "+refs/heads/release-state:refs/remotes/origin/release-state" || { + echo "::error::Failed to fetch origin/release-state from remote. Relying on stale local state is prohibited." + exit 1 +} +state_content=$(git -C "$here/../.." show origin/release-state:releases/"$VERSION".json) || { + echo "::error::releases/$VERSION.json not found on origin/release-state" + exit 1 +} +ios_stage=$(jq -r .platforms.ios.stage <<< "$state_content") +ios_store=$(jq -r .platforms.ios.storeState <<< "$state_content") +ios_sha=$(jq -r .platforms.ios.sha <<< "$state_content") +[ "$ios_stage" = "published" ] || { echo "::error::iOS is not published (stage=$ios_stage)"; exit 1; } +[ "$ios_store" = "READY_FOR_DISTRIBUTION" ] || { echo "::error::iOS storeState is '$ios_store', expected READY_FOR_DISTRIBUTION"; exit 1; } +[ "$ios_sha" = "$CANDIDATE_SHA" ] || { echo "::error::iOS sha '$ios_sha' does not match candidate '$CANDIDATE_SHA'"; exit 1; } +echo "✓ iOS $VERSION is published ($ios_store) against candidate $CANDIDATE_SHA" + +# 3. Check exact 5 assets +echo "3. Checking draft assets list with deterministic ASCII collation..." +actual_names=$(jq -r '[.assets[].name] | sort | join(" ")' "$work/draft.json") +expected_names=$(printf '%s\n' MeowDisplay.dmg MeowDisplayReceiver.dmg SHA256SUMS.txt appcast.xml appcast-receiver.xml | LC_ALL=C sort | paste -sd' ' -) +[ "$actual_names" = "$expected_names" ] || { echo "::error::draft assets are '$actual_names', expected '$expected_names'"; exit 1; } +echo "✓ Draft contains exactly the 5 expected assets in byte-order" + +# 4. Download and verify draft assets +echo "4. Downloading draft assets and checking SHA-256 digests..." +mkdir -p "$work/draft" +gh release download "v$VERSION" -R "$REPO" -D "$work/draft" + +# 4a. Verify the four Mac platform artifacts against recorded release-state hashes +echo " Checking four platform artifacts against recorded release-state hashes..." +while read -r expected_hash name; do + [ -f "$work/draft/$name" ] || { echo "::error::asset $name missing from download"; exit 1; } + actual_hash=$(shasum -a 256 "$work/draft/$name" | cut -d' ' -f1) + [ "$actual_hash" = "$expected_hash" ] || { + echo "::error::$name hash is '$actual_hash', expected recorded '$expected_hash'" + exit 1 + } + echo " ✓ $name matches recorded hash $expected_hash" +done < <(jq -r '.platforms.mac.artifacts[] | "\(.sha256) \(.name)"' <<< "$state_content") + +# 4b. Verify the fifth asset (SHA256SUMS.txt) against independently pinned digest +echo " Checking SHA256SUMS.txt against independently pinned digest..." +[ -f "$work/draft/SHA256SUMS.txt" ] || { echo "::error::SHA256SUMS.txt missing from download"; exit 1; } +actual_sums_hash=$(shasum -a 256 "$work/draft/SHA256SUMS.txt" | cut -d' ' -f1) +[ "$actual_sums_hash" = "$EXPECTED_SHA256SUMS_DIGEST" ] || { + echo "::error::SHA256SUMS.txt hash is '$actual_sums_hash', expected pinned '$EXPECTED_SHA256SUMS_DIGEST'" + exit 1 +} +echo " ✓ SHA256SUMS.txt matches independently pinned digest $EXPECTED_SHA256SUMS_DIGEST" + +# 4c. Verify internal consistency: SHA256SUMS.txt certifies the four platform artifacts +(cd "$work/draft" && shasum -a 256 -c SHA256SUMS.txt) || { + echo "::error::SHA256SUMS.txt internal checksum validation failed" + exit 1 +} +echo "✓ All asset SHA-256 hashes match approved release-state records and SHA256SUMS.txt" + +# 5. Baseline and Mac app / Sparkle feed verification +echo "5. Verifying signing, notarization, version, build, and Sparkle feeds against baseline..." +. "$here/baseline.env" + +baseline_cmd="published-baseline.sh" +command -v "$baseline_cmd" >/dev/null 2>&1 || baseline_cmd="$here/published-baseline.sh" +check_build_cmd="check-build-number.sh" +command -v "$check_build_cmd" >/dev/null 2>&1 || check_build_cmd="$here/check-build-number.sh" +verify_mac_cmd="verify-mac-artifact.sh" +command -v "$verify_mac_cmd" >/dev/null 2>&1 || verify_mac_cmd="$here/verify-mac-artifact.sh" +verify_feed_cmd="verify-feed.sh" +command -v "$verify_feed_cmd" >/dev/null 2>&1 || verify_feed_cmd="$here/verify-feed.sh" + +"$baseline_cmd" "$work/baseline" + +for role in sender receiver; do + select_app "$role" + echo "--- Verifying $role ($DMG) ---" + "$check_build_cmd" "$VERSION" "$LIVE_FEED_BASE/$FEED" + "$verify_mac_cmd" "$work/draft/$DMG" "$role" "$VERSION" "$VERSION" "$work/baseline" + echo "--- Verifying Feed ($FEED) ---" + "$verify_feed_cmd" "$work/draft/$FEED" "$work/draft/$DMG" "$(cat "$work/baseline/$role.key")" "$VERSION" "$VERSION" \ + "https://github.com/$REPO/releases/download/v$VERSION/$DMG" +done +echo "✓ All Mac binaries, Gatekeeper, notarization, and Sparkle feed signatures verified" + +if [ "$mode" = "verify" ]; then + echo "" + echo "=================================================================" + echo "VERIFICATION PASSED: Draft v$VERSION is safe and ready to publish." + echo "Local execution complete (verification-only)." + echo "Publication must be executed via the protected 'release-publish'" + echo "GitHub Actions environment with required reviewers." + echo "=================================================================" + exit 0 +fi + +# Mode is publish (running inside protected GitHub Actions environment) +echo "" +echo "6. Publishing draft release as Latest..." +previous_latest=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) +if [ -z "$previous_latest" ] || [ "$previous_latest" = "null" ] || [ "$previous_latest" = "v$VERSION" ]; then + echo "::error::Could not determine valid previous Latest release before publication (got '$previous_latest')" + exit 1 +fi + +# Re-check live draft immediately before publication +gh api "repos/$REPO/releases/$DRAFT_ID" > "$work/final_check.json" +[ "$(jq -r .draft "$work/final_check.json")" = "true" ] || { echo "::error::draft status changed"; exit 1; } +[ "$(jq -r .target_commitish "$work/final_check.json")" = "$CANDIDATE_SHA" ] || { echo "::error::target_commitish changed"; exit 1; } + +rollback() { + echo "::error::Publish step failed. Initiating rollback..." + local revert_latest_ok=false + local revert_draft_ok=false + + # 1. Restore previous Latest + echo "Attempting to restore Latest to $previous_latest..." + if gh release edit "$previous_latest" --latest -R "$REPO"; then + current_latest=$(gh api "repos/$REPO/releases/latest" --jq .tag_name 2>/dev/null || echo "") + if [ "$current_latest" = "$previous_latest" ]; then + revert_latest_ok=true + echo "✓ Latest successfully restored to $previous_latest" + else + echo "::error::Latest check after revert returned '$current_latest', expected '$previous_latest'" + fi + else + echo "::error::Failed to execute 'gh release edit $previous_latest --latest'" + fi + + # 2. Return draft release back to draft=true + echo "Attempting to return release v$VERSION (ID $DRAFT_ID) to draft=true..." + if gh release edit "v$VERSION" --draft=true -R "$REPO"; then + draft_status=$(gh api "repos/$REPO/releases/$DRAFT_ID" --jq .draft 2>/dev/null || echo "") + if [ "$draft_status" = "true" ]; then + revert_draft_ok=true + echo "✓ Release v$VERSION (ID $DRAFT_ID) successfully returned to draft" + else + echo "::error::Draft status check after revert returned '$draft_status', expected 'true'" + fi + else + echo "::error::Failed to execute 'gh release edit v$VERSION --draft=true'" + fi + + # Explicit reporting on failure modes + if $revert_latest_ok && $revert_draft_ok; then + echo "::error::Rollback succeeded: v$VERSION (ID $DRAFT_ID) returned to draft; $previous_latest restored as Latest." + else + echo "::error::PARTIAL ROLLBACK FAILURE: revert_latest=$revert_latest_ok, revert_draft=$revert_draft_ok" + fi + exit 1 +} +trap rollback ERR + +gh release edit "v$VERSION" --draft=false --latest -R "$REPO" + +echo "7. Verifying published tag and Latest status..." +tagged_sha=$(gh api "repos/$REPO/commits/v$VERSION" --jq .sha) +# Every failure from here on happens AFTER the release went public: each one +# goes through rollback (a bare `exit` would skip the ERR trap and leave an +# unverified release as Latest). +[ "$tagged_sha" = "$CANDIDATE_SHA" ] || { echo "::error::tag v$VERSION points to $tagged_sha, not $CANDIDATE_SHA"; rollback; } + +latest_tag=$(gh api "repos/$REPO/releases/latest" --jq .tag_name) +[ "$latest_tag" = "v$VERSION" ] || { echo "::error::Latest is $latest_tag, expected v$VERSION"; rollback; } + +echo "8. Verifying live feeds serve v$VERSION..." +live_ok() { + for feed in "$SENDER_FEED" "$RECEIVER_FEED"; do + want=$(shasum -a 256 "$work/draft/$feed" | cut -c1-64) + for url in "https://github.com/$REPO/releases/latest/download/$feed" "$LIVE_FEED_BASE/$feed"; do + got=$(curl -fsSL --max-time 30 "$url" | shasum -a 256 | cut -c1-64) || return 1 + [ "$got" = "$want" ] || return 1 + done + done +} + +success=false +for attempt in 1 2 3 4 5 6 7 8 9 10; do + echo "Checking live feeds (attempt $attempt/10)..." + if live_ok; then success=true; echo "Live feeds serve v$VERSION!"; break; fi + sleep "${FEED_POLL_SLEEP:-30}" +done + +if [ "$success" != "true" ]; then + echo "::error::Live feeds did not serve v$VERSION after 5 minutes" + rollback +fi + +trap - ERR + +echo "" +echo "=================================================================" +echo "SUCCESS: MeowDisplay Mac $VERSION is published and live!" +echo "Tag v$VERSION is Latest pointing to $CANDIDATE_SHA." +echo "Live Sparkle feeds serve verified v$VERSION." +echo "=================================================================" diff --git a/scripts/release/test/draft_asset_sorting_test.rb b/scripts/release/test/draft_asset_sorting_test.rb new file mode 100644 index 000000000..436015b92 --- /dev/null +++ b/scripts/release/test/draft_asset_sorting_test.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true + +require "minitest/autorun" +require "open3" + +class DraftAssetSortingTest < Minitest::Test + # The five assets produced by Mac packaging and expected in the release draft: + ASSETS = %w[ + MeowDisplay.dmg + MeowDisplayReceiver.dmg + appcast.xml + appcast-receiver.xml + SHA256SUMS.txt + ].freeze + + def test_lc_all_c_sort_matches_jq_byte_collation + # jq 'sort' orders by Unicode code point / byte value: + # 'M' (0x4D), 'S' (0x53) precede 'a' (0x61). + jq_sorted = %w[ + MeowDisplay.dmg + MeowDisplayReceiver.dmg + SHA256SUMS.txt + appcast-receiver.xml + appcast.xml + ] + + out, status = Open3.capture2({ "LC_ALL" => "C" }, "sort", stdin_data: ASSETS.join("\n") + "\n") + assert status.success? + c_sorted = out.lines.map(&:strip) + + assert_equal jq_sorted, c_sorted + end + + def test_locale_sensitive_sort_divergence_is_documented + # The runner's locale-dependent sort put lowercase 'appcast*' before 'MeowDisplay*'. + # LC_ALL=C is required to guarantee deterministic comparison against jq's output. + c_out, _ = Open3.capture2({ "LC_ALL" => "C" }, "sort", stdin_data: ASSETS.join("\n") + "\n") + c_sorted = c_out.lines.map(&:strip) + + assert_equal "MeowDisplay.dmg", c_sorted.first + assert_equal "appcast.xml", c_sorted.last + end +end diff --git a/scripts/release/test/fixtures/release-state-2.1.0-failed.json b/scripts/release/test/fixtures/release-state-2.1.0-failed.json new file mode 100644 index 000000000..f05cbefde --- /dev/null +++ b/scripts/release/test/fixtures/release-state-2.1.0-failed.json @@ -0,0 +1,204 @@ +{ + "schema": 1, + "version": "2.1.0", + "branch": "release/2.1.0", + "mode": "manual-final-approval", + "requiredPlatforms": [ + "mac", + "ios" + ], + "excludedPlatforms": [ + "android" + ], + "candidate": { + "sha": "94c796fc34fd699776764d67d2f26013909a308e", + "runId": 42720735729, + "createdAt": "2026-11-09T23:28:46Z" + }, + "superseded": [ + { + "sha": "df0fef73a182bc51aafb783a1e98d339b8624e45", + "at": "2026-11-09T23:28:46Z", + "platforms": { + "mac": { + "stage": "failed", + "sha": "df0fef73a182bc51aafb783a1e98d339b8624e45", + "blockers": "Mac pipeline skipped (run 42710323487)", + "updatedAt": "2026-11-09T22:19:00Z" + }, + "ios": { + "stage": "uploaded", + "sha": "df0fef73a182bc51aafb783a1e98d339b8624e45", + "build": 1, + "ipaSha256": "c5759e6720bb2b531a33c38ae9fddf59965ac554320b5aef26e4c066eccccf1b", + "runId": 42710323487, + "blockers": [], + "updatedAt": "2026-11-09T22:26:02Z" + }, + "android": { + "stage": "pending", + "sha": "df0fef73a182bc51aafb783a1e98d339b8624e45" + } + } + } + ], + "platforms": { + "mac": { + "stage": "approved", + "sha": "94c796fc34fd699776764d67d2f26013909a308e", + "build": "2.1.0", + "runId": 42720735729, + "artifacts": [ + { + "name": "MeowDisplay.dmg", + "sha256": "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" + }, + { + "name": "MeowDisplayReceiver.dmg", + "sha256": "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" + }, + { + "name": "appcast-receiver.xml", + "sha256": "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" + }, + { + "name": "appcast.xml", + "sha256": "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" + } + ], + "blockers": [], + "updatedAt": "2026-11-09T23:46:00Z" + }, + "ios": { + "stage": "published", + "sha": "94c796fc34fd699776764d67d2f26013909a308e", + "build": 2, + "ipaSha256": "2bd9382b0298cf5d184d9d18ddec6e0358385d446d0b34d6326c409e88af4269", + "runId": 42720735729, + "blockers": [], + "updatedAt": "2026-11-11T19:16:38Z", + "storeState": "READY_FOR_DISTRIBUTION", + "listingVersion": "2.1.0" + }, + "android": { + "stage": "pending", + "sha": "94c796fc34fd699776764d67d2f26013909a308e" + } + }, + "website": { + "stage": "pending" + }, + "publication": { + "stage": "failed", + "sha": "94c796fc34fd699776764d67d2f26013909a308e", + "startedAt": "2026-11-11T19:21:53Z", + "updatedAt": "2026-11-11T19:22:47Z", + "reason": "Mac publication stopped before going live (run 43085872196)", + "reverted": false + }, + "events": [ + { + "at": "2026-11-09T22:16:26Z", + "event": "created" + }, + { + "at": "2026-11-09T22:16:28Z", + "event": "candidate", + "sha": "df0fef73a182bc51aafb783a1e98d339b8624e45", + "runId": 42710323487 + }, + { + "at": "2026-11-09T22:19:00Z", + "event": "platform", + "platform": "mac", + "from": "pending", + "to": "failed" + }, + { + "at": "2026-11-09T22:25:57Z", + "event": "platform", + "platform": "ios", + "from": "pending", + "to": "built" + }, + { + "at": "2026-11-09T22:26:00Z", + "event": "platform", + "platform": "ios", + "from": "built", + "to": "signed" + }, + { + "at": "2026-11-09T22:26:02Z", + "event": "platform", + "platform": "ios", + "from": "signed", + "to": "uploaded" + }, + { + "at": "2026-11-09T23:28:46Z", + "event": "candidate", + "sha": "94c796fc34fd699776764d67d2f26013909a308e", + "runId": 42720735729 + }, + { + "at": "2026-11-09T23:39:23Z", + "event": "platform", + "platform": "ios", + "from": "pending", + "to": "built" + }, + { + "at": "2026-11-09T23:39:24Z", + "event": "platform", + "platform": "ios", + "from": "built", + "to": "signed" + }, + { + "at": "2026-11-09T23:39:26Z", + "event": "platform", + "platform": "ios", + "from": "signed", + "to": "uploaded" + }, + { + "at": "2026-11-09T23:45:55Z", + "event": "platform", + "platform": "mac", + "from": "pending", + "to": "signed" + }, + { + "at": "2026-11-09T23:45:57Z", + "event": "platform", + "platform": "mac", + "from": "signed", + "to": "uploaded" + }, + { + "at": "2026-11-09T23:46:00Z", + "event": "platform", + "platform": "mac", + "from": "uploaded", + "to": "approved" + }, + { + "at": "2026-11-11T19:16:38Z", + "event": "platform", + "platform": "ios", + "from": "uploaded", + "to": "published" + }, + { + "at": "2026-11-11T19:21:53Z", + "event": "publication", + "to": "in-progress" + }, + { + "at": "2026-11-11T19:22:47Z", + "event": "publication", + "to": "failed" + } + ] +} diff --git a/scripts/release/test/recover_mac_release_test.rb b/scripts/release/test/recover_mac_release_test.rb new file mode 100644 index 000000000..0a4856034 --- /dev/null +++ b/scripts/release/test/recover_mac_release_test.rb @@ -0,0 +1,1242 @@ +# frozen_string_literal: true + +require_relative "test_helper" +require "open3" +require "tmpdir" +require "fileutils" +require "json" + +class RecoverMacReleaseTest < Minitest::Test + SCRIPT = File.expand_path("../recover-mac-release.sh", __dir__) + RECONCILE_SCRIPT = File.expand_path("../reconcile-mac-release.sh", __dir__) + VALID_SHA = "94c796fc34fd699776764d67d2f26013909a308e" + VALID_DRAFT_ID = "442117184" + EXPECTED_SUMS_HASH = "279e22555e9a84a4fc59bd7d529f4efca6ccf2a8c986ac9fc939d627368bc1b7" + DMG1_HASH = "d02273969b8a00fc7269f69ab6440bae92028bcb55b9e5f4765cb5d925e8c316" + DMG2_HASH = "4981863429e85dacf916287e466867ff1c38c838bc364c0ae483739b8d17eaf7" + FEED1_HASH = "b97d8bdddec17083407dbc08bc23052b84d6d3f7440ddfd6e4443d78f50548d5" + FEED2_HASH = "306cd1cbc1f415bf7668892be261907ea66f0a381a56b7f6921c3e6758f36609" + + def with_scratch_dir + base = File.directory?("/Volumes/T7Tmp/ai-dev/tmp") ? "/Volumes/T7Tmp/ai-dev/tmp" : Dir.tmpdir + Dir.mktmpdir("recover-test-", base) do |dir| + yield dir + end + end + + def run_recovery(args = [], env = {}) + default_env = { + "GH_TOKEN" => "mock-token", + "FEED_POLL_SLEEP" => "0" + } + Open3.capture3(default_env.merge(env), SCRIPT, *args) + end + + def run_reconcile(args = [], env = {}) + default_env = { + "GH_TOKEN" => "mock-token" + } + Open3.capture3(default_env.merge(env), RECONCILE_SCRIPT, *args) + end + + RECORDED_ARTIFACTS = [ + ["MeowDisplay.dmg", DMG1_HASH], ["MeowDisplayReceiver.dmg", DMG2_HASH], + ["appcast-receiver.xml", FEED2_HASH], ["appcast.xml", FEED1_HASH] + ].freeze + RECORDED_ARTIFACTS_JSON = RECORDED_ARTIFACTS.map { |n, h| { "name" => n, "sha256" => h } }.to_json + + # The GitHub API as seen after publication: release 442117184 public, + # Latest, tagged at the candidate, with GitHub's own asset digests. + def live_release_json(draft: false, overrides: {}) + assets = (RECORDED_ARTIFACTS + [["SHA256SUMS.txt", EXPECTED_SUMS_HASH]]).map do |name, hash| + { "name" => name, "digest" => "sha256:#{overrides.fetch(name, hash)}" } + end + { "id" => 442_117_184, "tag_name" => "v2.1.0", "draft" => draft, "target_commitish" => VALID_SHA, + "assets" => assets }.to_json + end + + def write_live_release_gh(bin_dir, latest: "v2.1.0", release_json: live_release_json, log: nil) + File.write(File.join(bin_dir, "release.json.mock"), release_json) + gh = File.join(bin_dir, "gh") + File.write(gh, <<~SH) + #!/usr/bin/env bash + #{log ? "echo \"gh $*\" >> '#{log}'" : ''} + case "$*" in + *"releases/latest"*) echo '#{latest}' ;; + *"commits/v2.1.0"*) echo '#{VALID_SHA}' ;; + "api repos/raiseCatError/meowdisplay/releases/442117184") cat '#{bin_dir}/release.json.mock' ;; + *) echo "unexpected gh $*" >&2; exit 1 ;; + esac + SH + FileUtils.chmod(0o755, gh) + end + + def test_input_pinning_rejects_differing_version_or_sha_or_draft_or_repo + out, err, status = Open3.capture3({ "VERSION" => "2.2.0" }, SCRIPT) + refute status.success? + assert_includes err + out, "VERSION must be '2.1.0'" + assert_includes err + out, "rejected" + + out, err, status = Open3.capture3({ "CANDIDATE_SHA" => "1111111111111111111111111111111111111111" }, SCRIPT) + refute status.success? + assert_includes err + out, "CANDIDATE_SHA must be '94c796fc34fd699776764d67d2f26013909a308e'" + assert_includes err + out, "rejected" + + out, err, status = Open3.capture3({ "DRAFT_ID" => "99999999" }, SCRIPT) + refute status.success? + assert_includes err + out, "DRAFT_ID must be '442117184'" + assert_includes err + out, "rejected" + + out, err, status = Open3.capture3({ "GITHUB_REPOSITORY" => "other/repo" }, SCRIPT) + refute status.success? + assert_includes err + out, "GITHUB_REPOSITORY must be 'raiseCatError/meowdisplay'" + assert_includes err + out, "rejected" + end + + def test_local_execution_refuses_publish_mode + env = { + "GITHUB_ACTIONS" => "false", + "GITHUB_RUN_ID" => "" + } + out, err, status = Open3.capture3(env, SCRIPT, "--publish") + refute status.success? + assert_includes err + out, "Local execution is verification-only (--verify)" + assert_includes err + out, "release-publish" + end + + def test_unapproved_github_actions_run_refuses_publication + with_scratch_dir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~'SH') + #!/usr/bin/env bash + case "$*" in + *"check-environment"*) + exit 0 + ;; + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[]' + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir + } + out, err, status = Open3.capture3(env, SCRIPT, "--publish") + refute status.success? + assert_includes err + out, "Current GitHub Actions run 12345 has not received human approval for 'release-publish' from required reviewers" + end + end + + def test_stale_release_state_fetch_failure_halts_immediately + with_scratch_dir do |bin_dir| + mock_git = File.join(bin_dir, "git") + File.write(mock_git, <<~'SH') + #!/usr/bin/env bash + if [[ "$*" == *"fetch"*"release-state"* ]]; then + echo "fatal: unable to access network" >&2 + exit 1 + fi + exec /usr/bin/git "$@" + SH + FileUtils.chmod(0o755, mock_git) + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"#{VALID_SHA}"}' + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) + refute status.success? + assert_includes err + out, "Failed to fetch origin/release-state from remote" + assert_includes err + out, "Relying on stale local state is prohibited" + end + end + + def test_scratch_volume_enforcement_locally + # 1. Arbitrary T7_RUN_DIR outside /Volumes/T7Tmp/ai-dev is rejected + with_scratch_dir do |bin_dir| + mock_mount = File.join(bin_dir, "mount") + File.write(mock_mount, <<~'SH') + #!/usr/bin/env bash + echo "/dev/disk8s1 on /Volumes/T7Tmp (apfs)" + SH + FileUtils.chmod(0o755, mock_mount) + + mock_df = File.join(bin_dir, "df") + File.write(mock_df, <<~'SH') + #!/usr/bin/env bash + echo "Filesystem 512-blocks Used Available Capacity Mounted on" + echo "/dev/disk8s1 1000 500 500 50% /Volumes/T7Tmp" + SH + FileUtils.chmod(0o755, mock_df) + + mock_t7run = File.join(bin_dir, "t7run") + File.write(mock_t7run, <<~'SH') + #!/usr/bin/env bash + exit 0 + SH + FileUtils.chmod(0o755, mock_t7run) + + out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "", "T7_RUN_DIR" => "/tmp/unapproved_scratch" }, SCRIPT) + refute status.success? + assert_includes err + out, "outside /Volumes/T7Tmp/ai-dev" + assert_includes err + out, "Arbitrary scratch paths are rejected" + + # Reconcile script also rejects arbitrary T7_RUN_DIR + out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "", "T7_RUN_DIR" => "/tmp/unapproved_scratch" }, RECONCILE_SCRIPT, "--manifest-only") + refute status.success? + assert_includes err + out, "outside /Volumes/T7Tmp/ai-dev" + assert_includes err + out, "Arbitrary scratch paths are rejected" + end + + # 2. Unmounted /Volumes/T7Tmp volume is rejected + with_scratch_dir do |bin_dir| + mock_mount = File.join(bin_dir, "mount") + File.write(mock_mount, <<~'SH') + #!/usr/bin/env bash + echo "/dev/disk1s1 on / (apfs, local)" + SH + FileUtils.chmod(0o755, mock_mount) + + out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "" }, SCRIPT) + refute status.success? + assert_includes err + out, "External T7 scratch volume (/Volumes/T7Tmp) is not mounted" + end + + # 3. Fake mount point directory on internal disk is rejected + with_scratch_dir do |bin_dir| + mock_mount = File.join(bin_dir, "mount") + File.write(mock_mount, <<~'SH') + #!/usr/bin/env bash + echo "/dev/disk8s1 on /Volumes/T7Tmp (apfs)" + SH + FileUtils.chmod(0o755, mock_mount) + + mock_df = File.join(bin_dir, "df") + File.write(mock_df, <<~'SH') + #!/usr/bin/env bash + echo "Filesystem 512-blocks Used Available Capacity Mounted on" + echo "/dev/disk1s1 1000 500 500 50% /System/Volumes/Data" + SH + FileUtils.chmod(0o755, mock_df) + + out, err, status = Open3.capture3({ "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => "" }, SCRIPT) + refute status.success? + assert_includes err + out, "detected fake mount-point directory on internal disk" + end + end + + def test_failure_before_publication_when_target_commit_mismatches + with_scratch_dir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~'SH') + #!/usr/bin/env bash + case "$*" in + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"1111111111111111111111111111111111111111"}' + ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) + refute status.success? + assert_includes err + out, "target_commitish is '1111111111111111111111111111111111111111', expected '94c796fc34fd699776764d67d2f26013909a308e'" + end + end + + def test_failure_before_publication_when_release_is_not_draft + with_scratch_dir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":false,"target_commitish":"#{VALID_SHA}"}' + ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) + refute status.success? + assert_includes err + out, "release 442117184 (v2.1.0) is already public (draft=false)" + assert_includes err + out, "run this workflow with action=reconcile" + end + end + + def test_failure_before_publication_when_asset_count_or_names_differ + with_scratch_dir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"}]}' + ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) + refute status.success? + assert_includes err + out, "draft assets are 'MeowDisplay.dmg', expected 'MeowDisplay.dmg MeowDisplayReceiver.dmg SHA256SUMS.txt appcast-receiver.xml appcast.xml'" + end + end + + def test_failure_before_publication_when_sha256sums_digest_is_tampered + with_scratch_dir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"release download"*) + dest="${@: -1}" + mkdir -p "$dest" + echo "tampered sums file" > "$dest/SHA256SUMS.txt" + echo "d1" > "$dest/MeowDisplay.dmg" + echo "d2" > "$dest/MeowDisplayReceiver.dmg" + echo "f1" > "$dest/appcast.xml" + echo "f2" > "$dest/appcast-receiver.xml" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; + *"SHA256SUMS.txt") echo "tampered_digest_000000000000000000000000000000000000000000000000 $target" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 $target" ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + out, err, status = run_recovery([], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) + refute status.success? + assert_includes err + out, "SHA256SUMS.txt hash is 'tampered_digest" + assert_includes err + out, "expected pinned '#{EXPECTED_SUMS_HASH}'" + end + end + + def test_feed_verification_failure_halts_before_publication + with_scratch_dir do |bin_dir| + state_file = File.join(bin_dir, "published.txt") + File.write(state_file, "false") + + sums_content = "#{DMG1_HASH} MeowDisplay.dmg\n#{DMG2_HASH} MeowDisplayReceiver.dmg\n#{FEED1_HASH} appcast.xml\n#{FEED2_HASH} appcast-receiver.xml\n" + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[{"state":"approved","environments":[{"name":"release-publish"}]}]' + ;; + *"releases/442117184") + echo '{"id":442117184,"tag_name":"v2.1.0","draft":true,"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"release download"*) + dest="${@: -1}" + mkdir -p "$dest" + printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" + echo "mock-dmg1" > "$dest/MeowDisplay.dmg" + echo "mock-dmg2" > "$dest/MeowDisplayReceiver.dmg" + echo "mock-feed1" > "$dest/appcast.xml" + echo "mock-feed2" > "$dest/appcast-receiver.xml" + ;; + *"release edit"*"--draft=false --latest"*) + echo "true" > "#{state_file}" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; + *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; + *) + content=$(cat) + case "$content" in + *"mock-feed1"*) echo "#{FEED1_HASH} -" ;; + *"mock-feed2"*) echo "#{FEED2_HASH} -" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 -" ;; + esac + ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + mock_feed = File.join(bin_dir, "verify-feed.sh") + File.write(mock_feed, <<~'SH') + #!/usr/bin/env bash + echo "::error::mock feed verification failed: signature does not match Ed25519 key" >&2 + exit 1 + SH + FileUtils.chmod(0o755, mock_feed) + + File.write(File.join(bin_dir, "verify-mac-artifact.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-mac-artifact.sh")) + File.write(File.join(bin_dir, "check-build-number.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "check-build-number.sh")) + File.write(File.join(bin_dir, "published-baseline.sh"), "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, File.join(bin_dir, "published-baseline.sh")) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_recovery(["--publish"], env) + refute status.success? + assert_includes err + out, "mock feed verification failed" + assert_equal "false", File.read(state_file), "Publication was attempted despite feed verification failure!" + end + end + + def test_successful_publication_end_to_end + with_scratch_dir do |bin_dir| + invocations_file = File.join(bin_dir, "gh_calls.txt") + File.write(invocations_file, "") + state_file = File.join(bin_dir, "gh_state.txt") + File.write(state_file, "latest=v2.0.0\ndraft=true\n") + + sums_content = "#{DMG1_HASH} MeowDisplay.dmg\n#{DMG2_HASH} MeowDisplayReceiver.dmg\n#{FEED1_HASH} appcast.xml\n#{FEED2_HASH} appcast-receiver.xml\n" + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + echo "gh $*" >> "#{invocations_file}" + case "$*" in + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[{"state":"approved","environments":[{"name":"release-publish"}]}]' + ;; + *"releases/442117184"*"--jq .draft"*) + grep "^draft=" "#{state_file}" | cut -d= -f2 + ;; + *"releases/442117184") + draft_val=$(grep "^draft=" "#{state_file}" | cut -d= -f2) + echo '{"id":442117184,"tag_name":"v2.1.0","draft":'"$draft_val"',"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"releases/latest"*) + grep "^latest=" "#{state_file}" | cut -d= -f2 + ;; + *"release download v2.1.0"*) + dest="${@: -1}" + mkdir -p "$dest" + printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" + echo "mock-dmg1" > "$dest/MeowDisplay.dmg" + echo "mock-dmg2" > "$dest/MeowDisplayReceiver.dmg" + echo "mock-feed1" > "$dest/appcast.xml" + echo "mock-feed2" > "$dest/appcast-receiver.xml" + ;; + *"release edit v2.1.0"*"--draft=false --latest"*) + sed -i '' 's/^latest=.*/latest=v2.1.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.1.0/' "#{state_file}" + sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" + ;; + *"commits/v2.1.0"*) + echo "#{VALID_SHA}" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; + *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; + *) + content=$(cat) + case "$content" in + *"mock-feed1"*) echo "#{FEED1_HASH} -" ;; + *"mock-feed2"*) echo "#{FEED2_HASH} -" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 -" ;; + esac + ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + File.write(File.join(bin_dir, "verify-feed.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-feed.sh")) + File.write(File.join(bin_dir, "verify-mac-artifact.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-mac-artifact.sh")) + File.write(File.join(bin_dir, "check-build-number.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "check-build-number.sh")) + File.write(File.join(bin_dir, "published-baseline.sh"), "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, File.join(bin_dir, "published-baseline.sh")) + + mock_curl = File.join(bin_dir, "curl") + File.write(mock_curl, <<~SH) + #!/usr/bin/env bash + url="${@: -1}" + case "$url" in + *"appcast.xml"*) echo "mock-feed1" ;; + *"appcast-receiver.xml"*) echo "mock-feed2" ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, mock_curl) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_recovery(["--publish"], env) + assert status.success?, "Publication failed: #{err}\n#{out}" + assert_includes out, "SUCCESS: MeowDisplay Mac 2.1.0 is published and live!" + assert_includes out, "Tag v2.1.0 is Latest pointing to #{VALID_SHA}" + + calls = File.read(invocations_file) + # Assert publication used the exact tag name v2.1.0 + assert_includes calls, "gh release edit v2.1.0 --draft=false --latest -R raiseCatError/meowdisplay" + # Assert rollback was never triggered + refute_includes calls, "--draft=true" + # Assert numeric draft ID was verified through API + assert_includes calls, "gh api repos/raiseCatError/meowdisplay/releases/442117184" + end + end + + def test_rollback_behavior_when_live_feeds_fail_after_publish + with_scratch_dir do |bin_dir| + invocations_file = File.join(bin_dir, "gh_calls.txt") + File.write(invocations_file, "") + state_file = File.join(bin_dir, "gh_state.txt") + File.write(state_file, "latest=v2.0.0\ndraft=true\n") + + sums_content = "#{DMG1_HASH} MeowDisplay.dmg\n#{DMG2_HASH} MeowDisplayReceiver.dmg\n#{FEED1_HASH} appcast.xml\n#{FEED2_HASH} appcast-receiver.xml\n" + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + echo "gh $*" >> "#{invocations_file}" + case "$*" in + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[{"state":"approved","environments":[{"name":"release-publish"}]}]' + ;; + *"releases/442117184"*"--jq .draft"*) + grep "^draft=" "#{state_file}" | cut -d= -f2 + ;; + *"releases/442117184") + draft_val=$(grep "^draft=" "#{state_file}" | cut -d= -f2) + echo '{"id":442117184,"tag_name":"v2.1.0","draft":'"$draft_val"',"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"releases/latest"*) + grep "^latest=" "#{state_file}" | cut -d= -f2 + ;; + *"release download v2.1.0"*) + dest="${@: -1}" + mkdir -p "$dest" + printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" + echo "mock-dmg1" > "$dest/MeowDisplay.dmg" + echo "mock-dmg2" > "$dest/MeowDisplayReceiver.dmg" + echo "mock-feed1" > "$dest/appcast.xml" + echo "mock-feed2" > "$dest/appcast-receiver.xml" + ;; + *"release edit v2.1.0"*"--draft=false --latest"*) + sed -i '' 's/^latest=.*/latest=v2.1.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.1.0/' "#{state_file}" + sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" + ;; + *"release edit v2.0.0"*"--latest"*) + sed -i '' 's/^latest=.*/latest=v2.0.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.0.0/' "#{state_file}" + ;; + *"release edit v2.1.0"*"--draft=true"*) + sed -i '' 's/^draft=.*/draft=true/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=true/' "#{state_file}" + ;; + *"commits/v2.1.0"*) + echo "#{VALID_SHA}" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; + *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; + *) + content=$(cat) + case "$content" in + *"mock-feed1"*) echo "#{FEED1_HASH} -" ;; + *"mock-feed2"*) echo "#{FEED2_HASH} -" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 -" ;; + esac + ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + File.write(File.join(bin_dir, "verify-feed.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-feed.sh")) + File.write(File.join(bin_dir, "verify-mac-artifact.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-mac-artifact.sh")) + File.write(File.join(bin_dir, "check-build-number.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "check-build-number.sh")) + File.write(File.join(bin_dir, "published-baseline.sh"), "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, File.join(bin_dir, "published-baseline.sh")) + + mock_curl = File.join(bin_dir, "curl") + File.write(mock_curl, "#!/usr/bin/env bash\nexit 1\n") + FileUtils.chmod(0o755, mock_curl) + + mock_sleep = File.join(bin_dir, "sleep") + File.write(mock_sleep, "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, mock_sleep) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_recovery(["--publish"], env) + refute status.success? + assert_includes err + out, "Live feeds did not serve v2.1.0 after 5 minutes" + assert_includes err + out, "Rollback succeeded: v2.1.0 (ID 442117184) returned to draft; v2.0.0 restored as Latest" + + state = File.read(state_file) + assert_includes state, "latest=v2.0.0" + assert_includes state, "draft=true" + + calls = File.read(invocations_file) + # Assert both rollback commands used the correct tag names + assert_includes calls, "gh release edit v2.0.0 --latest -R raiseCatError/meowdisplay" + assert_includes calls, "gh release edit v2.1.0 --draft=true -R raiseCatError/meowdisplay" + end + end + + def test_post_publication_latest_mismatch_rolls_back_instead_of_exiting + with_scratch_dir do |bin_dir| + invocations_file = File.join(bin_dir, "gh_calls.txt") + File.write(invocations_file, "") + state_file = File.join(bin_dir, "gh_state.txt") + File.write(state_file, "latest=v2.0.0\ndraft=true\n") + + sums_content = "#{DMG1_HASH} MeowDisplay.dmg\n#{DMG2_HASH} MeowDisplayReceiver.dmg\n#{FEED1_HASH} appcast.xml\n#{FEED2_HASH} appcast-receiver.xml\n" + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + echo "gh $*" >> "#{invocations_file}" + case "$*" in + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[{"state":"approved","environments":[{"name":"release-publish"}]}]' + ;; + *"releases/442117184"*"--jq .draft"*) + grep "^draft=" "#{state_file}" | cut -d= -f2 + ;; + *"releases/442117184") + draft_val=$(grep "^draft=" "#{state_file}" | cut -d= -f2) + echo '{"id":442117184,"tag_name":"v2.1.0","draft":'"$draft_val"',"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"releases/latest"*) + grep "^latest=" "#{state_file}" | cut -d= -f2 + ;; + *"release download v2.1.0"*) + dest="${@: -1}" + mkdir -p "$dest" + printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" + echo "mock-dmg1" > "$dest/MeowDisplay.dmg" + echo "mock-dmg2" > "$dest/MeowDisplayReceiver.dmg" + echo "mock-feed1" > "$dest/appcast.xml" + echo "mock-feed2" > "$dest/appcast-receiver.xml" + ;; + *"release edit v2.1.0"*"--draft=false --latest"*) + # Published, but GitHub does not report it as Latest. + sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" + ;; + *"release edit v2.0.0"*"--latest"*) + sed -i '' 's/^latest=.*/latest=v2.0.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.0.0/' "#{state_file}" + ;; + *"release edit v2.1.0"*"--draft=true"*) + sed -i '' 's/^draft=.*/draft=true/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=true/' "#{state_file}" + ;; + *"commits/v2.1.0"*) + echo "#{VALID_SHA}" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; + *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; + *) + content=$(cat) + case "$content" in + *"mock-feed1"*) echo "#{FEED1_HASH} -" ;; + *"mock-feed2"*) echo "#{FEED2_HASH} -" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 -" ;; + esac + ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + File.write(File.join(bin_dir, "verify-feed.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-feed.sh")) + File.write(File.join(bin_dir, "verify-mac-artifact.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-mac-artifact.sh")) + File.write(File.join(bin_dir, "check-build-number.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "check-build-number.sh")) + File.write(File.join(bin_dir, "published-baseline.sh"), "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, File.join(bin_dir, "published-baseline.sh")) + + mock_curl = File.join(bin_dir, "curl") + File.write(mock_curl, "#!/usr/bin/env bash\nexit 1\n") + FileUtils.chmod(0o755, mock_curl) + + mock_sleep = File.join(bin_dir, "sleep") + File.write(mock_sleep, "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, mock_sleep) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_recovery(["--publish"], env) + refute status.success? + # A bare `exit 1` here skipped the ERR trap and left the release public. + assert_includes err + out, "Latest is v2.0.0, expected v2.1.0" + refute_includes err + out, "Checking live feeds" + assert_includes err + out, "Rollback succeeded: v2.1.0 (ID 442117184) returned to draft; v2.0.0 restored as Latest" + + state = File.read(state_file) + assert_includes state, "latest=v2.0.0" + assert_includes state, "draft=true" + + calls = File.read(invocations_file) + # Assert both rollback commands used the correct tag names + assert_includes calls, "gh release edit v2.0.0 --latest -R raiseCatError/meowdisplay" + assert_includes calls, "gh release edit v2.1.0 --draft=true -R raiseCatError/meowdisplay" + end + end + + def test_partial_rollback_failure_when_reverting_latest_fails + with_scratch_dir do |bin_dir| + state_file = File.join(bin_dir, "gh_state.txt") + File.write(state_file, "latest=v2.0.0\ndraft=true\n") + + sums_content = "#{DMG1_HASH} MeowDisplay.dmg\n#{DMG2_HASH} MeowDisplayReceiver.dmg\n#{FEED1_HASH} appcast.xml\n#{FEED2_HASH} appcast-receiver.xml\n" + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[{"state":"approved","environments":[{"name":"release-publish"}]}]' + ;; + *"releases/442117184"*"--jq .draft"*) + grep "^draft=" "#{state_file}" | cut -d= -f2 + ;; + *"releases/442117184") + draft_val=$(grep "^draft=" "#{state_file}" | cut -d= -f2) + echo '{"id":442117184,"tag_name":"v2.1.0","draft":'"$draft_val"',"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"releases/latest"*) + grep "^latest=" "#{state_file}" | cut -d= -f2 + ;; + *"release download v2.1.0"*) + dest="${@: -1}" + mkdir -p "$dest" + printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" + echo "d1" > "$dest/MeowDisplay.dmg" + echo "d2" > "$dest/MeowDisplayReceiver.dmg" + echo "f1" > "$dest/appcast.xml" + echo "f2" > "$dest/appcast-receiver.xml" + ;; + *"release edit v2.1.0"*"--draft=false --latest"*) + sed -i '' 's/^latest=.*/latest=v2.1.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.1.0/' "#{state_file}" + sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" + ;; + *"release edit v2.0.0"*"--latest"*) + exit 1 + ;; + *"release edit v2.1.0"*"--draft=true"*) + sed -i '' 's/^draft=.*/draft=true/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=true/' "#{state_file}" + ;; + *"commits/v2.1.0"*) + echo "#{VALID_SHA}" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; + *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; + *) + content=$(cat) + case "$content" in + *"mock-feed1"*) echo "#{FEED1_HASH} -" ;; + *"mock-feed2"*) echo "#{FEED2_HASH} -" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 -" ;; + esac + ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + File.write(File.join(bin_dir, "verify-feed.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-feed.sh")) + File.write(File.join(bin_dir, "verify-mac-artifact.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-mac-artifact.sh")) + File.write(File.join(bin_dir, "check-build-number.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "check-build-number.sh")) + File.write(File.join(bin_dir, "published-baseline.sh"), "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, File.join(bin_dir, "published-baseline.sh")) + File.write(File.join(bin_dir, "curl"), "#!/usr/bin/env bash\nexit 1\n") + FileUtils.chmod(0o755, File.join(bin_dir, "curl")) + File.write(File.join(bin_dir, "sleep"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "sleep")) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_recovery(["--publish"], env) + refute status.success? + assert_includes err + out, "PARTIAL ROLLBACK FAILURE: revert_latest=false, revert_draft=true" + end + end + + def test_partial_rollback_failure_when_reverting_draft_fails + with_scratch_dir do |bin_dir| + state_file = File.join(bin_dir, "gh_state.txt") + File.write(state_file, "latest=v2.0.0\ndraft=true\n") + + sums_content = "#{DMG1_HASH} MeowDisplay.dmg\n#{DMG2_HASH} MeowDisplayReceiver.dmg\n#{FEED1_HASH} appcast.xml\n#{FEED2_HASH} appcast-receiver.xml\n" + + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"deployment-branch-policies"*) + if [[ "$*" == *"--jq"* ]]; then + echo "branch:release/*" + else + echo '{"branch_policies":[{"name":"release/*","type":"branch"}]}' + fi + ;; + *"environments/release-publish"*) + echo '{"deployment_branch_policy":{"custom_branch_policies":true},"protection_rules":[{"type":"required_reviewers"}]}' + ;; + *"actions/runs/12345/approvals"*) + echo '[{"state":"approved","environments":[{"name":"release-publish"}]}]' + ;; + *"releases/442117184"*"--jq .draft"*) + grep "^draft=" "#{state_file}" | cut -d= -f2 + ;; + *"releases/442117184") + draft_val=$(grep "^draft=" "#{state_file}" | cut -d= -f2) + echo '{"id":442117184,"tag_name":"v2.1.0","draft":'"$draft_val"',"target_commitish":"#{VALID_SHA}","assets":[{"name":"MeowDisplay.dmg"},{"name":"MeowDisplayReceiver.dmg"},{"name":"SHA256SUMS.txt"},{"name":"appcast-receiver.xml"},{"name":"appcast.xml"}]}' + ;; + *"releases/latest"*) + grep "^latest=" "#{state_file}" | cut -d= -f2 + ;; + *"release download v2.1.0"*) + dest="${@: -1}" + mkdir -p "$dest" + printf "%s" "#{sums_content}" > "$dest/SHA256SUMS.txt" + echo "d1" > "$dest/MeowDisplay.dmg" + echo "d2" > "$dest/MeowDisplayReceiver.dmg" + echo "f1" > "$dest/appcast.xml" + echo "f2" > "$dest/appcast-receiver.xml" + ;; + *"release edit v2.1.0"*"--draft=false --latest"*) + sed -i '' 's/^latest=.*/latest=v2.1.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.1.0/' "#{state_file}" + sed -i '' 's/^draft=.*/draft=false/' "#{state_file}" 2>/dev/null || sed -i 's/^draft=.*/draft=false/' "#{state_file}" + ;; + *"release edit v2.0.0"*"--latest"*) + sed -i '' 's/^latest=.*/latest=v2.0.0/' "#{state_file}" 2>/dev/null || sed -i 's/^latest=.*/latest=v2.0.0/' "#{state_file}" + ;; + *"release edit v2.1.0"*"--draft=true"*) + exit 1 + ;; + *"commits/v2.1.0"*) + echo "#{VALID_SHA}" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + mock_shasum = File.join(bin_dir, "shasum") + File.write(mock_shasum, <<~SH) + #!/usr/bin/env bash + if [ "$1" = "-a" ] && [ "$2" = "256" ] && [ "$3" = "-c" ]; then exit 0; fi + target="${@: -1}" + case "$target" in + *"MeowDisplay.dmg") echo "#{DMG1_HASH} $target" ;; + *"MeowDisplayReceiver.dmg") echo "#{DMG2_HASH} $target" ;; + *"appcast.xml") echo "#{FEED1_HASH} $target" ;; + *"appcast-receiver.xml") echo "#{FEED2_HASH} $target" ;; + *"SHA256SUMS.txt") echo "#{EXPECTED_SUMS_HASH} $target" ;; + *) + content=$(cat) + case "$content" in + *"mock-feed1"*) echo "#{FEED1_HASH} -" ;; + *"mock-feed2"*) echo "#{FEED2_HASH} -" ;; + *) echo "0000000000000000000000000000000000000000000000000000000000000000 -" ;; + esac + ;; + esac + SH + FileUtils.chmod(0o755, mock_shasum) + + File.write(File.join(bin_dir, "verify-feed.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-feed.sh")) + File.write(File.join(bin_dir, "verify-mac-artifact.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "verify-mac-artifact.sh")) + File.write(File.join(bin_dir, "check-build-number.sh"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "check-build-number.sh")) + File.write(File.join(bin_dir, "published-baseline.sh"), "#!/usr/bin/env bash\nmkdir -p \"$1\"\necho k > \"$1/sender.key\"\necho k > \"$1/receiver.key\"\n") + FileUtils.chmod(0o755, File.join(bin_dir, "published-baseline.sh")) + File.write(File.join(bin_dir, "curl"), "#!/usr/bin/env bash\nexit 1\n") + FileUtils.chmod(0o755, File.join(bin_dir, "curl")) + File.write(File.join(bin_dir, "sleep"), "#!/usr/bin/env bash\nexit 0\n") + FileUtils.chmod(0o755, File.join(bin_dir, "sleep")) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "GITHUB_ACTIONS" => "true", + "GITHUB_RUN_ID" => "12345", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_recovery(["--publish"], env) + refute status.success? + assert_includes err + out, "PARTIAL ROLLBACK FAILURE: revert_latest=true, revert_draft=false" + end + end + + def test_reconcile_script_requires_explicit_mode + out, err, status = Open3.capture3({}, RECONCILE_SCRIPT) + refute status.success? + assert_includes err + out, "usage: reconcile-mac-release.sh (--execute | --finish | --manifest-only | --preflight | --site-evidence DIR)" + end + + def test_reconcile_script_rejects_overrides + out, err, status = Open3.capture3({ "VERSION" => "3.0.0" }, RECONCILE_SCRIPT, "--execute") + refute status.success? + assert_includes err + out, "VERSION must be '2.1.0'" + assert_includes err + out, "rejected" + end + + def test_reconcile_manifest_only_is_strictly_read_only + with_scratch_dir do |bin_dir| + invocations_file = File.join(bin_dir, "state_calls.txt") + File.write(invocations_file, "") + + mock_state = File.join(bin_dir, "release-state.sh") + File.write(mock_state, <<~SH) + #!/usr/bin/env bash + echo "state $*" >> "#{invocations_file}" + case "$*" in + *"publish website-manifest"*) + out_file="${@: -1}" + echo '{"version":"2.1.0","manifest":"ok"}' > "$out_file" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_state) + + mock_git = File.join(bin_dir, "git") + File.write(mock_git, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"fetch"*) exit 0 ;; + *"rev-parse FETCH_HEAD"*) echo '#{VALID_SHA}' ;; + *"show #{VALID_SHA}:.github/release-config.json"*) + echo '{"requiredPlatforms":["mac","ios"],"excludedPlatforms":["android"],"ios":{"submitForReview":false}}' + ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, mock_git) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_reconcile(["--manifest-only"], env) + assert status.success?, "Manifest-only failed: #{err}\n#{out}" + assert_includes out, "Manifest generated successfully (read-only mode; zero state mutations performed)" + assert_includes out, '"version":"2.1.0"' + + calls = File.read(invocations_file) + # Assert ONLY website-manifest was invoked + assert_includes calls, "publish website-manifest" + # Assert mutating subcommands were NEVER invoked + refute_includes calls, "publish start" + refute_includes calls, "publish mac-published" + refute_includes calls, "publish stores" + end + end + + def test_reconcile_execute_requires_release_state_token + with_scratch_dir do |bin_dir| + mock_gh = File.join(bin_dir, "gh") + File.write(mock_gh, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"releases/latest"*) echo 'v2.1.0' ;; + *"commits/v2.1.0"*) echo '#{VALID_SHA}' ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_gh) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "RELEASE_STATE_TOKEN" => "", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_reconcile(["--execute"], env) + refute status.success? + assert_includes err + out, "RELEASE_STATE_TOKEN is required to mutate the protected release-state branch" + end + end + + def test_successful_reconciliation_end_to_end + with_scratch_dir do |bin_dir| + invocations_file = File.join(bin_dir, "reconcile_calls.txt") + File.write(invocations_file, "") + + write_live_release_gh(bin_dir) + + mock_state = File.join(bin_dir, "release-state.sh") + File.write(mock_state, <<~SH) + #!/usr/bin/env bash + echo "state $*" >> "#{invocations_file}" + case "$*" in + *"publish website-manifest"*) + out_file="${@: -1}" + echo '{"version":"2.1.0","manifest":"ok"}' > "$out_file" + ;; + *) exit 0 ;; + esac + SH + FileUtils.chmod(0o755, mock_state) + + mock_git = File.join(bin_dir, "git") + File.write(mock_git, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"fetch"*) exit 0 ;; + *"rev-parse FETCH_HEAD"*) echo '#{VALID_SHA}' ;; + *"show #{VALID_SHA}:.github/release-config.json"*) + echo '{"requiredPlatforms":["mac","ios"],"excludedPlatforms":["android"],"ios":{"submitForReview":false}}' + ;; + *"show origin/release-state"*) + echo '{"publication":{"stage":"in-progress"},"platforms":{"mac":{"stage":"published","artifacts":#{RECORDED_ARTIFACTS_JSON}},"ios":{"stage":"published"}}}' + ;; + *) exec /usr/bin/git "$@" ;; + esac + SH + FileUtils.chmod(0o755, mock_git) + + env = { + "PATH" => "#{bin_dir}:#{ENV['PATH']}", + "RELEASE_STATE_TOKEN" => "app-token-xyz-123", + "RUNNER_TEMP" => bin_dir + } + out, err, status = run_reconcile(["--execute"], env) + assert status.success?, "Reconcile execute failed: #{err}\n#{out}" + assert_includes out, "release-state successfully reconciled" + assert_includes out, "platforms.mac: published" + assert_includes out, "platforms.ios: published" + assert_includes out, "publication: in-progress" + + calls = File.read(invocations_file) + # Assert state progression happened in exact order + idx_start = calls.index("publish start STATE") + idx_mac = calls.index("publish mac-published STATE") + idx_manifest = calls.index("publish website-manifest STATE") + + assert idx_start, "publish start STATE was not called" + assert idx_mac, "publish mac-published STATE was not called" + assert idx_manifest, "publish website-manifest STATE was not called" + assert idx_start < idx_mac, "publish start must precede mac-published" + assert idx_mac < idx_manifest, "mac-published must precede website-manifest" + assert_includes calls, "approved-release-config.json" + refute_includes calls, "publish stores STATE" + refute_includes calls, "/.github/release-config.json" + end + end + + def test_preflight_rejects_generic_android_required_config + with_scratch_dir do |bin_dir| + git = File.join(bin_dir, "git") + File.write(git, <<~SH) + #!/usr/bin/env bash + case "$*" in + *"fetch"*) exit 0 ;; + *"rev-parse FETCH_HEAD"*) echo '#{VALID_SHA}' ;; + *"show #{VALID_SHA}:.github/release-config.json"*) + echo '{"requiredPlatforms":["mac","ios","android"],"excludedPlatforms":[],"ios":{"submitForReview":true}}' + ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, git) + out, err, status = run_reconcile(["--preflight"], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) + refute status.success? + assert_includes err + out, "Frozen candidate config must require mac + ios, exclude android" + end + end + + def test_candidate_branch_movement_fails_closed + with_scratch_dir do |bin_dir| + git = File.join(bin_dir, "git") + File.write(git, <<~'SH') + #!/usr/bin/env bash + case "$*" in + *"fetch"*) exit 0 ;; + *"rev-parse FETCH_HEAD"*) echo '1111111111111111111111111111111111111111' ;; + *) exit 1 ;; + esac + SH + FileUtils.chmod(0o755, git) + out, err, status = run_reconcile(["--manifest-only"], "PATH" => "#{bin_dir}:#{ENV['PATH']}", "RUNNER_TEMP" => bin_dir) + refute status.success? + assert_includes err + out, "release/2.1.0 moved" + end + end +end diff --git a/scripts/release/test/recovery_integration_test.rb b/scripts/release/test/recovery_integration_test.rb new file mode 100644 index 000000000..769d4a46f --- /dev/null +++ b/scripts/release/test/recovery_integration_test.rb @@ -0,0 +1,426 @@ +# frozen_string_literal: true + +require_relative "test_helper" +require "open3" +require "tmpdir" +require "fileutils" +require "json" +require "digest" + +# The 2.1.0 Mac recovery's production paths, as the workflow runs them: +# scripts executed directly (their Git mode matters, run 43117186436), the +# real reconcile-mac-release.sh -> release-state.sh -> meow-release state +# machine and real git against local remotes seeded with the actual frozen +# candidate commit and the actual recorded state (publication failed, Mac +# approved, iOS published). Only the GitHub REST API (gh) and the website +# fetch (curl) are stubbed. +class RecoveryIntegrationTest < Minitest::Test + ROOT = File.expand_path("../../..", __dir__) + RELEASE_DIR = File.join(ROOT, "scripts/release") + CANDIDATE = "94c796fc34fd699776764d67d2f26013909a308e" + UPSTREAM = "https://github.com/raiseCatError/meowdisplay" + SUMS = "279e22555e9a84a4fc59bd7d529f4efca6ccf2a8c986ac9fc939d627368bc1b7" + FIXTURE_STATE = File.join(__dir__, "fixtures/release-state-2.1.0-failed.json") + GIT_ID = ["-c", "user.name=test", "-c", "user.email=test@example.invalid"].freeze + + # MARK: - Executable modes, from Git + + def git_mode(path) + out, status = Open3.capture2("git", "-C", ROOT, "ls-files", "-s", "--", path) + assert status.success?, "git ls-files failed for #{path}" + out.split(" ").first + end + + def test_every_script_the_recovery_executes_is_tracked_executable + workflow = File.read(File.join(ROOT, ".github/workflows/recover-mac-release.yml")) + direct = workflow.scan(%r{^\s*(scripts/[A-Za-z0-9_./-]+)}).flatten.uniq + assert_includes direct, "scripts/release/reconcile-mac-release.sh" + assert_includes direct, "scripts/release/recover-mac-release.sh" + called = %w[check-environment.sh release-state.sh meow-release published-baseline.sh check-build-number.sh + verify-mac-artifact.sh verify-feed.sh].map { |f| "scripts/release/#{f}" } + (direct + called).uniq.each do |path| + assert_equal "100755", git_mode(path), "#{path} must be tracked as 100755 (git update-index --chmod=+x #{path})" + assert File.executable?(File.join(ROOT, path)), "#{path} is not executable in this checkout" + end + end + + # MARK: - Real state machine against local remotes + + def setup_remotes(dir, state_json) + origin = File.join(dir, "origin.git") + system("git", "init", "-q", "--bare", origin, exception: true) + # The real, immutable candidate commit (public repository; one commit). + _, err, status = Open3.capture3("git", "-C", origin, "fetch", "-q", "--depth", "1", "--no-tags", UPSTREAM, + "+refs/heads/release/2.1.0:refs/heads/release/2.1.0") + unless status.success? + flunk("cannot fetch the frozen candidate: #{err}") if ENV["CI"] + skip("network unavailable for the frozen candidate fetch: #{err.lines.first}") + end + head, = Open3.capture2("git", "-C", origin, "rev-parse", "refs/heads/release/2.1.0") + assert_equal CANDIDATE, head.strip, "release/2.1.0 moved off the frozen candidate" + + seed = File.join(dir, "seed") + system("git", "init", "-q", seed, exception: true) + system("git", "-C", seed, "checkout", "-q", "--orphan", "release-state", exception: true) + FileUtils.mkdir_p(File.join(seed, "releases")) + File.write(File.join(seed, "releases/2.1.0.json"), state_json) + system("git", "-C", seed, "add", "-A", exception: true) + system("git", "-C", seed, *GIT_ID, "commit", "-q", "-m", "seed", exception: true) + system("git", "-C", seed, "push", "-q", origin, "HEAD:refs/heads/release-state", exception: true) + + # The workflow's checkout: the scripts, unchanged and with their modes, + # in a repository whose origin is the local remote. + # A shallow clone, like actions/checkout's default (fetch-depth 1, no + # credential persisted); the local remote is itself shallow, so the clone + # must already know its boundary commits. + work = File.join(dir, "work") + system("git", "clone", "-q", "--depth", "1", "--no-single-branch", "--no-checkout", "--no-tags", + "file://#{origin}", work, exception: true) + FileUtils.mkdir_p(File.join(work, "scripts")) + FileUtils.cp_r(RELEASE_DIR, File.join(work, "scripts"), preserve: true) + [origin, work] + end + + SITE = "raiseCatError/MeowDisplayWebsite" + SITE_HEAD = "38426be3e61f4592cd2e3c313b606ea54f72c930" + PROD = "https://meowdisplay.app" + CHALLENGE_HEADERS = "HTTP/2 403\r\ncontent-type: text/html; charset=UTF-8\r\ncf-mitigated: challenge\r\nserver: cloudflare\r\n\r\n" + + # Only the network is stubbed: gh answers from fixture files, curl serves + # status/headers/body per URL (query string ignored) and honours -f, -D, -o, -w. + def stub_bin(dir, release_json:, latest: "v2.1.0") + bin = File.join(dir, "bin") + FileUtils.mkdir_p(File.join(bin, "site/files")) + File.write(File.join(bin, "release.json.mock"), release_json) + File.write(File.join(bin, "gh"), <<~SH) + #!/usr/bin/env bash + echo "gh $*" >> "#{bin}/gh.log" + case "$*" in + "api repos/raiseCatError/meowdisplay/releases/442117184") cat "#{bin}/release.json.mock" ;; + "api repos/raiseCatError/meowdisplay/releases/latest --jq .tag_name") echo "#{latest}" ;; + "api repos/raiseCatError/meowdisplay/commits/v2.1.0 --jq .sha") echo "#{CANDIDATE}" ;; + "api repos/#{SITE}/commits/main --jq .sha") cat "#{bin}/site/head" ;; + "api -H Accept: application/vnd.github.raw repos/#{SITE}/contents/"*) + path=${4#repos/#{SITE}/contents/}; path=${path%%[?]ref=*} + [ "${4##*[?]ref=}" = "$(cat "#{bin}/site/head")" ] || exit 1 + cat "#{bin}/site/files/$path" ;; + *) echo "unexpected gh $*" >&2; exit 1 ;; + esac + SH + File.write(File.join(bin, "curl"), <<~SH) + #!/usr/bin/env bash + echo "curl $*" >> "#{bin}/curl.log" + hdr= out= fmt= url= fail= + while [ $# -gt 0 ]; do + case "$1" in + -D) hdr=$2; shift ;; -o) out=$2; shift ;; -w) fmt=$2; shift ;; --max-time) shift ;; + --*) ;; -*f*) fail=1 ;; -*) ;; *) url=$1 ;; + esac + shift + done + key=$(printf '%s' "${url%%[?]*}" | tr -c 'A-Za-z0-9._-' '_') + d="#{bin}/www/$key" + code=$(cat "$d/code" 2>/dev/null || echo 404) + [ -z "$hdr" ] || cat "$d/headers" > "$hdr" 2>/dev/null || : > "$hdr" + if [ -n "$out" ]; then cat "$d/body" > "$out" 2>/dev/null || : > "$out"; else cat "$d/body" 2>/dev/null; fi + [ -z "$fmt" ] || printf '%s' "$code" + [ -n "$fail" ] && [ "$code" -ge 400 ] && exit 22 + exit 0 + SH + FileUtils.chmod(0o755, File.join(bin, "gh")) + FileUtils.chmod(0o755, File.join(bin, "curl")) + bin + end + + def web(bin, url, body, code: 200, headers: "HTTP/2 #{code}\r\n\r\n") + d = File.join(bin, "www", url.gsub(/[^A-Za-z0-9._-]/, "_")) + FileUtils.mkdir_p(d) + File.write(File.join(d, "code"), code.to_s) + File.write(File.join(d, "headers"), headers) + File.write(File.join(d, "body"), body) + end + + # The website's main HEAD (the repository files the site-evidence job saves) + # and the production origin, whose release.json Bot Fight Mode challenges + # (as it does for GitHub runners) while llms.txt and site.js are served. + def site(bin, manifest, prod_llms: "llms 2.1\n", prod_llms_code: 200, prod_manifest: :challenge) + File.write(File.join(bin, "site/head"), "#{SITE_HEAD}\n") + files = { "release.json" => manifest, "llms.txt" => "llms 2.1\n", "site.js" => "/* site 2.1 */\n" } + files.each { |name, body| File.write(File.join(bin, "site/files", name), body) } + web(bin, "#{PROD}/llms.txt", prod_llms, code: prod_llms_code) + web(bin, "#{PROD}/site.js", files["site.js"]) + case prod_manifest + when :challenge then web(bin, "#{PROD}/release.json", "Just a moment...", code: 403, headers: CHALLENGE_HEADERS) + when :forbidden then web(bin, "#{PROD}/release.json", "forbidden", code: 403) + else web(bin, "#{PROD}/release.json", prod_manifest) + end + end + + # The site-evidence job's step, run for real against the stubbed website API. + def site_evidence(work, bin, origin) + dir = File.join(File.dirname(bin), "site-evidence") + out, err, status = reconcile(work, bin, origin, "--site-evidence", { "RELEASE_STATE_TOKEN" => "" }, dir) + assert status.success?, "#{out}\n#{err}" + dir + end + + # The manifest release-state generates, through the real --manifest-only path. + def generated_manifest(work, bin, origin) + out, err, status = reconcile(work, bin, origin, "--manifest-only") + assert status.success?, "#{out}\n#{err}" + json = out[/^\{\n.*?^\}$/m] + JSON.parse(json) + json + "\n" + end + + def recorded + @recorded ||= JSON.parse(File.read(FIXTURE_STATE)) + end + + def published_release(draft: false, tamper: nil) + assets = recorded.dig("platforms", "mac", "artifacts").map { |a| [a["name"], a["sha256"]] } + assets << ["SHA256SUMS.txt", SUMS] + assets.map! { |n, h| [n, n == tamper ? "0" * 64 : h] } + { "id" => 442_117_184, "tag_name" => "v2.1.0", "draft" => draft, "target_commitish" => CANDIDATE, + "assets" => assets.map { |n, h| { "name" => n, "digest" => "sha256:#{h}" } } }.to_json + end + + def reconcile(work, bin, origin, mode, extra = {}, *args) + env = { "PATH" => "#{bin}:#{ENV['PATH']}", "RUNNER_TEMP" => File.dirname(bin), "GH_TOKEN" => "read-token", + "RELEASE_STATE_TOKEN" => "app-token", "RELEASE_STATE_REMOTE" => "file://#{origin}", + "GITHUB_REPOSITORY" => "raiseCatError/meowdisplay", "VERSION" => "2.1.0", "CANDIDATE_SHA" => CANDIDATE } + # Executed directly, exactly as the workflow step does. + Open3.capture3(env.merge(extra), File.join(work, "scripts/release/reconcile-mac-release.sh"), mode, *args) + end + + def remote_state(origin) + JSON.parse(`git -C #{origin} show refs/heads/release-state:releases/2.1.0.json`) + end + + def state_commits(origin) + `git -C #{origin} rev-list --count refs/heads/release-state`.to_i + end + + def with_fixture(release_json: published_release, **stub) + Dir.mktmpdir("recovery-it-", scratch_base) do |dir| + origin, work = setup_remotes(dir, File.read(FIXTURE_STATE)) + yield origin, work, stub_bin(dir, release_json: release_json, **stub) + end + end + + def scratch_base + File.directory?("/Volumes/T7Tmp/ai-dev/tmp") ? "/Volumes/T7Tmp/ai-dev/tmp" : Dir.tmpdir + end + + def test_fixture_is_the_recorded_failed_publication + assert_equal "failed", recorded.dig("publication", "stage") + assert_equal "approved", recorded.dig("platforms", "mac", "stage") + assert_equal "published", recorded.dig("platforms", "ios", "stage") + assert_equal %w[mac ios], recorded["requiredPlatforms"] + assert_equal CANDIDATE, recorded.dig("candidate", "sha") + end + + def test_preflight_runs_the_real_gate_on_the_frozen_candidate_and_writes_nothing + with_fixture do |origin, work, bin| + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--preflight", "RELEASE_STATE_TOKEN" => "") + assert status.success?, "#{out}\n#{err}" + assert_includes out, "Approved candidate config verified: Mac + iOS; Android excluded" + assert_includes out, "Read-only preflight passed" + assert_equal before, state_commits(origin) + refute File.exist?(File.join(bin, "gh.log")), "preflight must not call the GitHub API" + end + end + + def test_reconcile_moves_failed_to_in_progress_and_records_mac_then_is_idempotent + with_fixture do |origin, work, bin| + out, err, status = reconcile(work, bin, origin, "--execute") + assert status.success?, "#{out}\n#{err}" + state = remote_state(origin) + assert_equal "in-progress", state.dig("publication", "stage") + assert_equal "published", state.dig("platforms", "mac", "stage") + assert_equal "https://github.com/raiseCatError/meowdisplay/releases/tag/v2.1.0", state.dig("platforms", "mac", "releaseUrl") + assert_equal "published", state.dig("platforms", "ios", "stage") + assert_equal "READY_FOR_DISTRIBUTION", state.dig("platforms", "ios", "storeState") + assert_equal "pending", state.dig("platforms", "android", "stage"), "Android is excluded and untouched" + assert_includes out, '"mac"' + refute_includes out, '"android"' + gh_calls = File.read(File.join(bin, "gh.log")) + refute_match(/release (edit|create|upload|delete)|-X (POST|PATCH|PUT|DELETE)/, gh_calls) + + # A re-run (e.g. a retried job) changes nothing. + commits = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--execute") + assert status.success?, "re-run: #{out}\n#{err}" + assert_equal commits, state_commits(origin) + end + end + + def test_reconcile_writes_nothing_while_the_release_is_still_a_draft + with_fixture(release_json: published_release(draft: true)) do |origin, work, bin| + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--execute") + refute status.success? + assert_includes out + err, "is still a draft: nothing was published" + assert_equal before, state_commits(origin) + assert_equal "failed", remote_state(origin).dig("publication", "stage") + end + end + + def test_reconcile_writes_nothing_when_a_live_asset_differs_from_the_record + with_fixture(release_json: published_release(tamper: "MeowDisplay.dmg")) do |origin, work, bin| + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--execute") + refute status.success? + assert_includes out + err, "live assets of v2.1.0 are" + assert_equal before, state_commits(origin) + end + end + + def test_reconcile_writes_nothing_when_another_release_is_latest + with_fixture(latest: "v2.0.0") do |origin, work, bin| + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--execute") + refute status.success? + assert_includes out + err, "Latest release is 'v2.0.0', expected 'v2.1.0'" + assert_equal before, state_commits(origin) + end + end + + def test_finish_needs_the_live_site_then_finishes_once + with_fixture do |origin, work, bin| + _, _, status = reconcile(work, bin, origin, "--execute") + assert status.success? + manifest = generated_manifest(work, bin, origin) + site(bin, manifest, prod_manifest: '{"version":"2.0.0"}') + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--finish") + refute status.success? + assert_includes out + err, "serves version '2.0.0', not 2.1.0; deploy the website first (nothing recorded)" + assert_equal before, state_commits(origin) + + web(bin, "#{PROD}/release.json", manifest) + out, err, status = reconcile(work, bin, origin, "--finish", "PROMOTION_PR" => "250") + assert status.success?, "#{out}\n#{err}" + assert_includes out, "fetched directly (version 2.1.0)" + refute_match(/check-runs/, File.read(File.join(bin, "gh.log")), "a direct fetch needs no deployment evidence") + state = remote_state(origin) + assert_equal "published", state.dig("publication", "stage") + assert_equal 250, state.dig("publication", "promotionPr") + assert_equal "published", state.dig("website", "stage") + + out, err, status = reconcile(work, bin, origin, "--finish") + assert status.success?, "#{out}\n#{err}" + assert_includes out, "already recorded as published" + end + end + + # Run 43125145760: Bot Fight Mode challenged the runner on release.json. + def finish_through_challenge(sha: :site, manifest: nil, evidence: true, tamper: nil, **site_options) + with_fixture do |origin, work, bin| + _, _, status = reconcile(work, bin, origin, "--execute") + assert status.success? + manifest ||= generated_manifest(work, bin, origin) + site(bin, manifest, **site_options) + dir = evidence ? site_evidence(work, bin, origin) : "" + tamper&.call(dir) + sha = Digest::SHA256.hexdigest(manifest) if sha == :site + before = state_commits(origin) + out, err, status = reconcile(work, bin, origin, "--finish", + "LIVE_RELEASE_SHA256" => sha.to_s, "SITE_EVIDENCE_DIR" => dir) + yield out + err, status, origin, before + end + end + + def assert_refused(text, status, origin, before, message) + refute status.success?, text + assert_includes text, message + assert_includes text, "nothing recorded" + assert_equal before, state_commits(origin), "nothing may be written" + assert_equal "pending", remote_state(origin).dig("website", "stage") + assert_equal "in-progress", remote_state(origin).dig("publication", "stage") + end + + def test_site_evidence_saves_the_website_head_files_and_writes_nothing + with_fixture do |origin, work, bin| + site(bin, "{}\n") + before = state_commits(origin) + dir = site_evidence(work, bin, origin) + assert_equal SITE_HEAD, File.read(File.join(dir, "head")).strip + assert_equal "{}\n", File.read(File.join(dir, "release.json")) + assert_equal "llms 2.1\n", File.read(File.join(dir, "llms.txt")) + assert_equal "/* site 2.1 */\n", File.read(File.join(dir, "site.js")) + assert_equal before, state_commits(origin) + refute_match(/releases\/442117184|release edit/, File.read(File.join(bin, "gh.log"))) + end + end + + def test_finish_through_a_challenge_with_complete_production_evidence + finish_through_challenge do |text, status, origin, _| + assert status.success?, text + assert_includes text, "answered this runner with a Cloudflare challenge" + assert_includes text, "website evidence: #{SITE} main HEAD #{SITE_HEAD}" + assert_includes text, "main's release.json = release-state's manifest" + assert_includes text, "production https://meowdisplay.app/llms.txt = main@#{SITE_HEAD[0, 12]}" + assert_includes text, "production https://meowdisplay.app/site.js = main@#{SITE_HEAD[0, 12]}" + state = remote_state(origin) + assert_equal "published", state.dig("publication", "stage") + assert_equal "published", state.dig("website", "stage") + assert_equal "https://meowdisplay.app/release.json", state.dig("website", "url") + end + end + + def test_challenge_without_the_approvers_production_hash_records_nothing + finish_through_challenge(sha: "") do |text, status, origin, before| + assert_refused(text, status, origin, before, "live_release_sha256 is required here") + end + end + + def test_challenge_with_a_different_production_hash_records_nothing + finish_through_challenge(sha: "1" * 64) do |text, status, origin, before| + assert_refused(text, status, origin, before, "is not main@") + end + end + + def test_challenge_without_website_evidence_records_nothing + finish_through_challenge(evidence: false) do |text, status, origin, before| + assert_refused(text, status, origin, before, "no website evidence (SITE_EVIDENCE_DIR)") + end + finish_through_challenge(tamper: ->(dir) { File.delete(File.join(dir, "site.js")) }) do |text, status, origin, before| + assert_refused(text, status, origin, before, "website evidence lacks site.js") + end + end + + def test_challenge_with_a_manifest_unlike_release_state_records_nothing + finish_through_challenge(manifest: "{\"version\":\"2.1.0\",\"platforms\":{\"android\":{}}}\n") do |text, status, origin, before| + assert_refused(text, status, origin, before, "is not what release-state describes") + end + end + + def test_challenge_when_production_serves_another_build_records_nothing + finish_through_challenge(prod_llms: "llms 2.0\n") do |text, status, origin, before| + assert_refused(text, status, origin, before, "production https://meowdisplay.app/llms.txt is not main@") + end + end + + def test_challenge_when_production_is_unreachable_records_nothing + finish_through_challenge(prod_llms_code: 403) do |text, status, origin, before| + assert_refused(text, status, origin, before, "answered HTTP 403; production unverified") + end + end + + def test_a_403_that_is_not_a_cloudflare_challenge_gets_no_fallback + finish_through_challenge(prod_manifest: :forbidden) do |text, status, origin, before| + assert_refused(text, status, origin, before, "answered HTTP 403 without a Cloudflare challenge") + refute_includes text, "website evidence:" + end + end + + def test_finish_refuses_before_reconcile + with_fixture do |origin, work, bin| + out, err, status = reconcile(work, bin, origin, "--finish") + refute status.success? + assert_includes out + err, "finish needs publication in-progress with Mac published (run action=reconcile first)" + end + end +end diff --git a/scripts/release/test/workflow_checks_test.rb b/scripts/release/test/workflow_checks_test.rb index 97a1709f8..80f2aab19 100644 --- a/scripts/release/test/workflow_checks_test.rb +++ b/scripts/release/test/workflow_checks_test.rb @@ -151,6 +151,8 @@ def test_an_incomplete_latest_release_is_caught "release-publish.yml" => ['--draft --target "$SHA"', '--target "$SHA"']) assert_caught("publish-mac must verify the draft's assets before Latest", "release-publish.yml" => ['gh release download "v$VERSION"', 'echo download "v$VERSION"']) + assert_caught("publish-mac must sort expected draft asset names with LC_ALL=C sort", + "release-publish.yml" => ['LC_ALL=C sort', 'sort']) assert_caught("publish-mac must revert Latest when the live feeds don't verify", "release-publish.yml" => ['--draft=true', '--draft=false-ish']) assert_caught("publish-mac must open the gate (publish start) before publishing", @@ -270,4 +272,47 @@ def test_platform_workflows_never_publish_or_submit assert_caught("stores must wait for publish-mac (or a resume)", "release-publish.yml" => ["(!inputs.resume && needs.publish-mac.result == 'success')", "(true)"]) end + + # Run 43117186436: the recovery workflow ran reconcile-mac-release.sh + # directly while Git tracked it as 100644, and every check still passed. + def test_a_directly_run_script_must_be_tracked_executable + Dir.mktmpdir do |repo| + system("git", "init", "-q", repo, exception: true) + index, status = Open3.capture2("git", "-C", ROOT, "ls-files", "-s", "--", "scripts") + assert status.success? + flipped = index.sub(/^100755 (\h+ 0\tscripts\/release\/reconcile-mac-release\.sh)$/, '100644 \\1') + refute_equal index, flipped, "fixture: reconcile-mac-release.sh is not 100755 in the real index" + _, status = Open3.capture2("git", "-C", repo, "update-index", "--add", "--info-only", "--index-info", stdin_data: flipped) + assert status.success? + out, status = Open3.capture2e({ "MEOW_REPO_ROOT" => repo }, "ruby", CHECKER) + refute status.success?, out + assert_includes out, "recover-mac-release.yml: job verify runs scripts/release/reconcile-mac-release.sh directly, but Git tracks it as 100644" + assert_includes out, "scripts/release/reconcile-mac-release.sh: tracked as 100644" + end + end + + def test_recovery_publication_stays_behind_its_gates + f = "recover-mac-release.yml" + assert_caught("the publish step must run only for action == 'publish'", + f => [" if: ${{ inputs.action == 'publish' }}\n env:\n GH_TOKEN: ${{ github.token }}\n VERSION: ${{ inputs.version }}\n CANDIDATE_SHA: ${{ inputs.candidate_sha }}\n DRAFT_ID", + " env:\n GH_TOKEN: ${{ github.token }}\n VERSION: ${{ inputs.version }}\n CANDIDATE_SHA: ${{ inputs.candidate_sha }}\n DRAFT_ID"]) + assert_caught("verify job must hold no credential", + f => [" runs-on: xcode-27\n permissions:\n contents: read\n steps:", + " runs-on: xcode-27\n permissions:\n contents: write\n steps:"]) + assert_caught("step \"Finish publication (website serves release.json)\" writes the release state without RELEASE_STATE_TOKEN", + f => [" PROMOTION_PR: ${{ inputs.promotion_pr }}", " PROMOTION_PR: ${{ inputs.promotion_pr }}\n RELEASE_STATE_TOKEN: x"]) + assert_caught("publish job must use the release-publish environment", + f => [" environment: release-publish\n", " environment: release-elsewhere\n"]) + end + + def test_recovery_site_evidence_stays_read_only + f = "recover-mac-release.yml" + assert_caught("site-evidence must stay read-only", + f => [" repositories: MeowDisplayWebsite\n permission-contents: read", + " repositories: MeowDisplayWebsite\n permission-contents: write"]) + assert_caught("site-evidence must stay read-only", + f => [" environment: website-update\n", " environment: release-state\n"]) + assert_caught("job site-evidence must run check-environment.sh website-update before using secrets", + f => [" run: scripts/release/check-environment.sh website-update\n", " run: true\n"]) + end end diff --git a/tools/press-kit/approved-assets.json b/tools/press-kit/approved-assets.json index 34374fe94..eff60f035 100644 --- a/tools/press-kit/approved-assets.json +++ b/tools/press-kit/approved-assets.json @@ -138,24 +138,24 @@ { "file": "Information/MeowDisplay-Descriptions.md", "category": "Information", - "bytes": 5062, - "sha256": "4f32eb63e8390c068d67b7ce39d002911ee4b33c32206c018fa84dbf00d20cbb", + "bytes": 5143, + "sha256": "ad89d40df3b8564cd2bc66f6cd21a63636a3f75d3879be8b74500c9e9bf08944", "review": "approved", "caption": "Descriptions" }, { "file": "Information/MeowDisplay-Reviewer-Guide.md", "category": "Information", - "bytes": 4793, - "sha256": "f6eddfd5abcda26b36347d1685b0d8ad46058d316ff6d3dd78ffde3aaf93d202", + "bytes": 4794, + "sha256": "83857e3cc1576c3a656b09db37fe79bde8782e0ddca9bdd2e1d9e0aedad672fa", "review": "approved", "caption": "Reviewer Guide" }, { "file": "Information/MeowDisplay-Usage-and-Brand-Guidelines.md", "category": "Information", - "bytes": 3684, - "sha256": "fb7c71994c862a891efc246031469903bbc6556c5bbc3b5314f529fcbbca88a4", + "bytes": 3681, + "sha256": "b988a7eea4ed5027b2dcedeeeba887a7bad02d5c7f41948602cb61e0595c823a", "review": "approved", "caption": "Usage and Brand Guidelines" }, diff --git a/tools/press-kit/build.py b/tools/press-kit/build.py index 8b8682519..70250ca4b 100644 --- a/tools/press-kit/build.py +++ b/tools/press-kit/build.py @@ -172,7 +172,7 @@ def cat(c):
Source
Open source, GPL-3.0 on GitHub
Mac
2.0.0 released · macOS 14 or later (receiver-only app: macOS 12 or later)
iPhone & iPad
2.0.0 released · iOS / iPadOS 16.4 or later · App Store
-
Android
Closed testing · Android 10 or later
+
Android
2.0 on Google Play · Android 10 or later
Connections
USB (iPhone, iPad) · local Wi-Fi · Remote Access over your own private network, such as Tailscale
Developer
Jai Sukka (raiseCatError), independent
''') @@ -234,7 +234,7 @@ def cat(c):

Five-minute demo

  1. Mirror the Mac on an iPad in landscape.
  2. Switch the iPad to Extend and drag a window onto it.
  3. On iPhone, open Window view and add a second window from Stage Peek.
  4. Use Stage Peek to search and switch a pane, or show Full Desktop.
  5. Open the keyboard, type in the Text Bar and watch Zoom While Typing.

Connections

USB (iPhone, iPad) needs no network. Local Wi-Fi finds devices nearby. Remote Access reaches an already paired Mac through a private-network address you provide, such as Tailscale; the address never grants trust.

Security

Pairing needs a matching code and approval on the Mac. Sessions use TLS 1.3 and pinned device identities. Control is a separate, per-session permission set on the Mac.

-

Known issues in 2.0.0

On iPad with the Custom control layout, rotating can leave Window view panes mis-sized until you relaunch (#129). On iPhone in landscape, the default Compact Dock in Stage Peek shows about one window at a time; choose Settings › Controls › Dock › Normal for more (#130). Android is in closed testing.

+

Known issues in 2.0.0

On iPad with the Custom control layout, rotating can leave Window view panes mis-sized until you relaunch (#129). On iPhone in landscape, the default Compact Dock in Stage Peek shows about one window at a time; choose Settings › Controls › Dock › Normal for more (#130).

Reviewer's guide with story angles (Markdown) · 2.0.0 release notes · Troubleshooting

''') icon, logo = by["AppIcon-1024"], by["Logo-512"] @@ -242,7 +242,7 @@ def cat(c):

Two official files. Use the app icon wherever you would show an app, and the rounded logo where the mark needs to stand on its own, on light or dark backgrounds.

MeowDisplay app icon on a light background
App iconThe square master, as submitted to the App Store; platforms apply their own corner mask (shown masked here).1024 × 1024 PNG · Download
MeowDisplay logo on a dark background
LogoThe rounded mark with a transparent background, ready to place on any colour.512 × 512 transparent PNG · Download
- +

Usage permission, brand and trademark notes · Asset provenance

''') labels = {"Screenshots": "Original screenshots · PNG", "Mockups": "Device mockups · transparent PNG", "Graphics": "Promotional graphics · PNG", diff --git a/tools/press-kit/press.template.html b/tools/press-kit/press.template.html index aba44298b..4b0205da5 100644 --- a/tools/press-kit/press.template.html +++ b/tools/press-kit/press.template.html @@ -14,7 +14,7 @@ @@ -22,10 +22,10 @@ {{CONTENT}} diff --git a/version.txt b/version.txt index 227cea215..7ec1d6db4 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.0 +2.1.0