Repository navigation
Development
CaptainGummiball edited this page Nov 25, 2026
·
2 revisions
git clone https://github.com/CptGummiball/ModFerry.git
cd ModFerry
python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
python -m unittest discover -s tests -v
python app.pyUse MODFERRY_DATA with a scratch folder while developing so your real tokens and profiles stay untouched. The tests do this automatically. CI runs the tests on Windows and Ubuntu with Python 3.10 and 3.13.
| File | Purpose |
|---|---|
app.py |
Flask app: routes, validation, CurseForge/Modrinth uploads, history |
file_inspect.py |
project types, allowed extensions, modpack detection, dispatcher |
jar_inspect.py |
mod metadata (fabric/quilt/forge/neoforge) and Java bytecode |
pack_formats.py |
pack.mcmeta parsing and the pack format → Minecraft version table |
secrets_store.py |
encrypted token store (DPAPI / Fernet) |
markdown_preview.py |
sanitized Markdown rendering |
messages.py |
backend messages in German and English |
static/ |
index.html, style.css, app.js, i18n/*.json, images |
tests/ |
unit tests (no network) |
No build step and no JS framework: edit and reload.
- UI texts:
static/i18n/de.jsonandstatic/i18n/en.json(same keys in both). HTML elements usedata-i18n,data-i18n-ph(placeholder) anddata-i18n-title; JS usest('key', {var}). - Backend errors:
messages.py. The UI sends its language in theX-ModFerry-Langheader. - A new language: add
static/i18n/<code>.json, an<option>in the language select, the language code toLANGSinmessages.pyand a translation to every entry inMESSAGES.
When Mojang releases a new version, add a row to TABLE in pack_formats.py:
(('26.4',), (104, 0), (128, 1)), # (versions, resource pack format, data pack format)Take the values from the release table on the Minecraft Wiki and add a test in tests/test_v4.py.
- CurseForge upload API: https://support.curseforge.com/support/solutions/articles/9000197321-curseforge-upload-api
- Modrinth create version: https://docs.modrinth.com/api/operations/createversion/
- Modrinth modpack format: https://support.modrinth.com/en/articles/8802351-modrinth-modpack-format-mrpack
- Bump
VERSIONinapp.pyand add a section toCHANGELOG.md. - Run the tests.
- Build the ZIP with
python tools/make_release.py(createsdist/ModFerry-<version>.zipwithout user data, venv or caches). - Tag
vX.Y.Z, create a GitHub release and attach the ZIP.