-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmake-game.sh
executable file
·27 lines (23 loc) · 975 Bytes
/
make-game.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
unameOut="$(uname -s)"
dockerImage="rtorralba/zx-game-maker:1.0rc"
for i in "$@"; do
case $i in
--develop)
echo -e "Using DEVELOP image... ========================================\n\n"
dockerImage="rtorralba/zx-game-maker:develop"
;;
--update)
echo -e "Checking updates... =======================================\n\n"
docker pull $dockerImage
echo -e "\n\n\n"
;;
esac
done
if [[ $unameOut == "Linux" ]]; then
echo -e "Compiling for Linux... ====================================\n\n"
tiled --export-map json assets/map/maps.tmx output/maps.json
else
echo -e "Compiling for MacOS... ====================================\n\n"
/Applications/Tiled.app/Contents/MacOS/Tiled --export-map json assets/map/maps.tmx output/maps.json
fi
docker run -v "${PWD}"/assets:/app/assets -v "${PWD}"/output:/app/output -v "${PWD}"/dist:/app/dist -it --rm $dockerImage