2.6 KiB
2.6 KiB
Contributing to Rusty Path Of Building
Reporting bugs
- Ensure the bug was not already reported by searching through existing issues.
- If the bug can also be reproduced with the official runtime (e.g. by running through wine), please open an issue in the PoB1 or PoB2 repo instead. If you're unsure, feel free to just open it here.
- If possible, use the bug report template to create the issue and provide as much information as possible.
Contributing code
- Get familiar with the code base before you start. I'll try to add more documentation providing a high-level overview of the architecture in the future. Until then, feel free to reach out through Discussions if you have any questions.
- If you intend to work on the API functions, also check out the SimpleGraphic code base. A great place to ask questions about it is the PoB dev discord server. Here is more info on how to join.
- Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
macOS Development Setup
1. Install Lua runtime dependencies
The application requires several Lua C libraries at runtime. Install them using LuaRocks with the LuaJIT backend:
brew install luajit luarocks
luarocks --lua-version 5.1 install luasocket
luarocks --lua-version 5.1 install luautf8
luarocks --lua-version 5.1 install lua-curl
Build and install lzip from the bundled source (requires zlib, which is pre-installed on macOS):
cd lua/libs/lzip && make LUA_IMPL=luajit install
2. Configure LUA_CPATH
Add the following to your shell profile (~/.zshrc or ~/.bash_profile) so the runtime can locate the installed libraries:
eval $(luarocks --lua-version 5.1 path)
Then reload your shell or run source ~/.bash_profile.
3. Startup
cargo run <poe1|poe2>
Path of Building files are automatically downloaded to the following directories on first startup:
- poe1:
~/Library/Application Support/RustyPathOfBuilding1 - poe2:
~/Library/Application Support/RustyPathOfBuilding2
Troubleshooting
Build fails with library 'luajit-5.1' not found
This usually means the build cache points to an old LuaJIT version after a Homebrew upgrade. Run:
cargo clean && cargo run <poe1|poe2>