py_stepik/pygame-wasm/phantomcastle/Makefile

18 lines
701 B
Makefile

assets_files = assets/bg1k.png assets/brick.png assets/coin.png assets/ghost.png assets/win.png assets/bg.ogg
all: build/web.zip
assets:
mkdir assets
assets/%: assets $(../../assets/*)
cp ../../$@ assets/
build/web: Makefile main.py $(assets_files)
pygbag --width 1000 --height 1000 --can_close 1 --title "Призрачный лабиринт: сокровища небесного замка" --icon assets/ghost.png --build .
sed -i -e "s|https://pygame-web.github.io/archives/0.9/|https://b4tman.ru/phantomcastle/pygbag/0.9/|g" build/web/index.html
sed -i -e "s|en-us|ru-RU|g" build/web/index.html
build/web.zip: build/web
sh -exc "cd build/web && zip -r ../web.zip ."