Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getInstallDir and getSliceDir for macOS bin dist #3027

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions scripts/Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ def getSliceDir(self, mapping, current):
if installDir.endswith(mapping.name):
installDir = installDir[0 : len(installDir) - len(mapping.name) - 1]
if platform.getInstallDir() and installDir == platform.getInstallDir():
return os.path.join(installDir, "share", "ice", "slice")
if sys.platform == "darwin":
return os.path.join(installDir, "opt", "ice", "share", "ice", "slice")
else:
return os.path.join(installDir, "share", "ice", "slice")
else:
return os.path.join(installDir, "slice")

Expand Down Expand Up @@ -378,7 +381,7 @@ def getLdPathEnvName(self):
return "DYLD_LIBRARY_PATH"

def getInstallDir(self):
return "/usr/local"
return "/opt/homebrew" if platform_machine() == "arm64" else "/usr/local"


class Linux(Platform):
Expand Down