94 lines
5.8 KiB
Markdown
94 lines
5.8 KiB
Markdown
# Rusty Path of Building
|
|
|
|
Rusty Path of Building is a cross-platform runtime environment for [Path of Building](https://github.com/PathOfBuildingCommunity/PathOfBuilding) and [Path of Building 2](https://github.com/PathOfBuildingCommunity/PathOfBuilding-PoE2). It serves as a replacement for [SimpleGraphic](https://github.com/PathOfBuildingCommunity/PathOfBuilding-SimpleGraphic), the official runtime environment for PoB.
|
|
|
|
The main focus of this project is native Linux support for Path of Building. It also runs on Windows and macOS, though most of my testing and development is focused on Linux, with support for other platforms largely based on user reports. Contributions that improve support or fix bugs on other platforms are welcome.
|
|
|
|
## Usage
|
|
|
|
Open **Rusty Path of Building** from the applications menu, double-click the executable, or run it without arguments. Choose **Path of Exile 1** or **Path of Exile 2**. The first launch of each game downloads its Path of Building files into your user data directory.
|
|
|
|
To open a specific game directly or pass a build URL, use the command line.
|
|
|
|
```bash
|
|
rusty-path-of-building
|
|
rusty-path-of-building poe1
|
|
rusty-path-of-building poe2 'pob://pobbin/<id>'
|
|
```
|
|
|
|
## Installation
|
|
|
|
Download the x64 package for your system from the [Gitea releases page](https://git.faumaray.com/faumaray/rusty-path-of-building/releases).
|
|
|
|
| System | Installer | Archive |
|
|
| --- | --- | --- |
|
|
| Windows | Run the setup EXE, then open **Rusty Path of Building** from Start. | Extract the ZIP and run `rusty-path-of-building.exe`. |
|
|
| Linux | On a compatible Debian or Ubuntu system, run `sudo apt install ./rusty-path-of-building_<version>_amd64.deb`, substituting the downloaded filename. | Extract the tar.gz and run the included `rusty-path-of-building` executable. |
|
|
|
|
Both games use the existing Vulkan renderer on Windows and Linux. You need a compatible graphics driver. Game downloads and saved builds live in separate per-game directories under your account.
|
|
|
|
The Linux release is built on Ubuntu 24.04. The tarball requires glibc 2.39 or newer, libcurl, Vulkan, and the X11 or Wayland client libraries. Installing the Debian package through APT resolves its library dependencies.
|
|
|
|
[](https://repology.org/project/rusty-path-of-building/versions)
|
|
|
|
### Flathub
|
|
|
|
[](https://flathub.org/en/apps/community.pathofbuilding.PathOfBuilding)
|
|
|
|
### Homebrew
|
|
|
|
[Homebrew Tap](https://github.com/meehl/homebrew-rusty-path-of-building) (NOTE: This has been tested on macOS only)
|
|
|
|
### Building from source
|
|
|
|
```bash
|
|
cargo build --release
|
|
```
|
|
|
|
#### Build Dependencies
|
|
|
|
- `LuaJIT` - Required by the `mlua` crate. Alternatively, enable the `vendored-lua` feature to build LuaJIT from source instead of using a system installation.
|
|
- `libcurl` - Required when the `bundled-lua-modules` feature (enabled by default) is used.
|
|
|
|
### Creating release packages
|
|
|
|
The packager reads the version from `Cargo.toml` and writes to `target/dist/`. It takes a built executable as input. Python 3.11 or newer is required on both platforms.
|
|
|
|
**Windows x64.** Run these commands in an x64 Visual Studio developer PowerShell with Rust, NASM, CMake, Perl and NSIS 3 installed.
|
|
|
|
```powershell
|
|
$env:RUSTFLAGS = '-C target-feature=+crt-static'
|
|
$env:VCPKGRS_DISABLE = '1'
|
|
cargo build --locked --release --target x86_64-pc-windows-msvc --features vendored-lua,curl/static-curl
|
|
python packaging/package.py windows target/x86_64-pc-windows-msvc/release/rusty-path-of-building.exe
|
|
```
|
|
|
|
The setup EXE installs for the current user and adds a Start Menu shortcut. Uninstalling preserves the per-game user data.
|
|
|
|
**Linux x64.** On Ubuntu 24.04, install the C build tools, `pkg-config`, `libcurl4-openssl-dev`, and `dpkg-dev`. Build the executable and package it with the following commands.
|
|
|
|
```sh
|
|
cargo build --locked --release --target x86_64-unknown-linux-gnu --features vendored-lua
|
|
python3 packaging/package.py linux target/x86_64-unknown-linux-gnu/release/rusty-path-of-building
|
|
```
|
|
|
|
**Gitea releases.** A new `vX.Y.Z` tag matching the version in `Cargo.toml` triggers the release workflow. It builds on the `windows-x64` and `ubuntu-latest` runners, gathers the four packages and verifies their SHA-256 hashes before publishing. Use a native Windows x64 runner with the build tools above and an Ubuntu 24.04 x64 runner with APT access. Both runners need Git, a Node runtime for the checkout and artifact actions, and Python 3.11+. The repository's Actions job token needs read access to code and write access to releases.
|
|
|
|
## Runtime Dependencies
|
|
|
|
Path of Building's Lua code requires the following C libraries:
|
|
|
|
- [Lua-cURLv3](https://github.com/Lua-cURL/Lua-cURLv3)
|
|
- [luautf8](https://github.com/starwing/luautf8)
|
|
- [luasocket](https://github.com/lunarmodules/luasocket)
|
|
- [lzip](https://github.com/PathOfBuildingCommunity/PathOfBuilding-SimpleGraphic/tree/master/libs/LZip)
|
|
|
|
By default, the `bundled-lua-modules` feature is enabled and registers Rust implementations of these libraries with the Lua runtime. The original C libraries don't need to be installed if this feature is enabled.
|
|
|
|
To use the original C libraries instead, disable the feature and make sure Lua can locate them. Please refer to the [Lua documentation](https://www.lua.org/manual/5.1/manual.html#pdf-package.cpath) for details on that.
|
|
|
|
## Known Issues
|
|
|
|
- If automatic updates fail, navigate to `~/.local/share/RustyPathOfBuilding{1,2}/` and delete the `rpob.version` file and the `Update` directory. This will force a complete re-download of PoB's latest assets and Lua code on the next startup.
|
|
- Automatic updates for weekly beta builds are supported, but compatibility is not checked. If you run into problems with a beta version, please don't open an issue for it.
|