aws-zip

Crates.ioaws-zip
lib.rsaws-zip
version0.1.2
sourcesrc
created_at2019-03-23 07:52:05.711833
updated_at2019-03-27 17:19:27.304677
descriptionZip command that ignores modification date and always produce the same zip. Can also compress to bzip2. Statically linked binary.
homepagehttps://github.com/cecton/aws-zip
repositoryhttps://github.com/cecton/aws-zip
max_upload_size
id123264
size7,128
Cecile Tonglet (cecton)

documentation

README

Build Status Latest Version License LOC Dependency Status

aws-zip

Exactly similar to the zip -r command but with a few quirks:

  1. It doesn't store the modification time:

    Zipping the same file with the same content but different modification time will produce always the same result. This is useful if you plan to deploy ZIPs on AWS Lambda for example.

  2. It allows you to compress in bzip2 instead of deflate:

    This is also useful if you want to reduce your ZIP to upload on AWS.

  3. Statically linked:

    Just curl the file in your CI's build and it will work instantly.

  4. It preserve executable permissions:

    • Directories: 755
    • Executable files: 755
    • Not executable files: 644

Installation in CI environment

curl -sSL https://github.com/cecton/aws-zip/releases/download/v0.1.1/aws-zip-linux-x86_64-static \
    > /usr/local/bin/aws-zip
chmod +x /usr/local/bin/aws-zip
Commit count: 7

cargo fmt