Building a ZIP for Poki
Build the game and prepare the archive.
Add a compile:poki script to package.json with the command VITE_PLATFORM=poki vite build --outDir ../dist/poki. Set the game ID, build directory, and ZIP path in poki.json. After the build, run gamedevland poki pack. The archive will have index.html at its root.
{
"game_id": "POKI_GAME_UUID",
"build_dir": "dist/poki",
"tooling": {
"checks": ["typecheck", "lint"],
"buildScript": "compile:poki",
"archive": "artifacts/game-poki.zip"
}
}
ViteBuild for Poki
poki packReads the files from dist/poki
ZIPThe finished game archive