Skip to content

Commit

Permalink
hardcode supported version
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardfritz committed Apr 14, 2021
1 parent 256a34a commit d79f95a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 99 deletions.
2 changes: 1 addition & 1 deletion Makefile.darwin
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ frontend:
meson -Dbuildtype=release --prefix=${DIR}/PathOfBuilding.app --bindir=Contents/MacOS build

load_pob:
git clone --depth 1 https://github.com/PathOfBuildingCommunity/PathOfBuilding.git; \
git clone --depth 1 https://github.com/PathOfBuildingCommunity/PathOfBuilding.git --branch v1.4.170.26 --single-branch; \
pushd PathOfBuilding; \
rm -rf .git; \
popd
Expand Down
2 changes: 1 addition & 1 deletion Makefile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ frontend:
meson -Dbuildtype=release build

load_pob:
git clone --depth 1 https://github.com/PathOfBuildingCommunity/PathOfBuilding.git; \
git clone --depth 1 https://github.com/PathOfBuildingCommunity/PathOfBuilding.git --branch v1.4.170.26 --single-branch; \
pushd PathOfBuilding; \
rm -rf .git; \
popd
Expand Down
103 changes: 6 additions & 97 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,100 +1,9 @@
PoBFrontend
===========
# pobfrontend

A cross-platform [Path of Building](https://github.com/Openarl/PathOfBuilding) driver.

Building
--------

### Dependencies:

- Qt5
- luajit
- zlib
- opengl
- lua-curl (see below)
- Bitstream-Vera and Liberation TTF fonts. Will work without these but most likely look terrible.

### Build dependencies:

- meson
- pkg-config
- ninja (optional, can tell meson to generate makefiles if you prefer)

### Build Lua-Curl:

You need to build [Lua-Curl](https://github.com/Lua-cURL/Lua-cURLv3) for luajit.

Edit the Lua-Curl Makefile:

```diff
@@ -7,7 +7,7 @@ DESTDIR ?= /
PKG_CONFIG ?= pkg-config
INSTALL ?= install
RM ?= rm
-LUA_IMPL ?= lua
+LUA_IMPL ?= luajit
CC ?= $(MAC_ENV) gcc

LUA_VERSION = $(shell $(PKG_CONFIG) --print-provides --silence-errors $(LUA_IMPL))
```

Run make. You should get `lcurl.so`.

### Get the PoBFrontend sources:

`git clone https://github.com/philroberts/pobfrontend.git`

### Build:

```bash
meson -Dbuildtype=release pobfrontend build
cd build
ninja
```

Run the thing:

```bash
cd /path/to/PathOfBuilding # <- a pathofbuilding git clone
for f in tree*.zip; do unzip $f;done # <- use the provided tree data because reasons
unzip runtime-win32.zip lua/xml.lua lua/base64.lua lua/sha1.lua
mv lua/*.lua .
rmdir lua
cp /path/to/lcurl.so . # our lcurl.so from earlier
/path/to/build/pobfrontend
```

You can adjust the font size up or down with a command line argument:

```bash
pobfrontend -2
```

### Notes:

I have the following edit in my PathOfBuilding clone, stops it from saving builds even when I tell it not to:

```diff
--- a/Modules/Build.lua
+++ b/Modules/Build.lua
@@ -599,7 +599,7 @@ function buildMode:CanExit(mode)
end

function buildMode:Shutdown()
- if launch.devMode and self.targetVersion and not self.abortSave then
+ if false then --launch.devMode and self.targetVersion and not self.abortSave then
if self.dbFileName then
self:SaveDBFile()
elseif self.unsaved then
```

###### OS X

On mac you need to invoke meson with some extra flags, per the luajit documentation:

```bash
LDFLAGS="-pagezero_size 10000 -image_base 100000000" meson pobfrontend build
```
Path of Building Community Fork for Linux :penguin: and macOS :apple:.

Latest supported version: **v1.4.170.26**

Releases:
* [Linux](https://github.com/bernhardfritz/pobfrontend/releases/download/PathOfBuilding/PathOfBuilding.linux.tar.xz)
* [macOS](https://github.com/bernhardfritz/pobfrontend/releases/download/PathOfBuilding/PathOfBuilding.darwin.tar.xz)

0 comments on commit d79f95a

Please sign in to comment.