Skip to content

Commit 94c6395

Browse files
committed
pgadm msvs2010
1 parent 29ba1fa commit 94c6395

File tree

7 files changed

+26
-10
lines changed

7 files changed

+26
-10
lines changed

build/helpers/dependencies.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ CD /D %DOWNLOADS_DIR%
3939
TITLE Building zlib...
4040
CD /D %DOWNLOADS_DIR%
4141
wget -c http://zlib.net/zlib-%ZLIB_VER%.tar.gz -O zlib-%ZLIB_VER%.tar.gz
42-
rm -rf "%DEPENDENCIES_BIN_DIR%\zlib %DEPENDENCIES_SRC_DIR%\zlib*
43-
MKDIR "%DEPENDENCIES_BIN_DIR%\zlib
42+
rm -rf %DEPENDENCIES_BIN_DIR%\zlib %DEPENDENCIES_SRC_DIR%\zlib*
43+
MKDIR %DEPENDENCIES_BIN_DIR%\zlib
4444
tar xf zlib-%ZLIB_VER%.tar.gz -C %DEPENDENCIES_SRC_DIR% || GOTO :ERROR
4545
CD /D %DEPENDENCIES_SRC_DIR%\zlib*
4646
set CL=/MP

build/helpers/pgadmin.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
CALL %ROOT%\build\helpers\setvars.cmd
22

3+
34
rm -rf %DEPENDENCIES_BIN_DIR%
45
IF EXIST %DOWNLOADS_DIR%\deps-SDK71-%ARCH%.zip (
56
7z x %DOWNLOADS_DIR%\deps-SDK71-%ARCH%.zip -o%DEPENDENCIES_BIN_DIR% -y
@@ -36,6 +37,10 @@ IF %SDK% == SDK71 (
3637
IF %ARCH% == X86 msbuild build\msw\wx_vc10.sln /m /p:Configuration="DLL Release" /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
3738
IF %ARCH% == X64 msbuild build\msw\wx_vc10.sln /m /p:Configuration="Release" /p:Platform=x64 /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
3839
IF %ARCH% == X64 msbuild build\msw\wx_vc10.sln /m /p:Configuration="DLL Release" /p:Platform=x64 /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
40+
REM Upgrade hhp2cached project to VS2010
41+
vcupgrade -overwrite -nologo utils\hhp2cached\hhp2cached_vc9.vcproj
42+
IF %ARCH% == X86 msbuild utils\hhp2cached\hhp2cached_vc9.vcxproj /m /p:Configuration="Release" /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
43+
IF %ARCH% == X86 msbuild utils\hhp2cached\hhp2cached_vc9.vcxproj /m /p:Configuration="DLL Release" /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
3944
)
4045

4146
IF %SDK% == MSVC2013 (

build/helpers/pgadmin_installer.cmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ REM Download VC Redistibutable packages
1212
TITLE Downloading VC Redistibutable packages
1313
MKDIR "c:\pg\vcredist"
1414

15-
wget -c https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe -O "c:\pg\vcredist\vcredist_x86_2015.exe" || GOTO :ERROR
16-
wget -c https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe -O "c:\pg\vcredist\vcredist_x64_2015.exe" || GOTO :ERROR
15+
REM wget -c https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe -O "c:\pg\vcredist\vcredist_x86_2015.exe" || GOTO :ERROR
16+
REM wget -c https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe -O "c:\pg\vcredist\vcredist_x64_2015.exe" || GOTO :ERROR
17+
wget -c https://download.microsoft.com/download/5/B/C/5BC5DBB3-652D-4DCE-B14A-475AB85EEF6E/vcredist_x86.exe -O "c:\pg\vcredist\vcredist_x86_2010.exe" || GOTO :ERROR
1718

1819
REM Make directory for installers
1920
MKDIR "c:\pg\installers"

build/helpers/pgadmin_nsis_installer.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ SET PRODUCT_DIR_REGKEY="Software\%COMPANY_NAME%\%PRODUCT_NAME%\%PGADMIN_VERSION%
2020
SET ADMIN_REG_KEY="SOFTWARE\%COMPANY_NAME%\%PRODUCT_NAME%\%PGADMIN_VERSION%\Installations\"
2121
SET ADMIN_INS_SUFFIX="%ARCH%bit_Setup.exe"
2222
SET ADMIN_INS_SOURCE_DIR="C:\pg\distr_%ARCH%_%PG_DEF_VERSION%\pgadmin\*.*"
23+
2324
>%NSIS_RES_DIR%\pgadmin.def.nsh ECHO !define PRODUCT_NAME "%PRODUCT_NAME%"
2425
>>%NSIS_RES_DIR%\pgadmin.def.nsh ECHO !define PRODUCT_VERSION "%PGADMIN_VERSION%"
2526
>>%NSIS_RES_DIR%\pgadmin.def.nsh ECHO !define PRODUCT_PUBLISHER %PRODUCT_PUBLISHER%

build/helpers/setvars.cmd

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SET LIBSSH2_VER=1.6.0
99
SET WXWIDGETS_VER=3.0.2
1010

1111
REM Path vars
12-
SET PERL32_PATH=C:\Perl
12+
SET PERL32_PATH=C:\Perl512x86
1313
SET PERL64_PATH=C:\Perl64
1414
SET PERL32_BIN=%PERL32_PATH%\bin
1515
SET PERL64_BIN=%PERL64_PATH%\bin
@@ -30,6 +30,15 @@ IF %SDK% == SDK71 (
3030
ECHO ON
3131
)
3232

33+
IF %SDK% == MSVC2010 (
34+
SET REDIST_YEAR=2010
35+
SET PlatformToolset=v100
36+
IF %ARCH% == X86 CALL "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall" x86 || GOTO :ERROR
37+
ECHO ON
38+
IF %ARCH% == X64 CALL "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall" amd64 || GOTO :ERROR
39+
ECHO ON
40+
)
41+
3342
IF %SDK% == MSVC2013 (
3443
SET REDIST_YEAR=2013
3544
SET PlatformToolset=v120

build/run.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ IF "%~1"=="3" (
7575

7676
IF "%~1"=="4" (
7777
TITLE Building PgAdmin
78-
IF "%SDK%"=="" SET SDK=MSVC2015
78+
IF "%SDK%"=="" SET SDK=SDK71
7979
CMD.EXE /C %ROOT%\build\helpers\pgadmin.cmd
8080
)
8181

8282
IF "%~1"=="5" (
8383
TITLE Building PgAdmin installer
84-
IF "%SDK%"=="" SET SDK=MSVC2015
84+
IF "%SDK%"=="" SET SDK=SDK71
8585
CMD.EXE /C %ROOT%\build\helpers\pgadmin_installer.cmd
8686
)
8787

nsis/pgadmin.nsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ Var StartMenuFolder
8484
;--------------------------------
8585
;Installer Sections
8686

87-
Section "Microsoft Visual C++ 2015 Redistibutable" secMS
87+
Section "Microsoft Visual C++ 2010 Redistibutable" secMS
8888
GetTempFileName $1
8989
!ifdef PG_64bit
90-
File /oname=$1 "c:\pg\vcredist\vcredist_x64_2015.exe"
90+
File /oname=$1 "c:\pg\vcredist\vcredist_x64_2010.exe"
9191
!else
92-
File /oname=$1 "c:\pg\vcredist\vcredist_x86_2015.exe"
92+
File /oname=$1 "c:\pg\vcredist\vcredist_x86_2010.exe"
9393
!endif
9494
ExecWait "$1 /passive /norestart" $0
9595
DetailPrint "Visual C++ Redistributable Packages return $0"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy