Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicletz committed Feb 27, 2024
1 parent 63912e3 commit 41cad5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mix/tasks/installer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ defmodule Mix.Tasks.Desktop.Installer do
@shortdoc "Creates a platform specific installer package."
def run(_args, config \\ Mix.Project.config()) do
release =
Enum.find(config[:releases], fn {_name, rel} ->
Enum.find(config[:releases] || [], fn {_name, rel} ->
steps = Keyword.get(rel, :steps, [])
Enum.member?(steps, &Desktop.Deployment.generate_installer/1)
end)

if release == nil do
IO.puts("""
Desktop.Installer couldn't find a release steps configured
Desktop.Installer couldn't find a release with steps configured
to include the Deployment task `&Desktop.Deployment.generate_installer/1`.
Add the `generate_installer/1` callback at least to one of your
Expand Down

0 comments on commit 41cad5a

Please sign in to comment.