refac
This commit is contained in:
parent
95b11207a1
commit
b329c63c80
|
@ -17,7 +17,7 @@ class CustomBuildHook(BuildHookInterface):
|
||||||
"NodeJS `npm` is required for building Open Webui but it was not found"
|
"NodeJS `npm` is required for building Open Webui but it was not found"
|
||||||
)
|
)
|
||||||
stderr.write("### npm install\n")
|
stderr.write("### npm install\n")
|
||||||
subprocess.run([npm, "install"], check=True) # noqa: S603
|
subprocess.run([npm, "install", "--force"], check=True) # noqa: S603
|
||||||
stderr.write("\n### npm run build\n")
|
stderr.write("\n### npm run build\n")
|
||||||
os.environ["APP_BUILD_HASH"] = version
|
os.environ["APP_BUILD_HASH"] = version
|
||||||
subprocess.run([npm, "run", "build"], check=True) # noqa: S603
|
subprocess.run([npm, "run", "build"], check=True) # noqa: S603
|
||||||
|
|
Loading…
Reference in New Issue