From 7ecda4ea3b32c36833d6004fbbdfd72b1e56c16a Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sat, 8 Aug 2026 20:20:43 +0200 Subject: [PATCH] Rename package/app to FeNigma consistently - src/ironnest_assist/ -> src/fenigma/ - run.sh invokes -m fenigma.app - APP_ID: eu.dominik-roth.IronNestAssist -> eu.dominik-roth.FeNigma - window title, IronNestApp class -> FeNigmaApp - __init__.py docstring, README pgrep hint updated IRON NEST (the game's own name, e.g. NEST_KEYWORD in ocr.py) is left untouched, only our own project/app naming changed. Verified: clean import under the new module path, install.sh still builds the venv correctly, and the OCR regression sweep (9 known screenshots) still passes. Co-Authored-By: Claude Sonnet 5 --- README.md | 2 +- run.sh | 2 +- src/fenigma/__init__.py | 1 + src/{ironnest_assist => fenigma}/app.py | 10 +++++----- src/{ironnest_assist => fenigma}/ballistics.py | 0 src/{ironnest_assist => fenigma}/coord_dialog.py | 0 src/{ironnest_assist => fenigma}/firing_panel.py | 0 src/{ironnest_assist => fenigma}/grid_widget.py | 0 src/{ironnest_assist => fenigma}/models.py | 0 src/{ironnest_assist => fenigma}/ocr.py | 0 src/{ironnest_assist => fenigma}/shells.py | 0 src/{ironnest_assist => fenigma}/solver.py | 0 src/ironnest_assist/__init__.py | 1 - 13 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 src/fenigma/__init__.py rename src/{ironnest_assist => fenigma}/app.py (99%) rename src/{ironnest_assist => fenigma}/ballistics.py (100%) rename src/{ironnest_assist => fenigma}/coord_dialog.py (100%) rename src/{ironnest_assist => fenigma}/firing_panel.py (100%) rename src/{ironnest_assist => fenigma}/grid_widget.py (100%) rename src/{ironnest_assist => fenigma}/models.py (100%) rename src/{ironnest_assist => fenigma}/ocr.py (100%) rename src/{ironnest_assist => fenigma}/shells.py (100%) rename src/{ironnest_assist => fenigma}/solver.py (100%) delete mode 100644 src/ironnest_assist/__init__.py diff --git a/README.md b/README.md index 088f3dc..4eae4d2 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Sets up a venv for the Python deps (Pillow, numpy, pytesseract) and checks for t ./run.sh ``` -Uses the venv from `install.sh` if one exists, otherwise falls back to system `python3`. GTK apps with this app ID are single-instance, if a run gets killed uncleanly it can leave a zombie registered on D-Bus and silently no-op the next launch. If `./run.sh` seems to do nothing, `pgrep -af ironnest_assist` and kill any stragglers first. +Uses the venv from `install.sh` if one exists, otherwise falls back to system `python3`. GTK apps with this app ID are single-instance, if a run gets killed uncleanly it can leave a zombie registered on D-Bus and silently no-op the next launch. If `./run.sh` seems to do nothing, `pgrep -af fenigma` and kill any stragglers first. ## Stack diff --git a/run.sh b/run.sh index 2b2e33e..acdd820 100755 --- a/run.sh +++ b/run.sh @@ -6,4 +6,4 @@ cd "$(dirname "${BASH_SOURCE[0]}")" PYTHON=python3 [ -x .venv/bin/python3 ] && PYTHON=.venv/bin/python3 -exec env PYTHONPATH=src "$PYTHON" -m ironnest_assist.app +exec env PYTHONPATH=src "$PYTHON" -m fenigma.app diff --git a/src/fenigma/__init__.py b/src/fenigma/__init__.py new file mode 100644 index 0000000..0c75069 --- /dev/null +++ b/src/fenigma/__init__.py @@ -0,0 +1 @@ +"""FeNigma: screen-reading helper for IRON NEST: Heavy Turret Simulator.""" diff --git a/src/ironnest_assist/app.py b/src/fenigma/app.py similarity index 99% rename from src/ironnest_assist/app.py rename to src/fenigma/app.py index ccd557d..133d317 100644 --- a/src/ironnest_assist/app.py +++ b/src/fenigma/app.py @@ -1,4 +1,4 @@ -"""IronNest Assist — GTK4/libadwaita app entry point. +"""FeNigma: GTK4/libadwaita app entry point. Layout: a row of category dropdowns on top (+ a universal clipboard-fetch button), the map/grid filling the center. Coordinates can be set by exact @@ -31,7 +31,7 @@ from .grid_widget import GridCanvas # noqa: E402 from .models import Board, Location, Target, TargetType # noqa: E402 from .shells import Shell # noqa: E402 -APP_ID = "eu.dominik-roth.IronNestAssist" +APP_ID = "eu.dominik-roth.FeNigma" def _apply_location(obj, location: Location) -> None: @@ -147,7 +147,7 @@ def _install_css() -> None: class MainWindow(Adw.ApplicationWindow): def __init__(self, app: Adw.Application) -> None: - super().__init__(application=app, title="IronNest Assist") + super().__init__(application=app, title="FeNigma") self.set_default_size(1100, 750) _install_css() @@ -861,7 +861,7 @@ class MainWindow(Adw.ApplicationWindow): rebuild() -class IronNestApp(Adw.Application): +class FeNigmaApp(Adw.Application): def __init__(self) -> None: super().__init__(application_id=APP_ID) @@ -873,7 +873,7 @@ class IronNestApp(Adw.Application): def main() -> int: - app = IronNestApp() + app = FeNigmaApp() return app.run(None) diff --git a/src/ironnest_assist/ballistics.py b/src/fenigma/ballistics.py similarity index 100% rename from src/ironnest_assist/ballistics.py rename to src/fenigma/ballistics.py diff --git a/src/ironnest_assist/coord_dialog.py b/src/fenigma/coord_dialog.py similarity index 100% rename from src/ironnest_assist/coord_dialog.py rename to src/fenigma/coord_dialog.py diff --git a/src/ironnest_assist/firing_panel.py b/src/fenigma/firing_panel.py similarity index 100% rename from src/ironnest_assist/firing_panel.py rename to src/fenigma/firing_panel.py diff --git a/src/ironnest_assist/grid_widget.py b/src/fenigma/grid_widget.py similarity index 100% rename from src/ironnest_assist/grid_widget.py rename to src/fenigma/grid_widget.py diff --git a/src/ironnest_assist/models.py b/src/fenigma/models.py similarity index 100% rename from src/ironnest_assist/models.py rename to src/fenigma/models.py diff --git a/src/ironnest_assist/ocr.py b/src/fenigma/ocr.py similarity index 100% rename from src/ironnest_assist/ocr.py rename to src/fenigma/ocr.py diff --git a/src/ironnest_assist/shells.py b/src/fenigma/shells.py similarity index 100% rename from src/ironnest_assist/shells.py rename to src/fenigma/shells.py diff --git a/src/ironnest_assist/solver.py b/src/fenigma/solver.py similarity index 100% rename from src/ironnest_assist/solver.py rename to src/fenigma/solver.py diff --git a/src/ironnest_assist/__init__.py b/src/ironnest_assist/__init__.py deleted file mode 100644 index 450ac18..0000000 --- a/src/ironnest_assist/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""ironnest-assist: screen-reading helper for IRON NEST: Heavy Turret Simulator."""