Skip to content

Commit

Permalink
Remove '@executable_path/../lib' @rpath from built binary
Browse files Browse the repository at this point in the history
  • Loading branch information
liamnichols committed Mar 23, 2022
1 parent f8861a1 commit 21df065
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ task :build, [:build_fat] do |t, args|
sh %Q(cp SourceryJS/Resources/ejs.js #{CLI_DIR}bin)
sh %Q(mv #{BUILD_DIR}sourcery.xcarchive/Products/usr/local/bin/sourcery #{CLI_DIR}bin/)
sh %Q(rm -fr #{BUILD_DIR})

# Remove the unnecessary rpath added by xcodebuild
sh %Q(install_name_tool -delete_rpath "@executable_path/../lib" "#{CLI_DIR}bin/sourcery")
end

task :fat_build do
Expand Down

0 comments on commit 21df065

Please sign in to comment.