Skip to content

Extract Data from CD… inside the app, and release 0.8.0 - #10

Merged
brahm merged 5 commits into
mainfrom
claude/extracao-dados-no-app-eyr9yj
Oct 19, 2026
Merged

brahm merged 5 commits into
mainfrom
claude/extracao-dados-no-app-eyr9yj

Conversation

@brahm

@brahm brahm commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Requested by Brahm · project thread

Before: to run without the CD or Wine, the user had to run packaging/extract-data.sh on an installation or a mounted CD and unpack the result into the app's data folder.

After: the main menu and the "No Core Rules Installation" page offer Extract Data from CD…. It takes the CD's ISO image directly, or the folder of a mounted CD, an installation or a Wine prefix, copies the data into ~/.local/share/corerules/data and opens it. cr extract-data SOURCE [DEST_DIR] does the same from the command line. extract-data.sh is removed. The version goes to 0.8.0 (README, release notes, metainfo, rpm spec); tagging v0.8.0 after the merge publishes the release.

The output matches the script's file for file (only README.txt differs: its source line and its wording) on both CDs' ISO images, on the same CDs extracted as Linux mounts them, and on a Wine installation.

How: cr-store gets a small ISO 9660 reader (iso9660.rs, Joliet when present, else plain names shown as a Linux mount shows them) and extract.rs, which ports the script's choices (Database/UserDbas/Chars, Books, Tables, the two program files, Help/*.cnt, .bak files left out) and writes into a staging folder renamed into place. When the data folder is taken, the package goes next to it; Expansion data takes the folder over from 2.0 data, which moves aside, since the Expansion is where the app writes. Files are written fresh, so copies from a read-only CD stay writable (the script's cp -R kept the CD's read-only modes). New texts are translated in the five catalogs. Main (the add-ons installer app, #11) is merged in, and the release notes mention it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KmpNaiS4AaK33AgTjZzqv1

The app now copies what it uses out of a Core Rules 2.0 or Expansion CD
itself, from the CD's ISO image (read in Rust, no mounting or tools), the
mounted CD, an installation or a Wine prefix, as packaging/extract-data.sh
did. The main menu and the start page offer it, and `cr extract-data`
does the same from the command line. The output matches the script's file
for file on both CDs and on a Wine installation.

The data goes into the app's data folder, or next to it when taken; the
Expansion takes the folder over from 2.0 data, which moves aside. Files
are written writable, where the script's copies from a mounted CD kept the
CD's read-only permissions.

extract-data.sh is removed and the add-ons package no longer ships it: its
static cr extracts the data instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KmpNaiS4AaK33AgTjZzqv1
@brahm brahm self-assigned this Oct 19, 2026
Only the lines that name the removed extract-data.sh change in
packaging/addons/build.sh and the add-ons workflow; the add-ons guide and
installer are being replaced separately.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KmpNaiS4AaK33AgTjZzqv1
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KmpNaiS4AaK33AgTjZzqv1
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KmpNaiS4AaK33AgTjZzqv1
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KmpNaiS4AaK33AgTjZzqv1
@brahm brahm changed the title Extract Data from CD…: extract the data package inside the app Extract Data from CD… inside the app, and release 0.8.0 Oct 19, 2026
@brahm
brahm merged commit 5640ae9 into main Oct 19, 2026
16 checks passed
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.

2 participants