Skip to content

Commit

Permalink
fix: macOS prebuilt binaries (#259)
Browse files Browse the repository at this point in the history
* fix: macOS prebuilt binaries
* fix: add snap assert file to releases
  • Loading branch information
giladgd authored Jun 30, 2024
1 parent a7a2517 commit 81e0575
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ jobs:
run: |
shopt -s nullglob
for file in ./electron-app-example/release/*.{dmg,zip,exe,appx,AppImage,snap,deb,tar.gz}; do
for file in ./electron-app-example/release/*.{dmg,zip,exe,appx,AppImage,snap,assert,deb,tar.gz}; do
echo "Adding $file to release $RELEASE_TAG"
gh release upload "v$RELEASE_TAG" "$file"
done
Expand Down
10 changes: 9 additions & 1 deletion llama/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,15 @@ endif()

file(GLOB SOURCE_FILES "addon.cpp" ${GPU_INFO_SOURCES})

set(CMAKE_BUILD_RPATH_USE_ORIGIN ON)
if(APPLE)
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
set(CMAKE_BUILD_RPATH "@loader_path")
set(CMAKE_INSTALL_RPATH "@loader_path")
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
else()
set(CMAKE_BUILD_RPATH_USE_ORIGIN ON)
endif()

add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES} ${CMAKE_JS_SRC} ${GPU_INFO_HEADERS})
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "" SUFFIX ".node")
Expand Down

0 comments on commit 81e0575

Please sign in to comment.