From ef00ba934f7af2ac8adc95f98eb610b2e2ab3a60 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 30 Oct 2012 09:01:30 -0700 Subject: [PATCH] Copy libgit2 dylib and update using install_name_tool --- atom.gyp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/atom.gyp b/atom.gyp index cd40277df..02c8e7529 100644 --- a/atom.gyp +++ b/atom.gyp @@ -140,6 +140,12 @@ 'native/frameworks/CocoaOniguruma.framework', ], }, + { + 'destination': '<(PRODUCT_DIR)/Atom.app/Contents/Frameworks/libgit2.framework/Libraries', + 'files': [ + 'git2/frameworks/libgit2.0.17.0.dylib', + ], + }, ], 'postbuilds': [ { @@ -320,7 +326,7 @@ # (DYLIB_INSTALL_NAME_BASE) relative to the main executable # (chrome). A different relative path needs to be used in # atom_helper_app. - 'postbuild_name': 'Fix Framework Link', + 'postbuild_name': 'Fix CEF Framework Link', 'action': [ 'install_name_tool', '-change', @@ -329,6 +335,16 @@ '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' ], }, + { + 'postbuild_name': 'Fix libgit2 Framework Link', + 'action': [ + 'install_name_tool', + '-change', + '@executable_path/libgit2.0.17.0.dylib', + '@executable_path/../../../../Frameworks/libgit2.framework/Libraries/libgit2.0.17.0.dylib', + '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}' + ], + }, { 'postbuild_name': 'Copy and Compile Static Files', 'action': [