File tree 7 files changed +26
-10
lines changed
7 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ CD /D %DOWNLOADS_DIR%
39
39
TITLE Building zlib...
40
40
CD /D %DOWNLOADS_DIR%
41
41
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
44
44
tar xf zlib-%ZLIB_VER% .tar.gz -C %DEPENDENCIES_SRC_DIR% || GOTO :ERROR
45
45
CD /D %DEPENDENCIES_SRC_DIR% \zlib*
46
46
set CL = /MP
Original file line number Diff line number Diff line change 1
1
CALL %ROOT% \build\helpers\setvars.cmd
2
2
3
+
3
4
rm -rf %DEPENDENCIES_BIN_DIR%
4
5
IF EXIST %DOWNLOADS_DIR% \deps-SDK71-%ARCH% .zip (
5
6
7z x %DOWNLOADS_DIR% \deps-SDK71-%ARCH% .zip -o%DEPENDENCIES_BIN_DIR% -y
@@ -36,6 +37,10 @@ IF %SDK% == SDK71 (
36
37
IF %ARCH% == X86 msbuild build\msw\wx_vc10.sln /m /p:Configuration=" DLL Release" /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
37
38
IF %ARCH% == X64 msbuild build\msw\wx_vc10.sln /m /p:Configuration=" Release" /p:Platform=x64 /p:PlatformToolset=%PlatformToolset% || GOTO :ERROR
38
39
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
39
44
)
40
45
41
46
IF %SDK% == MSVC2013 (
Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ REM Download VC Redistibutable packages
12
12
TITLE Downloading VC Redistibutable packages
13
13
MKDIR " c:\pg\vcredist"
14
14
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
17
18
18
19
REM Make directory for installers
19
20
MKDIR " c:\pg\installers"
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ SET PRODUCT_DIR_REGKEY="Software\%COMPANY_NAME%\%PRODUCT_NAME%\%PGADMIN_VERSION%
20
20
SET ADMIN_REG_KEY = " SOFTWARE\%COMPANY_NAME% \%PRODUCT_NAME% \%PGADMIN_VERSION% \Installations\"
21
21
SET ADMIN_INS_SUFFIX = " %ARCH% bit_Setup.exe"
22
22
SET ADMIN_INS_SOURCE_DIR = " C:\pg\distr_%ARCH% _%PG_DEF_VERSION% \pgadmin\*.*"
23
+
23
24
> %NSIS_RES_DIR% \pgadmin.def.nsh ECHO !define PRODUCT_NAME " %PRODUCT_NAME% "
24
25
>> %NSIS_RES_DIR% \pgadmin.def.nsh ECHO !define PRODUCT_VERSION " %PGADMIN_VERSION% "
25
26
>> %NSIS_RES_DIR% \pgadmin.def.nsh ECHO !define PRODUCT_PUBLISHER %PRODUCT_PUBLISHER%
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ SET LIBSSH2_VER=1.6.0
9
9
SET WXWIDGETS_VER = 3.0.2
10
10
11
11
REM Path vars
12
- SET PERL32_PATH = C:\Perl
12
+ SET PERL32_PATH = C:\Perl512x86
13
13
SET PERL64_PATH = C:\Perl64
14
14
SET PERL32_BIN = %PERL32_PATH% \bin
15
15
SET PERL64_BIN = %PERL64_PATH% \bin
@@ -30,6 +30,15 @@ IF %SDK% == SDK71 (
30
30
ECHO ON
31
31
)
32
32
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
+
33
42
IF %SDK% == MSVC2013 (
34
43
SET REDIST_YEAR = 2013
35
44
SET PlatformToolset = v120
Original file line number Diff line number Diff line change @@ -75,13 +75,13 @@ IF "%~1"=="3" (
75
75
76
76
IF " %~1 " == " 4" (
77
77
TITLE Building PgAdmin
78
- IF " %SDK% " == " " SET SDK = MSVC2015
78
+ IF " %SDK% " == " " SET SDK = SDK71
79
79
CMD.EXE /C %ROOT% \build\helpers\pgadmin.cmd
80
80
)
81
81
82
82
IF " %~1 " == " 5" (
83
83
TITLE Building PgAdmin installer
84
- IF " %SDK% " == " " SET SDK = MSVC2015
84
+ IF " %SDK% " == " " SET SDK = SDK71
85
85
CMD.EXE /C %ROOT% \build\helpers\pgadmin_installer.cmd
86
86
)
87
87
Original file line number Diff line number Diff line change @@ -84,12 +84,12 @@ Var StartMenuFolder
84
84
; --------------------------------
85
85
; Installer Sections
86
86
87
- Section " Microsoft Visual C++ 2015 Redistibutable" secMS
87
+ Section " Microsoft Visual C++ 2010 Redistibutable" secMS
88
88
GetTempFileName $1
89
89
!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"
91
91
!else
92
- File /oname= $1 " c:\pg\vcredist\vcredist_x86_2015 .exe"
92
+ File /oname= $1 " c:\pg\vcredist\vcredist_x86_2010 .exe"
93
93
!endif
94
94
ExecWait " $1 /passive /norestart" $0
95
95
DetailPrint " Visual C++ Redistributable Packages return $0"
You can’t perform that action at this time.
0 commit comments