Skip to content

Commit

Permalink
chore: update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jessielw committed Jan 24, 2024
1 parent 21fe61a commit d469c8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def build_app():
pyinstaller_folder.mkdir(exist_ok=True)

# Define paths before changing directory
img_gen = project_root / "image_generator.py"
img_gen = project_root / "frame_forge.py"
icon_path = project_root / "images" / "icon.ico"
additional_hooks_path = Path(Path.cwd() / "hooks")

Expand All @@ -54,15 +54,15 @@ def build_app():
"--add-data",
f"{vapoursynth_64_portable};.",
"--name",
"Image-Generator",
"FrameForge",
str(img_gen),
f"--additional-hooks-dir={str(additional_hooks_path)}",
]
)

# Ensure the output of the .exe
success = "Did not complete successfully"
exe_path = project_root / pyinstaller_folder / "dist" / "Image-Generator.exe"
exe_path = project_root / pyinstaller_folder / "dist" / "FrameForge.exe"
if exe_path.is_file() and str(build_job.returncode) == "0":
success = f"\nSuccess!\nPath to exe: {str(exe_path)}"

Expand Down

0 comments on commit d469c8f

Please sign in to comment.