Skip to content

Commit 2a43d1c

Browse files
Nullify git:hash script in package.json for source code tarball release since commit hash is already included
1 parent c4f7a18 commit 2a43d1c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/src/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ DOC_TARBALL_NAME=$(echo "${APP_NAME}-${APP_LONG_VERSION}-docs" | sed 's/ //g' |
3535
# Get the github timestamp
3636
git log -1 --format='%H %as' > web/commit_hash
3737

38+
pushd web > /dev/null || exit
39+
# Set the git:hash to empty as we already set the commit_hash
40+
# this helps in building pgAdmin directly from tar ball without needing git.
41+
npm pkg set "scripts.git:hash=exit 0"
42+
popd > /dev/null || exit
43+
3844
# Output basic details to show we're working
3945
echo "Building tarballs for ${APP_NAME} version ${APP_LONG_VERSION}..."
4046

0 commit comments

Comments
 (0)