Skip to content

Commit ea0fd1f

Browse files
committed
try mix.ensure_application
1 parent 48ca63d commit ea0fd1f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/package/macos.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,10 @@ 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)
363+
364+
{:ok, _started} =
365+
Application.ensure_all_started(:public_key)
363366
|> IO.inspect(label: "Application.ensure_all_started(:public_key)")
364367

365368
Application.spec(:public_key) |> IO.inspect(label: "Application.spec(:public_key)")

0 commit comments

Comments
 (0)