Skip to content

Commit b9ddc91

Browse files
committed
!rewrite signatures if needed
1 parent 9256e97 commit b9ddc91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/package/macos.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ defmodule Desktop.Deployment.Package.MacOS do
352352

353353
def rewrite_dep(object, old_name, new_name) do
354354
cmd!("install_name_tool", ["-change", old_name, new_name, object])
355+
# The install_name_tool does leave the binary with an invalid signature. Invalid signatures
356+
# are not launchable, so to make it locally runnable for development (without a proper certificate)
357+
# we sign it with an empty signature.
358+
cmd!("codesign", ["-s", "-", object])
355359
end
356360

357361
def rewrite_deps(object, fun) do

0 commit comments

Comments
 (0)