Crates.io | ziply |
lib.rs | ziply |
version | 0.1.2 |
source | src |
created_at | 2024-10-10 15:12:25.88632 |
updated_at | 2024-11-13 13:24:39.263338 |
description | A simple tool to easily specify directories inside ZIP files using YAML configuration. |
homepage | https://github.com/tktk4/ziply |
repository | https://github.com/tktk4/ziply |
max_upload_size | |
id | 1403885 |
size | 38,790 |
Ziply makes specifying directories inside a ZIP simple.
cargo install ziply
ziply.yaml
.ziply run
.Here is an example of a ziply.yaml file:
packs:
test:
# Specifies the output path for the generated ZIP file.
filename: path/to/output/test.zip
# Lists the entries that will be included in the ZIP archive.
entries:
# Defines the directory within the archive where files will be stored.
- dest_dir: .
# Specifies the files to include in the specified destination directory.
# Files can be specified in two formats: 'source' or dictionary '{src: "", dest: ""}'.
files:
- ./src/main.rs # Use the original name of the source file if no destination is specified.
# Renames the source file when adding it to the archive.
- src: ./src/main.rs
dest: renamed_main.rs