Fix building plugins to file
This commit is contained in:
parent
69de2c9d85
commit
7cd5b04dbc
1 changed files with 2 additions and 1 deletions
|
@ -126,8 +126,9 @@ def build(path: str, output: str, upload: bool) -> None:
|
|||
output = BytesIO()
|
||||
os.chdir(path)
|
||||
write_plugin(meta, output)
|
||||
output.seek(0)
|
||||
if isinstance(output, str):
|
||||
print(f"{Fore.GREEN}Plugin built to {Fore.CYAN}{path}{Fore.GREEN}.{Fore.RESET}")
|
||||
else:
|
||||
output.seek(0)
|
||||
if upload:
|
||||
upload_plugin(output)
|
||||
|
|
Loading…
Reference in a new issue