#zip #bzip2 #aws #hashable

app aws-zip

Zip command that ignores modification date and always produce the same zip. Can also compress to bzip2. Statically linked binary.

3 releases

0.1.2 Mar 27, 2019
0.1.1 Mar 23, 2019
0.1.0 Mar 23, 2019

#5 in #hashable

MIT license

7KB
95 lines

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

Dependencies

~2.6–3.5MB
~59K SLoC