3 releases
0.1.2 | Mar 27, 2019 |
---|---|
0.1.1 | Mar 23, 2019 |
0.1.0 | Mar 23, 2019 |
#6 in #hashable
7KB
95 lines
aws-zip
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:
- 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
~4–12MB
~119K SLoC