Commit 158cc2a4269afde7d04533f7162a093e118afbd3

Michael Crumm 2022-01-19T11:44:13

Support 32bit Linux

diff --git a/CHANGELOG.md b/CHANGELOG.md
index fcff603..db51c23 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
 
 ## v0.3.1
 
+  * Add support for 32bit linux (h/t @derek-zhou)
   * Support `HTTP_PROXY/HTTPS_PROXY` to fetch esbuild (h/t @iaddict)
   * Update Sass version to `1.43.4`
   * Fallback to _build if Mix.Project is not available
diff --git a/lib/dart_sass.ex b/lib/dart_sass.ex
index c4342ce..12dfd4f 100644
--- a/lib/dart_sass.ex
+++ b/lib/dart_sass.ex
@@ -303,6 +303,8 @@ defmodule DartSass do
     case arch do
       "amd64" -> "#{platform}-x64.tar.gz"
       "x86_64" -> "#{platform}-x64.tar.gz"
+      "i686" -> "#{platform}-ia32.tar.gz"
+      "i386" -> "#{platform}-ia32.tar.gz"
       _ -> raise "could not download dart_sass for architecture: #{arch_str}"
     end
   end