File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ defmodule Burrito do
24
24
exit ( 1 )
25
25
end
26
26
27
- if Enum . any? ( ~w( 7z) , & ( System . find_executable ( & 1 ) == nil ) ) do
27
+ if Enum . any? ( ~w( 7z 7zz ) , & ( System . find_executable ( & 1 ) == nil ) ) do
28
28
Log . warning (
29
29
:build ,
30
- "We couldn't find 7z in your PATH, 7z is required to build Windows releases. They will fail if you don't fix this!"
30
+ "We couldn't find 7z/7zz in your PATH, 7z/7zz is required to build Windows releases. They will fail if you don't fix this!"
31
31
)
32
32
end
33
33
Original file line number Diff line number Diff line change @@ -70,10 +70,16 @@ defmodule Burrito.Util.DefaultERTSResolver do
70
70
extraction_path = System . tmp_dir! ( ) |> Path . join ( [ "unpacked_erts_#{ random_id } " ] )
71
71
File . mkdir_p! ( extraction_path )
72
72
73
+ seven_z =
74
+ with nil <- System . find_executable ( "7zz" ) ,
75
+ nil <- System . find_executable ( "7z" ) do
76
+ raise "Couldn't find 7z/7zz"
77
+ end
78
+
73
79
# we use 7z to unpack windows setup files, otherwise we use tar
74
80
command =
75
81
case target . os do
76
- :windows -> ~c" 7z x #{ tar_dest_path } -o#{ extraction_path } /otp-windows/"
82
+ :windows -> ~c" #{ seven_z } x #{ tar_dest_path } -o#{ extraction_path } /otp-windows/"
77
83
_ -> ~c" tar xzf #{ tar_dest_path } -C #{ extraction_path } "
78
84
end
79
85
You can’t perform that action at this time.
0 commit comments