Compare commits

...

4 Commits
v0.3 ... master

  1. 4
      .gitignore
  2. 2
      Cargo.lock
  3. 3
      Cargo.toml
  4. 42
      Makefile
  5. 36
      README.md

4
.gitignore vendored

@ -1,2 +1,4 @@
/target /target
/.idea /.idea
/release
rip

2
Cargo.lock generated

@ -4,4 +4,4 @@ version = 3
[[package]] [[package]]
name = "rip" name = "rip"
version = "0.1.0" version = "0.3.0"

3
Cargo.toml

@ -1,7 +1,8 @@
[package] [package]
name = "rip" name = "rip"
version = "0.1.0" version = "0.3.0"
edition = "2021" edition = "2021"
authors = ["Kasyanov Nikolay Alexeyevich (Unbewohnte)"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

42
Makefile

@ -0,0 +1,42 @@
all:
cargo build --release && mv target/release/rip .
clean:
rm -rf release rip
cross_release: clean
cargo build --release --target x86_64-pc-windows-gnu
cargo build --release --target x86_64-unknown-linux-musl
cargo build --release --target i686-unknown-linux-musl
cargo build --release --target i686-pc-windows-gnu
mkdir -p release/rip_x86_64-pc-windows-gnu
mkdir -p release/rip_x86_64-unknown-linux-musl
mkdir -p release/rip_i686-unknown-linux-musl
mkdir -p release/rip_i686-pc-windows-gnu
cp COPYING release/rip_x86_64-pc-windows-gnu
cp COPYING release/rip_x86_64-unknown-linux-musl
cp COPYING release/rip_i686-unknown-linux-musl
cp COPYING release/rip_i686-pc-windows-gnu
cp README.md release/rip_x86_64-pc-windows-gnu
cp README.md release/rip_x86_64-unknown-linux-musl
cp README.md release/rip_i686-unknown-linux-musl
cp README.md release/rip_i686-pc-windows-gnu
cp target/x86_64-pc-windows-gnu/release/rip.exe release/rip_x86_64-pc-windows-gnu
cp target/x86_64-unknown-linux-musl/release/rip release/rip_x86_64-unknown-linux-musl
cp target/i686-unknown-linux-musl/release/rip release/rip_i686-unknown-linux-musl
cp target/i686-pc-windows-gnu/release/rip.exe release/rip_i686-pc-windows-gnu
cd release && \
zip -r rip_x86_64-pc-windows-gnu rip_x86_64-pc-windows-gnu/ && \
zip -r rip_x86_64-unknown-linux-musl rip_x86_64-unknown-linux-musl && \
zip -r rip_i686-unknown-linux-musl rip_i686-unknown-linux-musl && \
zip -r rip_i686-pc-windows-gnu rip_i686-pc-windows-gnu
rm -r release/rip_x86_64-pc-windows-gnu
rm -r release/rip_x86_64-unknown-linux-musl
rm -r release/rip_i686-unknown-linux-musl
rm -r release/rip_i686-pc-windows-gnu

36
README.md

@ -0,0 +1,36 @@
# RIP
## various embedded content
# Use
`rip -h` will print out this help message
```
rip (optional)[FLAG]... (optional; default=ALL)[RIPTYPE] [FILE]...
[FLAG]s
"-v" or "--version" -> print version
"-h" or "--help" -> print this message
"-sd" or "--save-dir" [DIR] -> specify save directory
"-mfs" or "--max-file-size" [SIZE] -> skip files bigger than size (in bytes)
[RIPTYPE]
ALL -> rip everything that seems like an embedded content
IMG -> try to look for images only
AUDIO -> rip audio content
```
### Examples
- `rip audio music/*` -> extract found audio data from all files in music directory
- `rip -sd extracted img game_with_cool_sprites.exe` -> get image data from `game_with_cool_sprites.exe` and save it to `extracted` folder
- `rip -mfs 52428800 all various_files/*` -> rip everything from files that are under 50MB
- `rip all various_files/file1.data various_files/file2.xp3` -> rip everything from file1.data and file2.xp3
# Compile
As usual - `cargo build --release` or simply `make all` if you have it.
RIP has no dependencies and never will so no Internet connection needed in order to build it
# License
RIP is under GPLv3
Loading…
Cancel
Save