Fix Wildebeest FEN generation + castling rule
[vchess.git] / client / download_objects.sh
1 #!/bin/sh
2
3 # Restore binary files (temporary fix - should use git-fat instead)
4 for color in "w" "b"; do
5 for piece in "b" "c" "d" "e" "f" "g" "h" "j" "k" "m" "n" "o" "p" "q" "r" "s"; do
6 rm -f public/images/pieces/Eightpieces/tmp_png/"$color$piece".png
7 wget -q -O public/images/pieces/Eightpieces/tmp_png/"$color$piece".png https://vchess.club/images/pieces/Eightpieces/tmp_png/"$color$piece".png
8 done
9 done
10 for color in "w" "b"; do
11 for piece in "a" "c" "s" "t" "u" "v" "j" "l" "m" "o" "r" "n" "b" "q" "k"; do
12 rm -f public/images/pieces/Titan/"$color$piece".png
13 wget -q -O public/images/pieces/Titan/"$color$piece".png https://vchess.club/images/pieces/Titan/"$color$piece".png
14 done
15 done
16 for image in "Orda" "Archer" "Lancer" "Kheshig" "Yurt"; do
17 rm -f /public/images/variants/Orda/"$image".png
18 wget -q -O public/images/variants/Orda/"$image".png https://vchess.club/images/variants/Orda/"$image".png
19 done
20 rm -f public/sounds/newgame.flac
21 wget -q -O public/sounds/newgame.flac https://vchess.club/sounds/newgame.flac
22 rm -f public/favicon.ico
23 wget -q -O public/favicon.ico https://vchess.club/favicon.ico