Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,19 @@ defmodule Desktop.MixProject do
end

def extra_applications(:host) do
[:wx]
# Only include `:wx` when the OTP it would be loaded on actually has the
# `:wx` OTP application available. Without this guard, `mix release`
# aborts with "Could not find application :wx" when the build host's
# Erlang/OTP was configured `--without-wx` (e.g. on the macOS installer
# CI now that the workflow drops the custom wxWidgets build). The Erlang
# source file `src/desktop_wx.erl` already adapts to missing wx headers
# via `desktop_wx_stub.exs`, so a host build without `:wx` simply
# compiles the stub backend.
if :code.lib_dir(:wx) |> is_list() do
[:wx]
else
[]
end
end

def extra_applications(_mobile) do
Expand Down
Loading