Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80d9d43

Browse files
committed
Added pgpro_upgrade.files
1 parent 3136516 commit 80d9d43

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

build/helpers/postgres_nsis_installer.cmd

+11
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,17 @@ GOTO :ENDLIC
122122

123123
CD /D %NSIS_RES_DIR% || GOTO :ERROR
124124
rem Genarate file lists
125+
126+
IF NOT "%PG_MAJOR_VERSION%" == "9.6" GOTO :NO_PGPRO_UPGRADE
127+
IF "%PRODUCT_NAME%" == "PostgresPro" GOTO :ADD_PGPRO_UPGRADE
128+
IF "%PRODUCT_NAME%" == "PostgresProEnterprise" GOTO :ADD_PGPRO_UPGADE
129+
GOTO :NO_PGPRO_UPGADE
130+
:ADD_PGPRO_UPDATE
131+
type server.files pgpro_upgrade.files > newserver.files
132+
type newserver.files > server.files
133+
del newserver.files
134+
:NO_PGPRO_UPGRADE
135+
125136
%PYTHON64_PATH%/python %ROOT%/build/helpers/genlists.py %PG_INS_SOURCE_DIR% client.files devel.files plperl.files plpython2.files plpython3.files unneeded.files server.files
126137

127138
rem generate installer itself

nsis/pgpro_upgrade.files

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
./bin/sh.*
2+
./bin/pgpro_upgrade.*

nsis/server.files

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
./bin/pg_archivecleanup.*
55
./bin/pg_controldata.*
66
./bin/pg_ctl.*
7+
./bin/pg_probackup.*
78
./bin/pg_resetwal.*
89
./bin/pg_rewind.*
10+
./bin/pg_standby.*
911
./bin/pg_test_fsync.*
1012
./bin/pg_test_timing.*
1113
./bin/pg_upgrade.*
1214
./bin/pg_waldump.*
1315
./bin/postgres.*
1416
./bin/postmaster.*
15-
./bin/pg_standby.*
1617
./bin/zic.*
17-
./bin/pg_probackup.*
1818
./doc/extension/*.example
1919
./doc/buildinfo.txt
2020
./lib/*.dll
@@ -30,4 +30,3 @@
3030
./share/timezonesets/*
3131
./share/timezone/*
3232
./share/tsearch_data/*
33-

0 commit comments

Comments
 (0)