Add the git commit hash details to the About dialog. #7623

This commit is contained in:
Aditya Toshniwal
2024-06-27 13:20:00 +05:30
committed by GitHub
parent 3be2221948
commit 6f96f67655
7 changed files with 42 additions and 29 deletions

View File

@@ -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