From fb85c42c520c660f1eb0578e69125767fc77041f Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sun, 1 Oct 2023 15:31:21 -0600 Subject: [PATCH] constants.py: Fix path handling with DMG mounting --- resources/constants.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/resources/constants.py b/resources/constants.py index 3579e9f77..1e2bac2fb 100644 --- a/resources/constants.py +++ b/resources/constants.py @@ -243,14 +243,6 @@ class Constants: os_data.os_data.sonoma, ] - self.icons_path = [ - str(self.icon_path_macos_generic), - str(self.icon_path_macos_big_sur), - str(self.icon_path_macos_monterey), - str(self.icon_path_macos_ventura), - str(self.icon_path_macos_sonoma) - ] - @property def special_build(self): """ @@ -779,6 +771,16 @@ class Constants: return Path(self.launcher_binary).parent.parent / Path("Resources") + @property + def icons_path(self): + return [ + str(self.icon_path_macos_generic), + str(self.icon_path_macos_big_sur), + str(self.icon_path_macos_monterey), + str(self.icon_path_macos_ventura), + str(self.icon_path_macos_sonoma) + ] + sbm_values = [ "j137ap", # iMacPro1,1 "j680ap", # MacBookPro15,1