Sephiria inventory optimizer v0.1.0

- Slab catalog and effect handlers ported from WhiteDog1004/sephiria
- Hill-climbing solver maximizes effect sum on slab-occupied cells
- PIL renderer outputs PNG with effects overlay; downloads + caches slab
  images from img.sephiria.wiki on demand
- Tkinter GUI for picking slabs by tier; CLI also available
- Screenshot recognizer (template matching, beta)
- build.bat / build.sh for portable single-file builds via PyInstaller
This commit is contained in:
tkrmagid
2026-05-13 22:12:49 +09:00
parent 88f46eb146
commit 3cb8140cfa
13 changed files with 1940 additions and 0 deletions

24
build.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
# Build a Linux single-file binary for local testing.
# For a Windows .exe run build.bat on Windows.
set -euo pipefail
cd "$(dirname "$0")"
python3 -m venv .venv 2>/dev/null || true
# shellcheck disable=SC1091
source .venv/bin/activate || true
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
python3 -m pip install pyinstaller
pyinstaller \
--onefile \
--name sephiria_inv \
--collect-submodules sephiria_inv \
-p . \
run.py
echo
echo "Build done. Output: dist/sephiria_inv"