rm -f home-tmp.zip
if [ "`which zip`x" = "x" ]; then
- echo "zip command not found"
+ echo "$0: zip command not found"
exit
fi
-(cd assets/game-data && zip -u -r ../../home-tmp.zip *)
-./configure --with-gnu-ld --with-x
-make || (echo "Could not build OpenITG executable. exiting..."; exit 1)
+if [ ! -d src/openitg ]; then
+ echo "$0: where's the openitg binary?"
+fi
+(cd assets/d4 && zip -u -r ../../home-tmp.zip *)
+
+# remove useless files
+zip -d home-tmp.zip 'Themes/ps2onpc/*'
+zip -d home-tmp.zip 'Themes/ps2/*'
+zip -d home-tmp.zip 'Cache/*'
-(cd src; zip -u ../home-tmp.zip openitg)
+(cd assets/game-data && zip -r ../../home-tmp.zip *)
+(cd src && zip ../home-tmp.zip openitg)