Add build hash

This commit is contained in:
Jon Staab
2025-01-28 14:51:33 -08:00
parent 48a45f3a3a
commit b129ef4242
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -14,6 +14,10 @@ fi
# https://stackoverflow.com/a/69127685/1467342
eval "$temp_env"
if [[ -z $VITE_BUILD_HASH ]]; then
export VITE_BUILD_HASH=$(git rev-parse --short HEAD)
fi
if [[ $VITE_PLATFORM_LOGO =~ ^https://* ]]; then
curl $VITE_PLATFORM_LOGO > static/logo.png
export VITE_PLATFORM_LOGO=static/logo.png