From 2a43d1c9395d5473eaf8fbd5eed0bfaddfe0776f Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Tue, 22 Jul 2025 16:08:51 +0530 Subject: [PATCH] Nullify git:hash script in package.json for source code tarball release since commit hash is already included --- pkg/src/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/src/build.sh b/pkg/src/build.sh index cb4c931bb..834092304 100755 --- a/pkg/src/build.sh +++ b/pkg/src/build.sh @@ -35,6 +35,12 @@ DOC_TARBALL_NAME=$(echo "${APP_NAME}-${APP_LONG_VERSION}-docs" | sed 's/ //g' | # Get the github timestamp git log -1 --format='%H %as' > web/commit_hash +pushd web > /dev/null || exit + # Set the git:hash to empty as we already set the commit_hash + # this helps in building pgAdmin directly from tar ball without needing git. + npm pkg set "scripts.git:hash=exit 0" +popd > /dev/null || exit + # Output basic details to show we're working echo "Building tarballs for ${APP_NAME} version ${APP_LONG_VERSION}..."