Skip to content

Commit

Permalink
fix: 预置配置没放好
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofeiTM233 committed Oct 9, 2024
1 parent 46ffd6d commit 4655eae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@
"entry": "X"
}
],
"version": "v1.1.0"
"version": "v1.1.1"
}
9 changes: 5 additions & 4 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@ def install_resource():
working_dir / "assets" / "interface.json",
install_path,
)
shutil.copy2(
working_dir / "config" / "maa_pi_config.json",
install_path,
shutil.copytree(
working_dir / "assets" / "config",
install_path / "config",
dirs_exist_ok=True,
)

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 4655eae

Please sign in to comment.