Skip to content

Commit 4db34a7

Browse files
committed
Include new homebrew directories in search path for libraries
1 parent 5f89d3d commit 4db34a7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/package/macos.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,9 @@ defmodule Desktop.Deployment.Package.MacOS do
312312
|> Enum.filter(&is_binary/1)
313313
end
314314

315+
@prefixes ["/opt/homebrew/", "/usr/local/opt/", "/Users/"]
315316
defp should_rewrite?(bin, dep) do
316-
String.starts_with?(dep, "/usr/local/opt/") or String.starts_with?(dep, "/Users/") or
317+
Enum.any?(@prefixes, &String.starts_with?(dep, &1)) or
317318
(String.starts_with?(dep, "@executable_path") and
318319
not File.exists?(
319320
Path.join(

0 commit comments

Comments
 (0)