Crates.io | aws-zip |
lib.rs | aws-zip |
version | 0.1.2 |
source | src |
created_at | 2019-03-23 07:52:05.711833 |
updated_at | 2019-03-27 17:19:27.304677 |
description | Zip command that ignores modification date and always produce the same zip. Can also compress to bzip2. Statically linked binary. |
homepage | https://github.com/cecton/aws-zip |
repository | https://github.com/cecton/aws-zip |
max_upload_size | |
id | 123264 |
size | 7,128 |
Exactly similar to the zip -r
command but with a few quirks:
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.
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.
Statically linked:
Just curl the file in your CI's build and it will work instantly.
It preserve executable permissions:
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