2024-04-06 19:50:23 +00:00
|
|
|
assets_files = assets/bg1k.png assets/brick.png assets/coin.png assets/ghost.png assets/win.png assets/bg.ogg
|
2024-04-02 19:17:25 +00:00
|
|
|
|
|
|
|
all: build/web.zip
|
|
|
|
|
|
|
|
assets:
|
|
|
|
mkdir assets
|
|
|
|
|
2024-04-06 19:50:23 +00:00
|
|
|
assets/%: assets $(../../assets/*)
|
2024-04-02 19:17:25 +00:00
|
|
|
cp ../../$@ assets/
|
|
|
|
|
2024-04-04 11:12:01 +00:00
|
|
|
build/web: Makefile main.py $(assets_files)
|
2024-04-06 10:30:07 +00:00
|
|
|
pygbag --width 1000 --height 1000 --can_close 1 --title "Призрачный лабиринт: сокровища небесного замка" --icon assets/ghost.png --build .
|
2024-04-04 11:12:01 +00:00
|
|
|
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 ."
|