From 3e56105df8c785c16a3e1a51575128a21904913e Mon Sep 17 00:00:00 2001 From: Aphelion <61633628+AphelionWasTaken@users.noreply.github.com> Date: Tue, 21 Apr 2026 03:56:15 -0500 Subject: [PATCH] Fix MacOS builds --- .github/workflows/build.yml | 8 +++----- PySN.py | 9 ++++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1ed9549..b4cbd79 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -103,12 +103,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: v2.3.0 - release_name: v2.3.0 + tag_name: v2.3.1 + release_name: v2.3.1 body: | - Allows window to be expanded vertically to show more results at once. Fixes threading issue while performing large searches. - - Also generally speeds things up a bit when performing large searches, such as games.yml parsing. + Set the icon to only be referenced on Windows, fixing MacOS builds until an icon is added for MacOS. draft: false prerelease: false diff --git a/PySN.py b/PySN.py index b97ea75..7d5f627 100644 --- a/PySN.py +++ b/PySN.py @@ -115,7 +115,8 @@ def __init__(self, *args, **kwargs): self.grid_rowconfigure((0, 1, 2, 3, 4), weight=1) self.grid_columnconfigure((0, 1, 2, 3, 4, 5), weight=1) self.temp_save, self.temp_rpcs3 = ConfigSettings.check_config() - self.after(200, lambda: self.iconbitmap(resource_path("AphIcon.ico"))) + if sys.platform == 'win32': + self.after(200, lambda: self.iconbitmap(resource_path("AphIcon.ico"))) self.save_dir_label = customtkinter.CTkLabel(master=self, text='Download Update PKGs To This Folder:',justify = 'center', anchor='center') self.save_dir_label.grid(row=0, column=1, columnspan=4, padx=5, pady=(20,0), sticky='sew') @@ -189,7 +190,8 @@ def __init__(self, *args, **kwargs): self.geometry('400x240') self.grid_rowconfigure((0, 1, 2, 3, 4), weight=1) self.grid_columnconfigure((0, 1, 2, 3, 4, 5), weight=1) - self.after(200, lambda: self.iconbitmap(resource_path("AphIcon.ico"))) + if sys.platform == 'win32': + self.after(200, lambda: self.iconbitmap(resource_path("AphIcon.ico"))) self.save_dir_label = customtkinter.CTkLabel(master=self, text='You are about to download all of the updates in the list!\n\n\nContinue?\n', anchor='center') self.save_dir_label.grid(row=1, column=2, columnspan=2, padx=20, pady=0, sticky='ew') @@ -306,7 +308,8 @@ def __init__(self): self.grid_rowconfigure((1), weight=1) self.grid_columnconfigure((0, 1, 2, 3, 4), weight=1) self.bind('', lambda event: self.button_search()) - self.iconbitmap(resource_path("AphIcon.ico")) + if sys.platform == 'win32': + self.iconbitmap(resource_path("AphIcon.ico")) self.entry = customtkinter.CTkEntry(master=self, placeholder_text='Enter Serial', width = 125) self.entry.grid(row=0, column=0, padx=(4,2), pady=(6,0), sticky='ew')