Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
sokorototo committed May 22, 2024
1 parent b341ab4 commit 2c6ea66
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 15 deletions.
100 changes: 96 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vach-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name = "vach"
path = "src/main.rs"

[dependencies]
vach = { path = "../vach", features = ["all"] }
vach = { version = "0.6", features = ["all"] }
num_cpus = "1.16.0"
clap = "3.1.15"
indicatif = "0.17.8"
Expand Down
1 change: 1 addition & 0 deletions vach-cli/src/commands/pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ impl CommandTrait for Evaluator {
.map(|v| v.parse::<usize>().ok())
.flatten()
.unwrap_or(num_cpus::get());

let builder_config = BuilderConfig {
flags,
magic,
Expand Down
2 changes: 1 addition & 1 deletion vach-cli/src/keys/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn build_keys<'a>() -> HashMap<&'static str, Arg<'a>> {
.short('j')
.long("jobs")
.value_name(key_names::JOBS)
.help("How many threads to spawn during archive processing, defaults to current number of threads")
.help("How many threads to spawn during archive processing, defaults to number of threads on system")
.required(false)
.takes_value(true)
.number_of_values(1),
Expand Down
18 changes: 9 additions & 9 deletions vach-cli/test_data/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -xe
# # Variables
EXCLUDE=test.sh
ARTIFACTS="keypair.sk keypair.pk keypair.kp signed.vach custom.vach encrypted.vach"
VACH="cargo run --release --"
CMD="cargo run -q --release --"

# # Delete any previous artifacts
rm -f $ARTIFACTS
Expand All @@ -17,22 +17,22 @@ echo "Starting vach-cli tests..."
cargo build --release

# # Create simple archive with simple input, no compression only signatures
$VACH pack --output signed.vach --directory-r ./ --compress-mode detect --compress-algo brotli --hash --exclude $EXCLUDE
$CMD pack --output signed.vach --directory-r ./ --compress-mode detect --compress-algo brotli --hash --exclude $EXCLUDE

# # Split the resulting keypair
$VACH split -i keypair.kp
$VACH list -i signed.vach
$CMD split -i keypair.kp
$CMD list -i signed.vach

# # Generate a compressed archive with custom magic
$VACH pack -o custom.vach -m CSTOM -i GamerProfile.xml -x $EXCLUDE
$VACH list -i custom.vach -m CSTOM
$CMD pack -o custom.vach -m CSTOM -i GamerProfile.xml -x $EXCLUDE
$CMD list -i custom.vach -m CSTOM

# # Generate an encrypted, signed and compressed archive
$VACH pack -o encrypted.vach -d lolcalt -ea -c always -s keypair.sk
$VACH list -i encrypted.vach
$CMD pack -o encrypted.vach -d lolcalt -ea -c always -s keypair.sk
$CMD list -i encrypted.vach

# Unpack the encrypted archive
$VACH unpack -i encrypted.vach -k keypair.kp
$CMD unpack -i encrypted.vach -k keypair.kp

# # Delete any previous artifacts
rm -f $ARTIFACTS

0 comments on commit 2c6ea66

Please sign in to comment.