Skip to content

fix(opentubex): ship Deno as extra-data, not a built-in module - #296

Merged
jing2uo merged 1 commit into
mainfrom
fix/opentubex-deno-extra-data
Sep 1, 2026
Merged

jing2uo merged 1 commit into
mainfrom
fix/opentubex-deno-extra-data

Conversation

@jing2uo

@jing2uo jing2uo commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Why

R2 storage jumped from <50 MB to ~90 MB. Cause: org.opentubex.OpenTubeX (added in #275) carried a deno module with a plain type: archive source, so the Deno runtime binary — 95 MB stripped, ~41 MB after OSTree archive-z2 recompression — was baked into the OSTree commit and synced to R2. It's the only registry app whose type: archive sources aren't small prebuilt stacks.

Change

  • Fetch the official deno-{x86_64,aarch64}-unknown-linux-gnu.zip as extra-data instead (downloaded at install time, never in the repo/R2).
  • apply_extra.sh unpacks it — the zip holds a single deno executable — next to the app payload, using the same bsdtar --no-same-owner path already proven for the portable zip.
  • opentubex-wrapper prepends /app/extra to PATH so OpenTubeX's yt-dlp still resolves deno (previously at /app/bin/deno, also on PATH).
  • Pinned by hand and kept outside the MANAGED EXTRA-DATA block (update-pins.mjs rebuilds that from resolver output), mirroring the appimage-tools pattern in OpenShot/Folo.

Verified: deno v2.9.5 zip contains exactly ['deno'] at root; extracted binary runs (deno 2.9.5 ... x86_64). test_registry, test_update_pins pass; read-extra-data.mjs lists all four extra-data entries for both arches.

Follow-up

After merge + publish, prune-and-reclaim.sh reclaims the now-orphaned deno objects from R2 (new summary goes live first, then the stale objects are deleted).

🤖 Generated with Claude Code

The `deno` module staged the Deno runtime via `type: archive`, so its
~95 MB (stripped) binary was baked into the OSTree commit and synced to
R2 — R2 grew from <50 MB to ~90 MB after OpenTubeX landed (#275).

Fetch the official deno zip as extra-data (x86_64 + aarch64) instead.
apply_extra.sh unpacks it (a single `deno` executable) next to the app
payload with the same bsdtar path already used for the portable zip, and
opentubex-wrapper prepends /app/extra to PATH so yt-dlp still finds it.
Pinned by hand and kept outside the MANAGED EXTRA-DATA block, matching
the appimage-tools pattern in OpenShot/Folo.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Bkxv9eZ46GSKuPqDBTBnmK
@jing2uo
jing2uo merged commit d3a9822 into main Sep 1, 2026
@jing2uo
jing2uo deleted the fix/opentubex-deno-extra-data branch September 1, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant