2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-18 10:46:31 +00:00

fix: package - various changes (#9802)

* fail on install

* move site setting up to ensure site is set early

* fix version file path

* ensure subdirs are created too

* ensure downloaded files are also collected into static

* update order

* bump qc workers

* update version
This commit is contained in:
Matthias Mair
2025-06-19 04:21:46 +02:00
committed by GitHub
parent 821d7b01f3
commit 533556b7e4
6 changed files with 17 additions and 16 deletions

View File

@@ -1360,7 +1360,7 @@ def frontend_download(
# if clean, delete static/web directory
if clean:
shutil.rmtree(dest_path, ignore_errors=True)
dest_path.mkdir()
dest_path.mkdir(parents=True, exist_ok=True)
info(f'Cleaned directory: {dest_path}')
# unzip build to static folder
@@ -1385,6 +1385,7 @@ def frontend_download(
info(f'Downloaded frontend build to temporary file: {dst.name}')
handle_extract(dst.name)
static(c)
def check_already_current(tag=None, sha=None):
"""Check if the currently available frontend is already the requested one."""