Skip to content

Commit

Permalink
feat(weidu): Auto detect weidu bin
Browse files Browse the repository at this point in the history
Signed-off-by: dark0dave <[email protected]>
  • Loading branch information
dark0dave committed Jan 11, 2025
1 parent 5d19a99 commit 6ff44a8
Show file tree
Hide file tree
Showing 6 changed files with 233 additions and 23 deletions.
188 changes: 171 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mod_installer"
version = "9.0.2"
version = "9.1.0"
edition = "2021"
authors = [ "dark0dave" ]
documentation = "https://raw.githubusercontent.com/dark0dave/mod_installer/main/README.md"
Expand All @@ -20,7 +20,7 @@ keywords = [

[dependencies]
confy = "^0.6"
clap = { version = "^4.5.9", features = ["derive", "env"] }
clap = { version = "^4.5.9", features = ["derive", "env", "string"] }
env_logger = "^0.11.1"
fs_extra = "^1.3.0"
log = "^0.4.22"
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,22 @@ Let's break down what each part means:

* --game-directory <GAME_DIRECTORY>: This is where you tell the program where your game is installed.

* --weidu-binary <WEIDU_BINARY>: This is where you tell the program where to find the WeiDU program (WeiDU is a tool used to install mods).
* --weidu-binary <WEIDU_BINARY>: This is where you tell the program where to find the WeiDU program (WeiDU is a tool used to install mods). This binary can be auto detected (alpha feature).

* --mod-directories <MOD_DIRECTORIES>: This is where you tell the program where to find the mod files.

### Example Run

With binary or installed from cargo
```sh
mod_installer(.exe) --log-file dark0dave_weidu.log --game-directory ~/.steam/steam/steamapps/common/Baldur\'s\ Gate\ Enhanced\ Edition/ --mod-directories ~/Downloads/my_mods/
```

With cargo:
```sh
cargo run -- --log-file dark0dave_weidu.log --game-directory ~/.steam/steam/steamapps/common/Baldur\'s\ Gate\ Enhanced\ Edition/ --mod-directories ~/Downloads/my_mods/
```

## FAQ

The Infinity Engine Mod Installer looks at a "weidu.log" file that you provide. This file contains information about mods you want to install. The tool then goes through this list and installs each mod automatically. This saves you time and effort, as you don't have to manually install each mod one by one.
Expand Down
Empty file modified fixtures/weidu
100644 → 100755
Empty file.
Loading

0 comments on commit 6ff44a8

Please sign in to comment.