lib/jets/builders/md5_zip.rb in jets-3.0.3 vs lib/jets/builders/md5_zip.rb in jets-3.0.4
- old
+ new
@@ -21,10 +21,10 @@
def create
headline "Creating zip file for #{@path}"
# => Creating zip file for /tmp/jets/demo/stage/bundled
# https://serverfault.com/questions/265675/how-can-i-zip-compress-a-symlink
- command = "cd #{@path} && zip --symlinks -rq #{zip_file} ."
+ command = "cd #{@path} && chmod -R 755 . && zip --symlinks -rq #{zip_file} ."
sh(command)
# move out of the lower folder to the stage folder
# mv /tmp/jets/demo/stage/code/code.zip /tmp/jets/demo/stage/code.zip
FileUtils.mkdir_p(File.dirname(zip_dest))
FileUtils.mv("#{@path}/#{zip_file}", zip_dest)
\ No newline at end of file