From 0b3f3302b37836ce208a1b7d8ffda4b08a2011bc Mon Sep 17 00:00:00 2001 From: Aphelion <61633628+AphelionWasTaken@users.noreply.github.com> Date: Mon, 4 May 2026 05:02:43 -0500 Subject: [PATCH] Move updates folder on MacOS --- .github/workflows/build.yml | 8 +++++--- PySN.py | 5 ++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 530ccd2..fc64299 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -176,10 +176,12 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: v2.6.2 - name: v2.6.2 + tag_name: v2.6.3 + name: v2.6.3 body: | - Try to fix icon on MacOS again. + Store updates in the correct place on MacOS. + + These were getting shoved into the app's Contents/MacOS folder. Now they should be next to the app. draft: false prerelease: false files: | diff --git a/PySN.py b/PySN.py index c16fc57..2247274 100644 --- a/PySN.py +++ b/PySN.py @@ -38,7 +38,10 @@ def __init__(self): def get_path(): if getattr(sys, 'frozen', False): - app_path = os.path.dirname(sys.executable) + if sys.platform.startswith('darwin'): + app_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(sys.executable)))) + else: + app_path = os.path.dirname(sys.executable) else: app_path = os.path.dirname(os.path.abspath(__file__)) normalized_path = app_path.replace('\\','/')