Added shell script to build windows installer and portable zip archive.
This commit is contained in:
parent
0f7d425f96
commit
641aa348ec
1 changed files with 27 additions and 0 deletions
27
win32/compile.sh
Normal file
27
win32/compile.sh
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo -n "Checking host environment ... "
|
||||||
|
sysname=`uname -s`
|
||||||
|
if echo $sysname | grep MINGW64; then
|
||||||
|
arch=x86_64
|
||||||
|
elif echo $sysname | grep MINGW32; then
|
||||||
|
arch=i686
|
||||||
|
else
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Building installer ... "
|
||||||
|
result=`/C/Program\ Files\ \(x86\)/Inno\ Setup\ 5/ISCC tuxpaint.iss | grep installer.exe`
|
||||||
|
if [ "x$result" != "x" ]; then
|
||||||
|
installer=`basename $result`
|
||||||
|
fi
|
||||||
|
rename windows-installer windows-$arch-installer $installer
|
||||||
|
|
||||||
|
echo "Building portable zip archive ... "
|
||||||
|
zip=`echo $installer | sed 's/installer.exe//'`$arch.zip
|
||||||
|
if [ -d TuxPaint ]; then
|
||||||
|
rm -rf TuxPaint
|
||||||
|
fi
|
||||||
|
mv bdist TuxPaint
|
||||||
|
zip -qr -9 $zip TuxPaint
|
||||||
|
cd ..
|
||||||
Loading…
Add table
Add a link
Reference in a new issue