From 35fb4b97d548c2a6306e8b2e29435ccd7a9275fb Mon Sep 17 00:00:00 2001 From: Carlos Precioso <511681+cprecioso@users.noreply.github.com> Date: Fri, 3 Dec 2021 16:12:33 +0100 Subject: [PATCH] Fix rpath in built executable --- scripts/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build.sh b/scripts/build.sh index e092022..be8d2b3 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -6,4 +6,5 @@ swift build -c release --arch arm64 --arch x86_64 rm -rf .build/release mkdir -p .build/release cp -R Resources/* .build/apple/Products/Release/alfred-soulvercore .build/apple/Products/Release/*.framework .build/release +install_name_tool -rpath '@executable_path/../lib' '@executable_path' .build/release/alfred-soulvercore cd .build/release && zip -r ../SoulverCore.alfredworkflow ./*