Skip to content

Commit 89bbf11

Browse files
committed
Ensure :public_key is available
1 parent c526a32 commit 89bbf11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/package/macos.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ defmodule Desktop.Deployment.Package.MacOS do
359359
cert = File.read!(pem_filename)
360360
# Test for missing public_key application
361361
# ref https://elixirforum.com/t/nerves-key-hub-mix-tasks-fail-because-of-missing-pubkey-pem-module/62821/2
362-
{:ok, _started} = Application.ensure_all_started(:public_key)
362+
Mix.ensure_application!(:public_key)
363363
cert_der = List.keyfind!(:public_key.pem_decode(cert), :Certificate, 0)
364364

365365
:public_key.der_decode(:Certificate, elem(cert_der, 1))

0 commit comments

Comments
 (0)