Compare commits

...
3 Commits
Author SHA1 Message Date
meehl 7e7b4a75c8 chore: Release rusty-path-of-building version 0.2.2
Release / create-release (push) Canceled after 0s
2025-10-29 15:28:50 +01:00
meehl f5954446d1 Fix version file 2025-10-29 12:12:52 +01:00
meehl e6bdba1137 Add missing runtime dependency to README and adjust wording 2025-10-28 23:36:40 +01:00
5 changed files with 22 additions and 10 deletions

No files matched your search

+8 -1
View File
@@ -2,6 +2,12 @@
## [Unreleased] - ReleaseDate
## [0.2.2] - 2025-10-29
### Fixed
- Fix version file
## [0.2.1] - 2025-10-28
### Added
@@ -56,8 +62,9 @@
- First release
<!-- next-url -->
[Unreleased]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.1...HEAD
[Unreleased]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.2...HEAD
[0.2.2]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/meehl/rusty-path-of-building/compare/v0.1.2...v0.2.0
[0.1.2]: https://github.com/meehl/rusty-path-of-building/compare/v0.1.1...v0.1.2
Generated
+1 -1
View File
@@ -2519,7 +2519,7 @@ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
[[package]]
name = "rusty-path-of-building"
version = "0.2.1"
version = "0.2.2"
dependencies = [
"ahash",
"anyhow",
+1 -1
View File
@@ -4,7 +4,7 @@ authors = ["meehl"]
description = "Cross-platform runtime for Path of Building"
repository = "https://github.com/meehl/rusty-path-of-building"
license = "MIT"
version = "0.2.1"
version = "0.2.2"
edition = "2024"
publish = false
+2 -3
View File
@@ -2,7 +2,7 @@
Rusty Path of Building is a cross-platform runtime for [Path of Building](https://github.com/PathOfBuildingCommunity/PathOfBuilding) and [Path of Building 2](https://github.com/PathOfBuildingCommunity/PathOfBuilding-PoE2). Like the [official runtime](https://github.com/PathOfBuildingCommunity/PathOfBuilding-SimpleGraphic), it serves as a host environment for PoB by implementing the API used by the application's Lua logic, as well as rendering, window management, and input handling.
This project was primarily created to allow Path of Building to run natively on Linux. It is written in Rust (in case you couldn't already tell from the unimaginative name) and is designed to work across all platforms, though only Linux has been tested so far.
This project was primarily created to allow Path of Building to run natively on Linux. It is written in Rust (in case you couldn't already tell from the unimaginative name) and should run on all platforms, though only Linux has been tested so far.
## Usage
@@ -10,8 +10,6 @@ This project was primarily created to allow Path of Building to run natively on
rusty-path-of-building [poe1|poe2]
```
NOTE: The first run takes a bit longer because Path of Building's assets need to be downloaded.
## Installation
### Arch (AUR)
@@ -34,6 +32,7 @@ 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` - The source is included in this repo under `lua/libs/lzip` and requires [zlib](https://www.zlib.net/) to compile. Build it with `make LUA_IMPL=luajit`.
Please refer to the [Lua documentation](https://www.lua.org/manual/5.1/manual.html#pdf-package.cpath) to see how it locates libraries.
+10 -4
View File
@@ -12,7 +12,7 @@ use flate2::read::GzDecoder;
use regex::Regex;
use std::{
fs::{self},
io::{Write, copy},
io::copy,
path::{Path, PathBuf},
sync::mpsc::{self, Receiver, TryRecvError},
thread,
@@ -158,6 +158,14 @@ fn install<P: AsRef<Path>>(
// Skip installation if version file exists
let version_file_path = target_dir.as_ref().join("rpob.version");
if version_file_path.exists() {
let old_version = fs::read_to_string(&version_file_path).unwrap();
let current_version = env!("CARGO_PKG_VERSION");
if old_version != current_version {
log::info!("New version detected: {old_version} -> {current_version}");
fs::write(&version_file_path, current_version).unwrap();
}
return Ok(());
}
@@ -166,9 +174,7 @@ fn install<P: AsRef<Path>>(
set_branch_and_platform(&target_dir)?;
// write version file
let mut version_file = fs::File::create(version_file_path)?;
let pkg_version = env!("CARGO_PKG_VERSION");
version_file.write_all(pkg_version.as_bytes())?;
fs::write(&version_file_path, env!("CARGO_PKG_VERSION")).unwrap();
Ok(())
}