Add setup.sh pack mode and clarify README image workflow

- setup.sh now supports `./setup.sh pack` to re-zip .image/ into
  resource/images.zip (cds to repo root, guards missing .image/, removes
  stale zip first)
- README: document extract-then-edit-then-pack order instead of the raw
  zip command that failed on a fresh clone
This commit is contained in:
phattaranun.a committed 2026-09-12 15:23:26 +07:00
1 parent 82aafdc61f
commit dd27606d43
2 files changed
+44 -17

No files matched your search

+8 -3
View File
@@ -47,11 +47,16 @@ http://localhost:8090/ui/index.html
รูปทั้งหมด (~31MB) อยู่ใน folder hidden `.image/` (ถูก `.gitignore` → ไม่ push ขึ้น git)
โดยแจกผ่านไฟล์เดียว `resource/images.zip`:
- **แตกไฟล์**: `./setup.sh` (idempotent — ถ้ามี `.image/` แล้วจะข้าม)
- **เพิ่ม/เปลี่ยนรูป**: แก้ที่ `.image/` แล้ว re-zip:
- **แตกไฟล์ (ครั้งแรกหลัง clone)**:
```bash
zip -r -X resource/images.zip .image -x "*.DS_Store"
./setup.sh
```
- **เพิ่ม/เปลี่ยนรูป**: แก้ไฟล์ใน `.image/` แล้ว re-zip:
```bash
./setup.sh pack
```
แล้ว commit `resource/images.zip`