fix build
This commit is contained in:
@@ -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!")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user