Repository navigation
[AUTOMATED] Ship kuna as one self-contained binary - #1067
Merged
Merged
Conversation
[AUTOMATED] A release archive shipped kuna, decomp_dbg and slacomp, and the compiled SLEIGH tree as a separate asset. Anyone handed only the platform archive got "could not build an architecture ... No sleigh specification" on the first decompile. - The decomp_dbg and slacomp mains move into their libraries (kuna_console::consolemain, kuna_slacomp::slacompmain). The binaries are now thin wrappers, and kuna runs either one as a hidden subcommand. decompile, catalog and specs re-launch the running kuna instead of looking for siblings. KUNA_DECOMP_DBG / KUNA_SLACOMP / --decomp-dbg still pick a separate binary. - The cargo feature embed-specs (build.rs) builds every file under specs/, except the SLEIGH sources, into kuna as an include_bytes! table with a content id. specs_dir() unpacks it once into the per-user cache directory (system temp as a fallback), staged and renamed into place. KUNA_SPECS and KUNA_ROOT still win. - Release CI builds kuna after the specs job, with embed-specs, ships only kuna + LICENSE + NOTICE, and smoke-tests the binary alone in an empty directory. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013GVEdwXAANr7pVSXo5czqb
…he smoke test [AUTOMATED] Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013GVEdwXAANr7pVSXo5czqb
mahaloz
added a commit
to TsingShui/kuna
that referenced
this pull request
Oct 15, 2026
[AUTOMATED] Resolve conflicts with the single-binary console (Noelo-Lab#1067): the explicit external route now runs the resolved decomp_dbg Program, and the docs describe the in-process catalog beside the built-in console. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RVkhSR3PZKoRmKDbGHjfqH
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.
A release
kunacannot decompile by itself. It needsdecomp_dbgbeside it and the separatekuna-v<ver>-specs.tar.gzextracted next to it, so someone handed only the platform archive, or only the binary, fails on the first run. With v1.818's static Linux build:On Windows the same setup reports
could not build an architecture ... No sleigh specification.With this change, each release archive holds just
kuna(plus LICENSE/NOTICE), and that one file works anywhere:Changes
decomp_dbgandslacompare now library entry points (kuna_console::consolemain,kuna_slacomp::slacompmain). The standalone binaries are thin wrappers around them, andkunaruns them as the hidden subcommandskuna decomp_dbg/kuna slacomp.decompile,catalogandspecsre-launch the runningkuna, so the console stays a separate process, as before.KUNA_DECOMP_DBG,KUNA_SLACOMPand--decomp-dbgstill select a separate binary.embed-specs(release CI turns it on). It builds the compiledspecs/tree, without the SLEIGH sources, intokuna. The engine reads specs from disk, so on first use the tree is unpacked once to~/.cache/kuna/specs-<content hash>/(%LOCALAPPDATA%\kunaon Windows,~/Library/Caches/kunaon macOS, the system temp directory as a fallback). Each unpack is staged and then renamed into place, so concurrent first runs are safe.KUNA_SPECSandKUNA_ROOTstill take precedence.kunaafter the specs job and smoke-tests the binary alone in an empty directory.kuna-v<ver>-specs.tar.gzis still published.Binary size: +15 MB uncompressed (the
.slafiles are already compressed). Unpacking costs about 45 ms, once. Decompile latency is unchanged: separatedecomp_dbgvs self-launch on the same build were both 155–170 ms.Tests
tests/single_binary_cli.rscopieskunainto an empty directory. It checks thatkuna decompileworks there with nodecomp_dbg, and thatkuna specswith noslacompproduces atoy_be.slabyte-identical to the onemake specsbuilds. Both fail on main.🤖 Generated with Claude Code
https://claude.ai/code/session_013GVEdwXAANr7pVSXo5czqb