Skip to content

Commit

Permalink
Added debug symbols archive for windows-32/64
Browse files Browse the repository at this point in the history
  Reviewed by Paresh More
  • Loading branch information
Basha-EDB committed Jul 12, 2017
1 parent d5d73e0 commit a3b861e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
10 changes: 10 additions & 0 deletions server/build-windows-x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,16 @@ EOT
cd $WD/server/staging_cache/windows-x64/pgAdmin\ 4/venv/Lib
find . \( -name test -o -name tests \) -type d | xargs rm -rf

cd $WD/server
# Copy debug symbols to output/symbols directory
if [ -e "$WD/output/symbols/windows-x64/server"];
then
echo "Removing the exsisting symbol directory"
rm -rf $WD/output/symbols/windows-x64/server || _die "Failed to clean the symbols directory"
fi
mkdir -p $WD/output/symbols/windows-x64/server || _die "Failed to create $WD/output/symbols/windows-x64 directory"
cp -r staging_cache/windows-x64/symbols/* $WD/output/symbols/windows-x64/server || _die "Failed to copy symbols to $WD/output/symbols/windows-x64/server directory"

#Restructuring staging
echo "Restructuring staging as per components"
mkdir -p $PGSERVER_STAGING_WINDOWS_X64 || _die "Couldn't create the staging directory $PGSERVER_STAGING_WINDOWS_X64"
Expand Down
12 changes: 11 additions & 1 deletion server/build-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,16 @@ EOT
cd $WD/server/staging_cache/windows/pgAdmin\ 4/venv/Lib
find . \( -name test -o -name tests \) -type d | xargs rm -rf

cd $WD/server
# Copy debug symbols to output/symbols directory
if [ -e "$WD/output/symbols/windows/server" ];
then
echo "Removing the exsisting symbols directory"
rm -rf $WD/output/symbols/windows/server || _dile "Failed to clean the symbols directory"
fi
mkdir -p $WD/output/symbols/windows/server || _die "Failed to create $WD/output/symbols/windows directory"
cp -r staging_cache/windows/symbols/* $WD/output/symbols/windows/server || _die "Failed to copy symbols to $WD/output/symbols/windows/server directory"

#Restructuring the staging
echo "Restructuring staging as per components"
mkdir -p $PGSERVER_STAGING_WINDOWS || _die "Couldn't create the staging directory $PGSERVER_STAGING_WINDOWS"
Expand Down Expand Up @@ -624,7 +634,7 @@ _postprocess_server_windows() {
#Creating a archive of the binaries
mkdir -p $WD/server/staging_cache/windows/pgsql || _die "Failed to create the directory for binaries "
cd $WD/server/staging_cache/windows
cp -R bin doc include lib pgAdmin* share StackBuilder pgsql/ || _die "Failed to copy the binaries to the pgsql directory"
cp -R bin doc include lib pgAdmin* share StackBuilder symbols pgsql/ || _die "Failed to copy the binaries to the pgsql directory"

zip -rq postgresql-$PG_PACKAGE_VERSION-windows-binaries.zip pgsql || _die "Failed to archive the postgresql binaries"
mv postgresql-$PG_PACKAGE_VERSION-windows-binaries.zip $WD/output/ || _die "Failed to move the archive to output folder"
Expand Down

0 comments on commit a3b861e

Please sign in to comment.