Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions additional_packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ def additional_packaging(addon_name: str) -> None:
if path.exists(file_to_remove):
os.remove(file_to_remove)

build_ui_script = os.path.join(
os.path.dirname(os.path.realpath(__file__)), "scripts", "build_ui.sh"
)
if path.exists(build_ui_script):
os.system(f"chmod +x {build_ui_script}")
return_code = os.system(build_ui_script)
if return_code != 0:
os._exit(os.WEXITSTATUS(return_code))

# build_ui_script = os.path.join(
# os.path.dirname(os.path.realpath(__file__)), "scripts", "build_ui.sh"
# )
# if path.exists(build_ui_script):
# os.system(f"chmod +x {build_ui_script}")
# return_code = os.system(build_ui_script)
# if return_code != 0:
# os._exit(os.WEXITSTATUS(return_code))

2 changes: 1 addition & 1 deletion scripts/build_ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ else
npm --prefix "$SCRIPT_DIR/../ui" install
fi

npm --prefix "$SCRIPT_DIR/../ui" run ucc-gen
npm --prefix "$SCRIPT_DIR/../ui" run build
Loading