Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Kasianov Nikolai Alekseevich | 47f3635d35 | 2 years ago |
Kasianov Nikolai Alekseevich | 03e2722d53 | 2 years ago |
Kasianov Nikolai Alekseevich | da51ba9348 | 2 years ago |
Kasianov Nikolai Alekseevich | eb14a677f6 | 2 years ago |
5 changed files with 84 additions and 3 deletions
@ -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
|
@ -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…
Reference in new issue