Skip to content

Commit

Permalink
Update MultiMC to Git.py (#714)
Browse files Browse the repository at this point in the history
fixes #712 (maybe)
  • Loading branch information
RozeFound authored Sep 4, 2023
1 parent d9ee54d commit 4d9e158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CLI tools/MultiMC to Git.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def copy_file(from_path: Path, to_path: Path, from_desc: str, to_desc: str) -> N
print(f"Skipped {from_desc} copying to {to_desc}, didn't exist")


def copy_to_archive(from_path: Path, to_path: Path, archive_path: Path) -> None:
def copy_to_archive(from_path: Path, to_path: str, archive_path: Path) -> None:
files = []

with zipfile.ZipFile(archive_path, "r") as archive:
Expand Down Expand Up @@ -46,7 +46,7 @@ def copy_to_archive(from_path: Path, to_path: Path, archive_path: Path) -> None:

copy_to_archive(
Path(git_path, "MultiMC/Fabulously Optimized x.y.z/instance.cfg"),
Path(f"Fabulously Optimized {version}/instance.cfg"),
f"Fabulously Optimized {version}/instance.cfg",
Path(output_path, f"Fabulously Optimized {version}.zip"),
)
copy_file(
Expand Down

0 comments on commit 4d9e158

Please sign in to comment.