add save and bundle pxl8 with game for standalone game distribution

This commit is contained in:
asrael 2025-11-28 23:42:57 -06:00
parent b1e8525c3e
commit 04d3af11a9
25 changed files with 1173 additions and 346 deletions

View file

@ -173,7 +173,7 @@ timestamp() {
update_fennel() {
print_info "Fetching Fennel"
local version="1.5.3"
local version="1.6.0"
if curl -sL --max-time 5 -o lib/fennel/fennel.lua "https://fennel-lang.org/downloads/fennel-${version}.lua" 2>/dev/null; then
if [[ -f "lib/fennel/fennel.lua" ]] && [[ -s "lib/fennel/fennel.lua" ]]; then
@ -217,11 +217,10 @@ update_luajit() {
print_info "Updated LuaJIT (${version})"
}
update_miniz() {
print_info "Fetching miniz"
local version="3.0.2"
local version="3.1.0"
if curl -sL --max-time 5 -o /tmp/miniz.zip "https://github.com/richgel999/miniz/releases/download/${version}/miniz-${version}.zip" 2>/dev/null; then
unzip -qjo /tmp/miniz.zip miniz.c miniz.h -d lib/miniz/ 2>/dev/null
@ -344,6 +343,7 @@ case "$COMMAND" in
src/pxl8_io.c
src/pxl8_math.c
src/pxl8_rec.c
src/pxl8_save.c
src/pxl8_script.c
src/pxl8_sdl3.c
src/pxl8_tilemap.c