Further tweek for windows installer's behavior.

* 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.
This commit is contained in:
dolphin6k 2021-10-22 17:24:19 +09:00
parent 764a8327db
commit 174e500889
4 changed files with 32 additions and 13 deletions

View file

@ -11,18 +11,17 @@ else
fi
echo "Building installer ... "
result=`/C/Program\ Files\ \(x86\)/Inno\ Setup\ 6/ISCC tuxpaint.iss | grep installer.exe`
result=`/C/Program\ Files\ \(x86\)/Inno\ Setup\ 6/ISCC tuxpaint-${arch}.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
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
cd ..
rm -rf TuxPaint