lib/roku_builder/loader.rb in roku_builder-3.12.8 vs lib/roku_builder/loader.rb in roku_builder-3.13.0
- old
+ new
@@ -60,10 +60,10 @@
return MISSING_MANIFEST if build_version == MISSING_MANIFEST
content ||= {}
content[:folders] ||= Dir.entries(@root_dir).select {|entry| File.directory? File.join(@root_dir, entry) and !(entry =='.' || entry == '..') }
content[:files] ||= Dir.entries(@root_dir).select {|entry| File.file? File.join(@root_dir, entry)}
content[:excludes] ||= []
- out_file = "/tmp/#{build_version}" unless out_file
+ out_file = "#{Dir.tmpdir}/#{build_version}" unless out_file
out_file = out_file+".zip" unless out_file.end_with?(".zip")
File.delete(out_file) if File.exist?(out_file)
io = Zip::File.open(out_file, Zip::File::CREATE)
# Add folders to zip
content[:folders].each do |folder|