Skip to content

Commit

Permalink
Support FreeBSD target architectures (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
dch authored Jan 16, 2023
1 parent 2a9be7e commit 506d35c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

* Add FreeBSD targets
* Add armv7 targets
* Support custom URLs for fetching prebuilt tailwind binaries

## v0.1.9 (2022-09-06)

* Use only TLS 1.2 on OTP versions less than 25.
Expand Down
4 changes: 4 additions & 0 deletions lib/tailwind.ex
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ defmodule Tailwind do
end

# Available targets:
# tailwindcss-freebsd-arm64
# tailwindcss-freebsd-x64
# tailwindcss-linux-arm64
# tailwindcss-linux-x64
# tailwindcss-linux-armv7
Expand All @@ -292,6 +294,8 @@ defmodule Tailwind do
{{:win32, _}, _arch, 64} -> "windows-x64.exe"
{{: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, :linux}, "aarch64", 64} -> "linux-arm64"
{{:unix, :linux}, "arm", 32} -> "linux-armv7"
{{:unix, :linux}, "armv7" <> _, 32} -> "linux-armv7"
Expand Down

0 comments on commit 506d35c

Please sign in to comment.