Skip to content

Commit

Permalink
fix extension .ar.xz -> .ar.zst
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Oct 12, 2024
1 parent 88e6830 commit 9f08829
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() {

let mut archive = ar::Builder::new(
ZstdEncoder::new(
File::create(Path::new(&env::var("OUT_DIR").unwrap()).join("assets.ar.xz")).unwrap(),
File::create(Path::new(&env::var("OUT_DIR").unwrap()).join("assets.ar.zst")).unwrap(),
6,
)
.unwrap(),
Expand Down
4 changes: 2 additions & 2 deletions src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use serde::Serialize;
use tempfile::TempDir;
use zstd::stream::read::Decoder as ZstdDecoder;

static ASSETS_AR_XZ: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/assets.ar.xz"));
static ASSETS_AR_ZST: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/assets.ar.zst"));

bitflags! {
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
Expand Down Expand Up @@ -189,7 +189,7 @@ impl Assets {
let mut stockfish = ByEngineFlavor::<Option<PathBuf>>::default();
let dir = tempfile::Builder::new().prefix("fishnet-").tempdir()?;

let mut archive = Archive::new(ZstdDecoder::new(ASSETS_AR_XZ)?);
let mut archive = Archive::new(ZstdDecoder::new(ASSETS_AR_ZST)?);
while let Some(entry) = archive.next_entry() {
let mut entry = entry?;
let filename = str::from_utf8(entry.header().identifier()).expect("utf-8 filename");
Expand Down

0 comments on commit 9f08829

Please sign in to comment.