Skip to content

Commit ba877ae

Browse files
committed
Fix macOS build command path in README
The documented launcher build command wrote to runtime/pob-poe2, a directory that doesn't exist in this repo and doesn't match .gitignore's /macos-launcher/pob-poe2 entry or where the artifact is actually built locally. Also add the -Wl,-rpath,@loader_path flag the real shipped binary was built with.
1 parent e212cd9 commit ba877ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release \
7979
-DVCPKG_TARGET_TRIPLET=arm64-osx-dynamic -DVCPKG_HOST_TRIPLET=arm64-osx-dynamic \
8080
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake # host triplet must match target
8181
cmake --build build
82-
clang -O2 -o runtime/pob-poe2 macos-launcher/pob_launch.c
82+
clang -O2 -o macos-launcher/pob-poe2 -Wl,-rpath,@loader_path macos-launcher/pob_launch.c
8383

8484
# Stage the outputs into the PathOfBuilding-PoE2 checkout's runtime/ directory:
85-
cp build/libSimpleGraphic.dylib runtime/pob-poe2 <path-to-PathOfBuilding-PoE2>/runtime/
85+
cp build/libSimpleGraphic.dylib macos-launcher/pob-poe2 <path-to-PathOfBuilding-PoE2>/runtime/
8686
# Native Lua modules go in renamed to .so:
8787
# liblcurl.dylib -> lcurl.so
8888
# liblzip.dylib -> lzip.so

0 commit comments

Comments
 (0)