Skip to content

Commit

Permalink
name not correct for mac os
Browse files Browse the repository at this point in the history
  • Loading branch information
ullmannJan committed Jul 20, 2024
1 parent 4e3dfc8 commit 96c747a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiling/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

# Determine the architecture
arch = platform.machine()
extension = ""
match sys.platform:
case "win32":
archive_format = "zip"
Expand All @@ -62,6 +63,7 @@
case "darwin":
archive_format = "gztar"
suffix = "_mac"
extension = ".app"

# Append architecture to suffix
if "arm" in arch.lower():
Expand All @@ -70,7 +72,7 @@
suffix += "_x64"

shutil.make_archive(
output_path.with_name(f"{program_name}{suffix}"),
output_path.with_name(f"{program_name}{suffix}{extension}"),
archive_format,
output_path,
)

0 comments on commit 96c747a

Please sign in to comment.