Skip to content

Commit

Permalink
Add notification directory when adding for windows
Browse files Browse the repository at this point in the history
When copying the windows notification app into the app binary directory
we have to first make the necessary parent directories. This problem
doesn't exist on the mac version because for that we need to use
'copytree' which creates the directories for us. Since for the windows
version we are only copying one file we use 'copy2', which does not make
the directories for us.
  • Loading branch information
dunkmann00 committed Apr 13, 2024
1 parent b605ac4 commit d5d7e6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def add_notifications(app_path):
elif platform.system() == "Windows":
print("Copying windows notifications app into app build.", file=sys.stderr)
src_path = src_path / f"{NOTIFICATIONS_PROJECT_NAME}.exe"
if not dst_path.exists():
dst_path.mkdir(parents=True)
shutil.copy2(src_path, dst_path)

@cli.command()
Expand Down

0 comments on commit d5d7e6c

Please sign in to comment.