Skip to content

Commit

Permalink
Fix the tailwind binary URL for FreeBSD on x64 (phoenixframework#49)
Browse files Browse the repository at this point in the history
`:erlang.system_info` on FreeBSD x64 may return different processor
architecture strings depending on how it was installed - from ports, via
asdf or using other methods.
  • Loading branch information
SukhikhN committed Nov 9, 2023
1 parent 2298fd3 commit c3bc7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tailwind.ex
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ defmodule Tailwind do
{{:unix, :darwin}, arch, 64} when arch in ~w(arm aarch64) -> "macos-arm64"
{{:unix, :darwin}, "x86_64", 64} -> "macos-x64"
{{:unix, :freebsd}, "aarch64", 64} -> "freebsd-arm64"
{{:unix, :freebsd}, "amd64", 64} -> "freebsd-x64"
{{:unix, :freebsd}, arch, 64} when arch in ~w(x86_64 amd64) -> "freebsd-x64"
{{:unix, :linux}, "aarch64", 64} -> "linux-arm64"
{{:unix, :linux}, "arm", 32} -> "linux-armv7"
{{:unix, :linux}, "armv7" <> _, 32} -> "linux-armv7"
Expand Down

0 comments on commit c3bc7c6

Please sign in to comment.