feat(romhacks): automated hand-off — route downloads to RomM + library, render notes
handoff.py classifies completed downloads (console rom vs RPG-Maker fangame vs patch, via bsdtar archive peek incl. RAR5), copies console roms into Emulation/roms/<platform> for RomM, moves the full folder (rom + guides) into the library archive, and renders note.md + handoff.json per hack for the Obsidian publish step. Wired into the cycle; single /data mount keeps moves as fast renames. Validated on 4 real games.
This commit is contained in:
@@ -48,11 +48,21 @@ services:
|
||||
networks: [romhacks]
|
||||
env_file:
|
||||
- stack.env
|
||||
environment:
|
||||
# Hand-off paths. /data is the single parent mount so incoming->library
|
||||
# moves are instant renames (not cross-device copies); /emulation is the
|
||||
# RomM Structure-A roms parent so console hacks land in roms/<platform>/.
|
||||
- METADATA_DIR=/data/metadata
|
||||
- INCOMING_DIR=/data/incoming
|
||||
- LIBRARY_DIR=/data/library
|
||||
- EMULATION_DIR=/emulation
|
||||
- HANDOFF_STATE=/state/handled.json
|
||||
volumes:
|
||||
- /config/romhacks/exports:/exports
|
||||
- /config/romhacks/state:/state
|
||||
- /config/romhacks/crawljobs:/crawljobs
|
||||
- /storage1/labdata/romhacks/metadata:/metadata
|
||||
- /storage1/labdata/romhacks:/data
|
||||
- /storage1/Emulation/roms:/emulation
|
||||
|
||||
jdownloader:
|
||||
image: jlesage/jdownloader-2:latest
|
||||
|
||||
Reference in New Issue
Block a user