Nullify git:hash script in package.json for source code tarball release since commit hash is already included

pull/8983/head
Aditya Toshniwal 2025-07-22 16:08:51 +05:30
parent c4f7a18ec5
commit 2a43d1c939
1 changed files with 6 additions and 0 deletions

View File

@ -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}..."