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