Skip to content

Commit

Permalink
#678 / #1413: 64-bit versions have a different installation name so w…
Browse files Browse the repository at this point in the history
…e can parallel install them

git-svn-id: https://xpra.org/svn/Xpra/trunk@14814 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 18, 2017
1 parent 9e9069f commit ac3f3de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/win32/PY27_MINGW_BUILD.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ REVISION=`python -c "x=\"$SVN_VERSION\";y=x.split(\":\");y.reverse();z=y[0];prin
FULL_VERSION=${VERSION}-r${REVISION}
EXTRA_VERSION=""
BUILD_TYPE=""
echo
echo -n "Xpra${EXTRA_VERSION} ${FULL_VERSION}"
if [ "${MSYSTEM_CARCH}" != "i686" ]; then
BUILD_TYPE="-${MSYSTEM_CARCH}"
echo " (64-bit)"
fi
echo
echo "Xpra${EXTRA_VERSION} ${FULL_VERSION}"
echo

INSTALLER_FILENAME="Xpra${EXTRA_VERSION}${BUILD_TYPE}_Setup_${FULL_VERSION}.exe"
Expand Down Expand Up @@ -64,7 +66,7 @@ fi
#echo "* Building Python 3.4 Cython modules (see win32/Python2.7-build.log)"
#python2.7.exe ./setup.py build_ext ${BUILD_OPTIONS} --inplace >& win32/Python2.7-build.log

echo "* generating installation directory"
echo "* Generating installation directory"
CX_FREEZE_LOG="win32/cx_freeze-install.log"
python2.7.exe ./setup.py install_exe ${BUILD_OPTIONS} --install=${DIST} >& ${CX_FREEZE_LOG}
if [ "$?" != "0" ]; then
Expand All @@ -74,7 +76,7 @@ if [ "$?" != "0" ]; then
fi

if [ -e "${DIST}/OpenGL" ]; then
echo "* adding PyOpenGL to library.zip"
echo "* Adding PyOpenGL to library.zip"
pushd "${DIST}" >& /dev/null
zip -qmor "library.zip" OpenGL
popd >& /dev/null
Expand Down Expand Up @@ -134,6 +136,9 @@ if [ "${DO_INSTALLER}" == "1" ]; then
echo "* Creating the installer using InnoSetup"
rm -f "Xpra_Setup.exe" "${INSTALLER_FILENAME}" "${INNOSETUP_LOG}"
cp "win32/xpra.iss" "xpra.iss"
if [ "${MSYSTEM_CARCH}" == "x86_64" ]; then
cat "win32/xpra.iss" | sed '/\(ArchitecturesInstallIn64BitMode\|ArchitecturesInstallIn64BitMode\)/ s/=.*/=x64/g' | sed '/\(AppName=\|AppVerName=\|DefaultGroupName=\)/ s/$/ (64-bit)/g' > "xpra.iss"
fi
"${INNOSETUP}" "xpra.iss" >& "${INNOSETUP_LOG}"
if [ "$?" != "0" ]; then
echo "InnoSetup error - see ${INNOSETUP_LOG}:"
Expand Down
2 changes: 2 additions & 0 deletions src/win32/xpra.iss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ WizardImageFile=win32\xpra-logo.bmp
WizardSmallImageFile=win32\xpra.bmp
LicenseFile=COPYING
UninstallDisplayIcon={app}\Xpra-Launcher.exe
ArchitecturesInstallIn64BitMode=
ArchitecturesAllowed=

[Dirs]
Name: {app}; Flags: uninsalwaysuninstall;
Expand Down

0 comments on commit ac3f3de

Please sign in to comment.