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 <noreply@anthropic.com>
This commit is contained in:
parent
db414782f6
commit
7ecda4ea3b
@ -32,7 +32,7 @@ Sets up a venv for the Python deps (Pillow, numpy, pytesseract) and checks for t
|
|||||||
./run.sh
|
./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
|
## Stack
|
||||||
|
|
||||||
|
|||||||
2
run.sh
2
run.sh
@ -6,4 +6,4 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
|
|||||||
PYTHON=python3
|
PYTHON=python3
|
||||||
[ -x .venv/bin/python3 ] && PYTHON=.venv/bin/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
|
||||||
|
|||||||
1
src/fenigma/__init__.py
Normal file
1
src/fenigma/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""FeNigma: screen-reading helper for IRON NEST: Heavy Turret Simulator."""
|
||||||
@ -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
|
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
|
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 .models import Board, Location, Target, TargetType # noqa: E402
|
||||||
from .shells import Shell # 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:
|
def _apply_location(obj, location: Location) -> None:
|
||||||
@ -147,7 +147,7 @@ def _install_css() -> None:
|
|||||||
|
|
||||||
class MainWindow(Adw.ApplicationWindow):
|
class MainWindow(Adw.ApplicationWindow):
|
||||||
def __init__(self, app: Adw.Application) -> None:
|
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)
|
self.set_default_size(1100, 750)
|
||||||
_install_css()
|
_install_css()
|
||||||
|
|
||||||
@ -861,7 +861,7 @@ class MainWindow(Adw.ApplicationWindow):
|
|||||||
rebuild()
|
rebuild()
|
||||||
|
|
||||||
|
|
||||||
class IronNestApp(Adw.Application):
|
class FeNigmaApp(Adw.Application):
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super().__init__(application_id=APP_ID)
|
super().__init__(application_id=APP_ID)
|
||||||
|
|
||||||
@ -873,7 +873,7 @@ class IronNestApp(Adw.Application):
|
|||||||
|
|
||||||
|
|
||||||
def main() -> int:
|
def main() -> int:
|
||||||
app = IronNestApp()
|
app = FeNigmaApp()
|
||||||
return app.run(None)
|
return app.run(None)
|
||||||
|
|
||||||
|
|
||||||
@ -1 +0,0 @@
|
|||||||
"""ironnest-assist: screen-reading helper for IRON NEST: Heavy Turret Simulator."""
|
|
||||||
Loading…
Reference in New Issue
Block a user