fix first install

This commit is contained in:
chiu 2024-01-01 03:46:09 +00:00
parent 9b200c9332
commit a2b7ed7804
1 changed files with 5 additions and 1 deletions

View File

@ -31,7 +31,11 @@ if bundle_update_flag
end
save_zip_name = "#{ENV['PWD']}/tmp/ffmpeg-4.2-linux-64.zip"
IO.copy_stream(download, save_zip_name)
begin
require 'zip'
rescue LoadError
bundler_with_clean_env{system("gem install zip-zip")}
end
FileUtils.mkdir_p(destination)
Zip::File.open(save_zip_name) do |zip_file|
zip_file.each do |f|