From 15dd2bc21668898a9c22ecbdb4b0daa2139c9675 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 30 May 2011 15:53:41 +0200 Subject: [PATCH] Call InnoSetup with WINE if it is not executable On Windows, all .exe files are executable automatically. So testing whether ISCC.exe is executable should be a good indicator whether we're on Windows or not. Signed-off-by: Johannes Schindelin --- share/WinGit/release.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/share/WinGit/release.sh b/share/WinGit/release.sh index afd4dfdf..b95547af 100755 --- a/share/WinGit/release.sh +++ b/share/WinGit/release.sh @@ -134,7 +134,13 @@ sed -e "s/%APPVERSION%/$version/" \ < share/WinGit/install.iss > $TMPDIR/install.iss && cp share/WinGit/*.inc.iss $TMPDIR && echo "Launching Inno Setup compiler ..." && -(cd $TMPDIR; $MSYSGITROOT/share/InnoSetup/ISCC.exe install.iss > /tmp/install.out; +(cd $TMPDIR && + if test -x $MSYSGITROOT/share/InnoSetup/ISCC.exe + then + $MSYSGITROOT/share/InnoSetup/ISCC.exe install.iss + else + wine $MSYSGITROOT/share/InnoSetup/ISCC.exe install.iss + fi > /tmp/install.out && echo $? > /tmp/install.status) && (test 0 = "$(cat /tmp/install.status)") && git tag -a -m "Git for Windows $1" Git-$1 && -- 2.11.4.GIT