* 64-bit installer to do installation only in 64-bit architecture. * 32-bit installer to install files in 'Program Files (x86)' on 64-bit architecture. * Require to uninstall old x86 mode installation only for 64-bit installer on 64-bit architecture. * compile.sh builds installer and portable zip archive for the environment the shell is running on. * Added tuxpaint-i686.iss and tuxpaint-x86_64.iss which just define 'BuildTarget' and include tuxpaint.iss.
27 lines
641 B
Bash
27 lines
641 B
Bash
#!/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\ 6/ISCC tuxpaint-${arch}.iss | grep installer.exe`
|
|
if [ "x$result" != "x" ]; then
|
|
installer=`basename $result`
|
|
fi
|
|
|
|
echo "Building portable zip archive ... "
|
|
zip=`basename $installer '-installer.exe'`.zip
|
|
if [ -d TuxPaint ]; then
|
|
rm -rf TuxPaint
|
|
fi
|
|
cp -a bdist TuxPaint
|
|
cp -a libdocs TuxPaint/docs/
|
|
zip -qr -9 $zip TuxPaint
|
|
rm -rf TuxPaint
|