Skip to content

Commit e3dcce9

Browse files
committed
Add --keychain param to pkg build
1 parent 89bbf11 commit e3dcce9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/package/macos.ex

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,14 @@ defmodule Desktop.Deployment.Package.MacOS do
133133
app_root = Path.join(build_root, "#{pkg.name}.app")
134134
out_file = Path.join(build_root, "#{pkg.name}-#{vsn}.pkg")
135135
args = ["--component", app_root, "/Applications"]
136-
args = if developer_id != nil, do: ["--sign", developer_id] ++ args, else: args
136+
137+
args =
138+
if developer_id != nil do
139+
["--keychain", keychain(), "--sign", developer_id] ++ args
140+
else
141+
args
142+
end
143+
137144
cmd!("productbuild", args ++ [out_file])
138145
end
139146

0 commit comments

Comments
 (0)