Correct Monero build script

This commit is contained in:
Luke Parker
2022-08-21 06:48:59 -04:00
parent 603a3f8c9f
commit 8af3a9ea51

View File

@@ -1,7 +1,7 @@
use std::{ use std::{
io::Write, io::Write,
path::Path, path::Path,
fs::{File, remove_file}, fs::{File, DirBuilder, remove_file},
}; };
use dalek_ff_group::EdwardsPoint; use dalek_ff_group::EdwardsPoint;
@@ -33,6 +33,7 @@ fn generators(prefix: &'static str, path: &str) {
let mut H_str = "".to_string(); let mut H_str = "".to_string();
serialize(&mut H_str, &generators.H); serialize(&mut H_str, &generators.H);
DirBuilder::new().recursive(true).create(".generators").unwrap();
let path = Path::new(".generators").join(path); let path = Path::new(".generators").join(path);
let _ = remove_file(&path); let _ = remove_file(&path);
File::create(&path) File::create(&path)