File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 3
3
4
4
require "shellwords"
5
5
6
- os = Gem ::Platform . local . os
6
+ platform_info = Gem ::Platform . local
7
+ platform_string = "#{ platform_info . cpu } -#{ platform_info . os } "
7
8
8
9
exe_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 /darwin\z / then File . join ( __dir__ , "darwin/sass" )
13
+ when /linux\z / then File . join ( __dir__ , "linux/sass" )
14
+ when /mingw32\z / then File . join ( __dir__ , "mingw32/sass.bat" )
13
15
else
14
16
STDERR . puts ( <<~ERRMSG )
15
- ERROR: dartsass-rails does not support the #{ os } operating system
17
+ ERROR: dartsass-rails does not support the #{ platform_string } platform
16
18
ERRMSG
17
19
exit 1
18
20
end
You can’t perform that action at this time.
0 commit comments