fix first install
This commit is contained in:
parent
9b200c9332
commit
a2b7ed7804
|
@ -31,7 +31,11 @@ if bundle_update_flag
|
||||||
end
|
end
|
||||||
save_zip_name = "#{ENV['PWD']}/tmp/ffmpeg-4.2-linux-64.zip"
|
save_zip_name = "#{ENV['PWD']}/tmp/ffmpeg-4.2-linux-64.zip"
|
||||||
IO.copy_stream(download, save_zip_name)
|
IO.copy_stream(download, save_zip_name)
|
||||||
|
begin
|
||||||
require 'zip'
|
require 'zip'
|
||||||
|
rescue LoadError
|
||||||
|
bundler_with_clean_env{system("gem install zip-zip")}
|
||||||
|
end
|
||||||
FileUtils.mkdir_p(destination)
|
FileUtils.mkdir_p(destination)
|
||||||
Zip::File.open(save_zip_name) do |zip_file|
|
Zip::File.open(save_zip_name) do |zip_file|
|
||||||
zip_file.each do |f|
|
zip_file.each do |f|
|
||||||
|
|
Loading…
Reference in New Issue