File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 33
44require "shellwords"
55
6- os = Gem ::Platform . local . os
6+ platform_info = Gem ::Platform . local
7+ platform_string = "#{ platform_info . cpu } -#{ platform_info . os } "
78
89exe_path =
9- case os
10- when "darwin" then File . join ( __dir__ , "darwin/sass" )
11- when "linux" then File . join ( __dir__ , "linux/sass" )
12- when "mingw32" then File . join ( __dir__ , "mingw32/sass.bat" )
10+ case platform_string
11+ when "aarch64-linux" then File . join ( __dir__ , "aarch64-linux/sass" )
12+ when "arm64-darwin" then File . join ( __dir__ , "arm64-darwin/sass" )
13+ when /darwin\z / then File . join ( __dir__ , "darwin/sass" )
14+ when /linux\z / then File . join ( __dir__ , "linux/sass" )
15+ when /mingw32\z / then File . join ( __dir__ , "mingw32/sass.bat" )
1316 else
1417 STDERR . puts ( <<~ERRMSG )
15- ERROR: dartsass-rails does not support the #{ os } operating system
18+ ERROR: dartsass-rails does not support the #{ platform_string } platform
1619 ERRMSG
1720 exit 1
1821 end
You can’t perform that action at this time.
0 commit comments