Crates.io | qrex |
lib.rs | qrex |
version | 0.3.1 |
source | src |
created_at | 2024-10-25 20:47:11.514848 |
updated_at | 2024-10-27 10:38:29.700475 |
description | Qt Resource Extractor |
homepage | |
repository | https://github.com/mb1986/qrex |
max_upload_size | |
id | 1423143 |
size | 37,497 |
The minimum supported rust version is: 1.74.1.
Install from crates.io:
cargo install qrex
or directly from GitHub:
cargo install --git https://github.com/mb1986/qrex
binary_path: binary # Path to the Qt application binary
output_path: output/directory # Directory for extracted resources
base_address: 0x10000 # (optional) Address offset to be subtracted from all resource addresses
resources: # Container for resource entries
- version: 3 # Qt resource version (only version 3 is supported)
addresses: { tree: 0xb34bd8, names: 0xb34a28, data: 0xb369d8 } # Addresses pointing to resource structures
calls: [0x61b30, 0x64228] # (optional) Addresses where the resource is registered
- version: 3
addresses: { tree: 0xa962e0, names: 0xa96170, data: 0xa95f98 }
calls: [0x632e4, 0x64330]
- version: 3
addresses: { tree: 0x7811a8, names: 0x7810f8, data: 0x780c48 }
calls: [0x63a88]
binary_path = "binary" # Path to the Qt application binary
output_path = "output/directory" # Directory for extracted resources
base_address = 0x10000 # (optional) Address offset to be subtracted from all resource addresses
[[resource]] # Resource entry
version = 3 # Qt resource version (only version 3 is supported)
addresses = { tree = 0xb34bd8, names = 0xb34a28, data = 0xb369d8 } # Addresses pointing to resource structures
calls = [0x61b30, 0x64228] # (optional) Addresses where the resource is registered
[[resource]]
version = 3
addresses = { tree = 0xa962e0, names = 0xa96170, data = 0xa95f98 }
calls = [0x632e4, 0x64330]
[[resource]]
version = 3
addresses = { tree = 0x7811a8, names = 0x7810f8, data = 0x780c48 }
calls = [0x63a88]
Usage: qrex [OPTIONS] <CONFIG>
Arguments:
<CONFIG> Path to the YAML or TOML configuration file
Options:
-e, --extract Extract resources
-s, --skip-dirs Skip creating separate directories for each resource
-m, --metadata Save resources' metadata
-d, --debug Enable debug messages
-h, --help Print help
-V, --version Print version
anyhow
)