Skip to content

Commit

Permalink
make it easier to build on a 64-bit os: look for both program files l…
Browse files Browse the repository at this point in the history
…ocations

git-svn-id: https://xpra.org/svn/Xpra/trunk@9920 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 15, 2015
1 parent a986998 commit 9b8e7dd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
7 changes: 5 additions & 2 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
scripts = []


WIN32 = sys.platform.startswith("win")
WIN32 = sys.platform.startswith("win") or sys.platform.startswith("msys")
OSX = sys.platform.startswith("darwin")
PYTHON3 = sys.version_info[0] == 3

Expand Down Expand Up @@ -1343,7 +1343,10 @@ def add_gui_exe(*args):
add_console_exe("xpra/client/gl/gl_check.py", "opengl.ico", "OpenGL_check")
if printing_ENABLED:
add_console_exe("xpra/platform/printing.py", "printer.ico", "Print")
GSVIEW = "C:\\Program Files\\Ghostgum\\gsview"
if os.path.exists("C:\\Program Files (x86)\\Ghostgum\\gsview"):
GSVIEW = "C:\\Program Files (x86)\\Ghostgum\\gsview"
else:
GSVIEW = "C:\\Program Files\\Ghostgum\\gsview"
GHOSTSCRIPT_PARENT_DIR = "C:\\Program Files\\gs"
GHOSTSCRIPT = None
for x in reversed(sorted(os.listdir(GHOSTSCRIPT_PARENT_DIR))):
Expand Down
24 changes: 18 additions & 6 deletions src/win32/MAKE-INSTALLER.BAT
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,25 @@ if "%PYTHON%"=="" (
REM DEFAULT to Python 2.7:
SET PYTHON=C:\Python34
SET PYTHON=C:\Python27
SET VC=C:\Program Files\Microsoft Visual Studio 9.0\VC
SET VC="%ProgramFiles%\Microsoft Visual Studio 9.0\VC"
IF EXIST "%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC" (
SET VC="%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC"
)
)
SET PYTHON_EXE=%PYTHON%\python.exe
SET PYTHONPATH=.;%PYTHONPATH%
SET INNOSETUP=C:\Program Files\Inno Setup 5\ISCC.exe
SET TORTOISESVN=C:\Program Files\TortoiseSVN
SET ZIP7=C:\Program Files\7-Zip\7z.exe
SET INNOSETUP="%ProgramFiles%\Inno Setup 5\ISCC.exe"
IF EXIST "%ProgramFiles(x86)%\Inno Setup 5\ISCC.exe" (
SET INNOSETUP="%ProgramFiles(x86)%\Inno Setup 5\ISCC.exe"
)
SET TORTOISESVN="%ProgramFiles%\TortoiseSVN"
IF EXIST "%ProgramFiles(x86)%\TortoiseSVN" (
SET TORTOISESVN="%ProgramFiles(x86)%\TortoiseSVN"
)
SET ZIP7="%ProgramFiles%\7-Zip\7z.exe"
IF EXIST "%ProgramFiles(x86)%\7-Zip\7z.exe" (
SET ZIP7="%ProgramFiles(x86)%\7-Zip\7z.exe"
)
SET SVNVERSION_EXE=svnversion
SET EXTRA_VERSION=
SET BUILD_DIR=build
Expand Down Expand Up @@ -70,11 +82,11 @@ RMDIR /S /Q %BUILD_DIR% dist Output Temp 2> NUL
DEL /Q Xpra_Setup*.exe 2> NUL
DEL /Q cx_freeze-xpra.log build-xpra.log py2exe-xpra.log innosetup.log 2> NUL

if NOT "%VC%"=="" (
if NOT %VC%=="" (
if "%VSINSTALLDIR%"=="" (
ECHO ***************************************************************
ECHO ****** load Visual Studio env
CALL "%VC%\bin\vcvars32.bat"
CALL %VC%\bin\vcvars32.bat
)
)

Expand Down

0 comments on commit 9b8e7dd

Please sign in to comment.