Remove cs2dumper files
These files don't need to be in the repository, as they are automatically downloaded when building.
This commit is contained in:
8
build.rs
8
build.rs
@@ -8,7 +8,7 @@ fn download(url: &str, to: &str) -> Result<(), Box<dyn Error>> {
|
||||
.expect("Convert response to text");
|
||||
|
||||
std::fs::write(to, content)
|
||||
.expect("Write offsets to file");
|
||||
.expect("Write to file");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@@ -18,17 +18,17 @@ fn main() -> Result<(), Box<dyn Error>> {
|
||||
download(
|
||||
"https://raw.githubusercontent.com/a2x/cs2-dumper/main/generated/client.dll.rs",
|
||||
"./src/sdk/cs2dumper/client.rs"
|
||||
).expect("Failed to download build file");
|
||||
).expect("Failed to download build file \"client.dll.rs\"");
|
||||
|
||||
download(
|
||||
"https://raw.githubusercontent.com/a2x/cs2-dumper/main/generated/offsets.rs",
|
||||
"./src/sdk/cs2dumper/offsets.rs"
|
||||
).expect("Failed to download build file");
|
||||
).expect("Failed to download build file \"offsets.rs\"");
|
||||
|
||||
download(
|
||||
"https://raw.githubusercontent.com/a2x/cs2-dumper/main/generated/engine2.dll.rs",
|
||||
"./src/sdk/cs2dumper/engine2.rs"
|
||||
).expect("Failed to download build file");
|
||||
).expect("Failed to download build file \"engine2.dll.rs\"");
|
||||
|
||||
EmitBuilder::builder()
|
||||
.git_sha(true)
|
||||
|
||||
Reference in New Issue
Block a user