Repository navigation
fix(tldraw): resolve the launcher name from the payload (com.tldraw.Offline) - #163
Merged
Merged
Conversation
…ffline) tldraw offline v1.11.0 shipped its Electron launcher as `@tldesktop`, and both apply_extra.sh and the wrapper named that file directly. v1.12.0 renamed it to `tldraw-offline`. Pin refreshes are automated, so the rename went straight out: apply_extra's binary assertion failed and every install and update since has ended in `apply_extra script failed, exit status 256`. Reported in #130. apply_extra now reads the launcher out of the .desktop file upstream ships in the same .deb, whose Exec is an absolute path into the app directory, and records the resolved name beside the staged tree. The wrapper reads it from there. Nothing in the repo names the binary any more, so the next rename is a non-event rather than a broken update for everyone who has the app installed. The upstream tree itself is still staged byte-for-byte; the resolved name lives next to it, not inside it. Verified: apply_extra unpacks the pinned v1.12.1 payload as uid 0 with every capability dropped, and the app builds, installs from the signed local repo and launches through zypak. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Nothing in the pipeline looked inside an artifact a pin refresh had just pinned. check-apply-extra.sh — the only check that opens the payload — ran for apps a PR *adds*, and the auto-update PRs it would have to run in are opened with the default GITHUB_TOKEN, which does not trigger pr-checks at all. So a version bump reached users unopened, and #130 is what that costs: upstream renamed a file inside the .deb and the app became uninstallable. Both update workflows now unpack the new payload the way an install does before the pin ships. The daily sweep holds back an app whose artifact no longer unpacks — it keeps its last installable pin, the PR body says which and why, and the run goes red for a human — instead of failing the whole batch or shipping the break. release-dispatch verifies its single app, and skips the download on the common "nothing moved" path. pr-checks widens the same check from new apps to any app whose sha256 moved: a new payload is a payload no unpack script has seen, whoever bumped it. New apps still qualify, since their pins arrive as added lines. check-apply-extra.sh grows INSTALL_RUNTIME=1 so a workflow that only checks payloads can fetch the runtime instead of building the app first. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What — fixes
com.tldraw.Offline, which cannot be installed or updated right now, and closes the pipeline gap that shipped the break. Reported by @h1zardian in #130.Fixes #130.
Why it broke — upstream renamed the Electron launcher inside its
.deb: v1.11.0 shipped/opt/tldraw offline/@tldesktop, v1.12.0 renamed it to/opt/tldraw offline/tldraw-offline.apply_extra.shasserted the old name and the wrapperexeced it, so the daily pin refresh turned every install and update into:The asset name never changed (
tldraw-offline-linux-amd64.deb), so nothing upstream of the user's machine noticed. The currently published pin (v1.12.1) has the same layout, so this affects everyone with the app installed, not one reporter.Fix —
apply_extrareads the launcher out of the.desktopfile upstream ships in the same.deb, whoseExecis an absolute path into the app directory (Exec="/opt/tldraw offline/tldraw-offline" %U), and records the resolved name beside the staged tree; the wrapper reads it from there. Nothing in the repo names the binary any more. The upstream tree is still staged byte-for-byte — the resolved name lives next to it, not inside it.Why it reached users —
check-apply-extra.shis the only check that opens the payload, and it ran for apps a PR adds. The PRs that would need it are the automated pin refreshes, and those are opened with the defaultGITHUB_TOKEN, which does not triggerpr-checksat all — the auto-update PRs have run zero checks (gh pr checkson #156/#157/#160: "no checks reported"). A version bump was effectively unreviewed.update-check.ymlnow unpacks each recomputed payload before pinning it, and holds back an app whose artifact no longer unpacks: it keeps its last installable pin, the PR body lists it with the reason, and the run goes red for a human. One broken upstream no longer blocks or poisons the rest of the batch.release-dispatch.ymlverifies its single app, skipping the download on the common "nothing moved" path.pr-checks.ymlwidens the check from new apps to any app whosesha256moved or whoseapply_extra.shchanged.check-apply-extra.shgrowsINSTALL_RUNTIME=1so a payload-only workflow can fetch the runtime instead of building the app first.Sandbox — unchanged.
Verification
read-descriptor/audit-descriptorclean.scripts/check-apply-extra.sh com.tldraw.Offline— the pinned v1.12.1.debunpacks as uid 0 with every capability dropped, launcher resolved totldraw-offline.scripts/publish.sh --verify com.tldraw.Offline— builds (appstreamcli composeSuccess), installs from the signed local repo./app/extra/launchercontainstldraw-offline.update-check.ymlend to end — it only fires when an upstream artifact actually stops unpacking. The pieces it is built from (the check, thegit checkoutof one app dir) are exercised above and unchanged.🤖 Generated with Claude Code