mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
🔗 Update dylib links on install
This commit is contained in:
parent
715bde70b3
commit
457e2ab5ee
2 changed files with 18 additions and 2 deletions
|
@ -757,7 +757,7 @@
|
|||
"$(PROJECT_DIR)/Carthage/Build/Mac",
|
||||
);
|
||||
INSTALL_PATH = /bin;
|
||||
LD_RUNPATH_SEARCH_PATHS = "@executable_path/. @executable_path/MasKit.framework/Versions/Current/Frameworks /Library/Frameworks /Library/Frameworks/MasKit.framework/Versions/Current/Frameworks $(inherited)";
|
||||
LD_RUNPATH_SEARCH_PATHS = "@executable_path/. @executable_path/MasKit.framework/Versions/Current/Frameworks /usr/local/Frameworks /usr/local/Frameworks/MasKit.framework/Versions/Current/Frameworks $(inherited)";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.mphys.mas-cli";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
|
||||
|
@ -778,7 +778,7 @@
|
|||
"$(PROJECT_DIR)/Carthage/Build/Mac",
|
||||
);
|
||||
INSTALL_PATH = /bin;
|
||||
LD_RUNPATH_SEARCH_PATHS = "@executable_path/. @executable_path/MasKit.framework/Versions/Current/Frameworks /Library/Frameworks /Library/Frameworks/MasKit.framework/Versions/Current/Frameworks $(inherited)";
|
||||
LD_RUNPATH_SEARCH_PATHS = "@executable_path/. @executable_path/MasKit.framework/Versions/Current/Frameworks /usr/local/Frameworks /usr/local/Frameworks/MasKit.framework/Versions/Current/Frameworks $(inherited)";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = "com.mphys.mas-cli";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
PREFIX=/usr/local
|
||||
INSTALL_TEMPORARY_FOLDER=/tmp/mas-cli.dst
|
||||
FRAMEWORK_NAME=MasKit.framework
|
||||
BINARY_NAME=mas
|
||||
|
||||
# Override default prefix path with optional 1st arg
|
||||
if test -n "$1"; then
|
||||
|
@ -19,3 +21,17 @@ ditto -v \
|
|||
ditto -v \
|
||||
"$INSTALL_TEMPORARY_FOLDER/bin" \
|
||||
"$PREFIX/bin"
|
||||
|
||||
echo "==> 🔗 Update dylib load paths"
|
||||
|
||||
install_name_tool \
|
||||
-rpath \
|
||||
"/usr/local/Frameworks" \
|
||||
"@executable_path/../Frameworks" \
|
||||
"$PREFIX/bin/$BINARY_NAME"
|
||||
|
||||
install_name_tool \
|
||||
-rpath \
|
||||
"/usr/local/Frameworks/$FRAMEWORK_NAME/Versions/Current/Frameworks" \
|
||||
"@executable_path/../Frameworks/$FRAMEWORK_NAME/Versions/Current/Frameworks" \
|
||||
"$PREFIX/bin/$BINARY_NAME"
|
||||
|
|
Loading…
Reference in a new issue