Repository navigation
Add-ons as a .zip for Import Add-ons, on the addons release and the site - #138
Merged
Merged
Conversation
addons/tools/addons_zip.py unpacks the installer's Comunidade.xpx.xz and Comunidade-extras.xz into CoreRules-Community-Addons-VERSION.zip: the consolidated package, the pictures with pictures.tsv (where each one goes), the texts and a README in English and Portuguese. The zip is the same bytes for the same input. A new job in the Addons package workflow builds and checks it and, on main, attaches it to the addons release as CoreRules-Community-Addons.zip and with its version. The site, the add-ons README and GUIA link it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NiPLVQ35xkzt2yvTEn4XKU
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.
Requested by Brahm · project thread
The validated add-ons that the Linux installer carries, as one
.zipthat the app's new Import Add-ons… reads (on Linux, Windows and macOS), downloadable from theaddonsrelease and the landing page.What changes
addons/tools/addons_zip.py VERSION DIRunpacksaddons/Comunidade.xpx.xzandaddons/Comunidade-extras.xzintoCoreRules-Community-Addons-VERSION.zip, one folder with:Comunidade.xpx(36,525 items, Expansion format)pictures/(668 BMPs) andpictures.tsv(pictureplace, relative to the tsv's folder)texts/(309 author texts),addons.tsvREADME.txtandLEIA-ME.txtThe output is deterministic (fixed dates and order). ~39 MB.
.github/workflows/addons.yml: newzipjob (afterpackage) builds and checks the zip, uploads it as an artifact, and on main attachesCoreRules-Community-Addons.zip(always newest) and the versioned copy to theaddonsrelease. The release body mentions the zip.site/index.html: download entry and button for the zip in the Downloads and Add-ons sections.addons/README.md,addons/GUIA.md: how to use the zip.The structure was agreed with the Import Add-ons work (branch
claude/project-thread-t6nrhz): it reads.zipdirectly, imports.xpxin one pass with the second race/class round, and usespictures.tsvto place pictures. Until that ships, the site's instructions point to a menu item that is not released yet.Testing
pictures.tsvexists in the zip.cr importof the zip'sComunidade.xpxinto the extracted Expansion data: exit 0, 36,525 items listed, 558 classes inClassU.dat, as with the installer.Generated by Claude Code