mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 11:27:46 +01:00
feat: add git hash of build everywhere
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# noqa: INP001
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
from sys import stderr
|
||||
@@ -18,4 +19,5 @@ class CustomBuildHook(BuildHookInterface):
|
||||
stderr.write("### npm install\n")
|
||||
subprocess.run([npm, "install"], check=True) # noqa: S603
|
||||
stderr.write("\n### npm run build\n")
|
||||
os.environ["WEBUI_VERSION"] = version
|
||||
subprocess.run([npm, "run", "build"], check=True) # noqa: S603
|
||||
|
||||
Reference in New Issue
Block a user