Repository navigation
fix(opentubex): ship Deno as extra-data, not a built-in module - #296
Merged
Merged
Conversation
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
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.
Why
R2 storage jumped from <50 MB to ~90 MB. Cause:
org.opentubex.OpenTubeX(added in #275) carried adenomodule with a plaintype: archivesource, 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 whosetype: archivesources aren't small prebuilt stacks.Change
deno-{x86_64,aarch64}-unknown-linux-gnu.zipas extra-data instead (downloaded at install time, never in the repo/R2).apply_extra.shunpacks it — the zip holds a singledenoexecutable — next to the app payload, using the samebsdtar --no-same-ownerpath already proven for the portable zip.opentubex-wrapperprepends/app/extratoPATHso OpenTubeX's yt-dlp still resolvesdeno(previously at/app/bin/deno, also on PATH).MANAGED EXTRA-DATAblock (update-pins.mjsrebuilds that from resolver output), mirroring theappimage-toolspattern 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_pinspass;read-extra-data.mjslists all four extra-data entries for both arches.Follow-up
After merge + publish,
prune-and-reclaim.shreclaims the now-orphaned deno objects from R2 (new summary goes live first, then the stale objects are deleted).🤖 Generated with Claude Code