fix build

This commit is contained in:
lyuksovannyy
2026-09-10 12:49:51 +02:00
parent bd34e7b8ba
commit bc103d069d
-4
View File
@@ -472,16 +472,12 @@ def bundle_plugin():
final_content = "\n".join(bundled_parts) final_content = "\n".join(bundled_parts)
# Write to both root plugin file and dist plugin file # Write to both root plugin file and dist plugin file
with open(ROOT_PLUGIN_FILE, "w", encoding="utf-8") as out:
out.write(final_content)
with open(DIST_PLUGIN_FILE, "w", encoding="utf-8") as out: with open(DIST_PLUGIN_FILE, "w", encoding="utf-8") as out:
out.write(final_content) out.write(final_content)
print(f"Bundled successfully -> {ROOT_PLUGIN_FILE}")
print(f"Bundled successfully -> {DIST_PLUGIN_FILE}") print(f"Bundled successfully -> {DIST_PLUGIN_FILE}")
# Validate syntax with py_compile # Validate syntax with py_compile
py_compile.compile(ROOT_PLUGIN_FILE, doraise=True)
py_compile.compile(DIST_PLUGIN_FILE, doraise=True) py_compile.compile(DIST_PLUGIN_FILE, doraise=True)
print("Compiled and validated bundled artifact syntax successfully!") print("Compiled and validated bundled artifact syntax successfully!")