mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Add the git commit hash details to the About dialog. #7623
This commit is contained in:
@@ -32,6 +32,9 @@ fi
|
||||
TARBALL_NAME=$(echo "${APP_NAME}-${APP_LONG_VERSION}" | sed 's/ //g' | awk '{print tolower($0)}')
|
||||
DOC_TARBALL_NAME=$(echo "${APP_NAME}-${APP_LONG_VERSION}-docs" | sed 's/ //g' | awk '{print tolower($0)}')
|
||||
|
||||
# Get the github timestamp
|
||||
git log -1 --format='%H %as' > web/commit_hash
|
||||
|
||||
# Output basic details to show we're working
|
||||
echo "Building tarballs for ${APP_NAME} version ${APP_LONG_VERSION}..."
|
||||
|
||||
@@ -69,6 +72,8 @@ do
|
||||
tar cf - "${FILE}" | (cd "src-build/${TARBALL_NAME}"; tar xf -)
|
||||
done
|
||||
|
||||
tar cf - "web/commit_hash" | (cd "src-build/${TARBALL_NAME}"; tar xf -)
|
||||
|
||||
# Create the tarball
|
||||
echo Creating tarball...
|
||||
cd src-build || exit
|
||||
|
||||
Reference in New Issue
Block a user