Skip to content

Commit

Permalink
Adds make_zipfile command to build a ZIP archive
Browse files Browse the repository at this point in the history
  • Loading branch information
lambda committed Mar 14, 2008
1 parent 6e1afcd commit 4eeca2a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion commands.rb
Expand Up @@ -105,9 +105,18 @@ def upload_files_for_updater(update_ssh_host, update_ssh_user, update_path,
program_temp, update_path)
end

# Create a tarball of directory dir, named dir.tar.gz
# Create a tarball of directory dir, named dir.tar.gz, and mark it for
# release
def make_tarball dir
tarball = "#{dir}.tar.gz"
run 'tar', 'czf', tarball, dir
release tarball, :cd => 1
end

# Create a ZIP file of directory dir, named dir.zip, and mark it for
# release
def make_zipfile dir
zipfile = "#{dir}.zip"
run 'zip', '-r', zipfile, dir
release zipfile, :cd => 1
end

0 comments on commit 4eeca2a

Please sign in to comment.