Skip to content

Commit

Permalink
replace zip archive with tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Jan 15, 2024
1 parent 217620e commit 777ff75
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 21 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ peg = "0.8.1"
regex = "1.8.1"
serde = { version = "1.0.160", features = ["derive"] }
serde_json = "1.0.96"
tinyrick = { version = "^0.0.13", optional = true }
tinyrick_extras = { version = "^0.0.7", optional = true }
tinyrick = { version = "^0.0.14", optional = true }
tinyrick_extras = { version = "^0.0.8", optional = true }
walkdir = "2.3.3"

[features]
Expand Down
5 changes: 4 additions & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* POSIX compatible [make](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html)
* [rustup](https://rustup.rs/) 1.25.2+
* [Rust](https://www.rust-lang.org/en-US/) 1.75.0+
* [zip](https://en.wikipedia.org/wiki/ZIP_(file_format))
* POSIX compatible [tar](https://pubs.opengroup.org/onlinepubs/7908799/xcu/tar.html)
* Provision additional dev tools with `make`

## Recommended
Expand All @@ -17,6 +17,9 @@
* [cargo-cache](https://crates.io/crates/cargo-cache)
* [tree](https://en.wikipedia.org/wiki/Tree_(command))
* [GNU time](https://www.gnu.org/software/time/)
* a UNIX environment, such as macOS, Linux, BSD, [WSL](https://learn.microsoft.com/en-us/windows/wsl/), etc.

Non-UNIX environments may produce subtle adverse effects when linting or generating application ports.

# INSTALL BINARIES FROM SOURCE

Expand Down
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ all:
rustfmt
cargo install --force \
cargo-audit \
crit@0.0.7 \
crit@0.0.8 \
cross@0.2.5 \
tinyrick@0.0.13
tinyrick@0.0.14
21 changes: 5 additions & 16 deletions tinyrick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,12 @@ fn banner() -> String {
format!("{}-{}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"))
}

/// Compress binaries.
/// archive bundles executables.
fn archive() {
let b: &str = &banner();

let archive_basename: &str = &format!("{}.zip", b);
let archive_path: &path::Path = path::Path::new(archive_basename);

let archive_str: &str = &archive_path.display().to_string();

let binary_artifacts_dir_str: &str =
&path::Path::new(".crit").join("bin").display().to_string();

assert!(tinyrick::exec_mut!("zip", &["-r", archive_str, b])
.current_dir(binary_artifacts_dir_str)
.status()
.unwrap()
.success());
tinyrick_extras::archive(
path::Path::new(".crit").join("bin").display().to_string(),
banner(),
);
}

/// Prepare cross-platform release media.
Expand Down

0 comments on commit 777ff75

Please sign in to comment.