Skip to content

Commit

Permalink
fix: wrong install json
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Apr 10, 2024
1 parent 1b81ff2 commit 1b2ce80
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ def install_resource():
install_path,
)

with open(install_path / "interface.json", "r+", encoding="utf-8") as f:
with open(install_path / "interface.json", "r", encoding="utf-8") as f:
interface = json.load(f)
interface["version"] = version

interface["version"] = version

with open(install_path / "interface.json", "w", encoding="utf-8") as f:
json.dump(interface, f, ensure_ascii=False, indent=4)


Expand Down

0 comments on commit 1b2ce80

Please sign in to comment.