mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Fix building plugins to file
This commit is contained in:
parent
69de2c9d85
commit
7cd5b04dbc
@ -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 New Issue
Block a user