Commit e4fb848c31276f3f2a2c2f233a2bc9b38e1b200f

Michael Crumm 2021-08-23T18:20:13

Fix target detection on FreeBSD h/t @julp See https://github.com/phoenixframework/esbuild/pull/13

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/dart_sass.ex b/lib/dart_sass.ex
index d56083d..6f342b2 100644
--- a/lib/dart_sass.ex
+++ b/lib/dart_sass.ex
@@ -258,6 +258,7 @@ defmodule DartSass do
         osname = if osname == :darwin, do: :macos, else: osname
 
         case arch do
+          "amd64" -> "#{osname}-x64.tar.gz"
           "x86_64" -> "#{osname}-x64.tar.gz"
           _ -> raise "could not download dart_sass for architecture: #{arch_str}"
         end