🐛 修复 apt 安装插件报错

This commit is contained in:
Xtao_dada 2021-02-07 19:04:25 +08:00 committed by GitHub
parent c4eb7d92d1
commit 9a2d9ac039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ def move_plugin(file_path):
def update_version(file_path, plugin_content, plugin_name, version): def update_version(file_path, plugin_content, plugin_name, version):
plugin_directory = f"{working_dir}/plugins/"
with open(file_path, 'wb') as f: with open(file_path, 'wb') as f:
f.write(plugin_content) f.write(plugin_content)
with open(f"{plugin_directory}version.json", 'r', encoding="utf-8") as f: with open(f"{plugin_directory}version.json", 'r', encoding="utf-8") as f: