publish 0.4.0: the function can be used seperately now
This commit is contained in:
parent
d00ac3056b
commit
3a4e2481f8
4 changed files with 18 additions and 13 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -171,7 +171,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rpfixer"
|
name = "rpfixer"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"adler",
|
"adler",
|
||||||
"clap",
|
"clap",
|
||||||
|
|
|
@ -5,7 +5,7 @@ license = "MIT"
|
||||||
authors = ["endernon"]
|
authors = ["endernon"]
|
||||||
repository = "https://git.frfrnocap.men/endernon/rpfixer"
|
repository = "https://git.frfrnocap.men/endernon/rpfixer"
|
||||||
readme = "readme.md"
|
readme = "readme.md"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
25
readme.md
25
readme.md
|
@ -9,7 +9,7 @@ This tool will not overcome any protection to the zip archive itself. See a prog
|
||||||
|
|
||||||
## CLI
|
## CLI
|
||||||
|
|
||||||
### Manual clone
|
#### Manual clone
|
||||||
- download the Rust-Lang for your system
|
- download the Rust-Lang for your system
|
||||||
- download this repository
|
- download this repository
|
||||||
- run `cargo build --release` in the directory
|
- run `cargo build --release` in the directory
|
||||||
|
@ -17,25 +17,30 @@ This tool will not overcome any protection to the zip archive itself. See a prog
|
||||||
- run
|
- run
|
||||||
- `respack-decrypter` if you are on linux/mac (RUN `chmod +x respack-decrypter` ON IT FIRST)
|
- `respack-decrypter` if you are on linux/mac (RUN `chmod +x respack-decrypter` ON IT FIRST)
|
||||||
- `respack-decrypter.exe` if you are on windows
|
- `respack-decrypter.exe` if you are on windows
|
||||||
### Cargo
|
#### Cargo
|
||||||
- Download the Rust-Lang for your system
|
- Download the Rust-Lang for your system
|
||||||
- run `cargo install rpfixer`
|
- run `cargo install rpfixer`
|
||||||
- Then run the `rpfixer` command
|
- Then run the `rpfixer` command
|
||||||
### Prebuilt package release
|
|
||||||
- I haven't made prebuilt packages, sorry. WIP
|
## Function library
|
||||||
|
- The library has one function: `rpfixer::idk::fix`. Use a `Vec<u8>` in it.
|
||||||
|
#### Example code
|
||||||
|
```rust
|
||||||
|
use std::fs;
|
||||||
|
fn main() {
|
||||||
|
let frfr = fs::read("filepath.png").expect("wtf the path doesnt exist");
|
||||||
|
let mut fr = rpfixer::idk::fix(frfr);
|
||||||
|
fs::write(thatpath, fr).expect("file could not write btw");
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
# Syntax
|
# Syntax
|
||||||
|
|
||||||
Check `--help` for syntax.
|
Check `--help` for syntax.
|
||||||
|
|
||||||
# I want some logs for checking wtf is happening
|
Example syntax:
|
||||||
|
|
||||||
Pipe your output to a new filename.
|
|
||||||
|
|
||||||
Note: It might not work for SOME linux shells. But major ones e.g. `zsh`,`bash` support it.
|
|
||||||
|
|
||||||
`rpfixer --path ~/somedir/ --debug > ~/log.txt`
|
|
||||||
|
|
||||||
# License
|
# License
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ mod idk;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use glob::glob;
|
use glob::glob;
|
||||||
use std::{fs::{metadata}, path::{PathBuf}};
|
use std::{fs::{metadata}, path::{PathBuf}};
|
||||||
use std::fs::{read, write, File};
|
use std::fs::{read, write};
|
||||||
|
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
#[command(version, about, long_about = None)]
|
#[command(version, about, long_about = None)]
|
||||||
|
|
Loading…
Reference in a new issue