forked from prusa3d/PrusaSlicer
-
-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,21 +77,31 @@ done | |
cp -f bin/@SLIC3R_APP_CMD@ pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/MacOS/@SLIC3R_APP_KEY@ | ||
chmod u+x pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/MacOS/@SLIC3R_APP_KEY@ | ||
|
||
echo "otool -L exefile:" | ||
otool -L pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/MacOS/@SLIC3R_APP_KEY@ | ||
echo "END otool" | ||
|
||
#copy libzstd | ||
ZSDT_FILE= | ||
echo "libzstd:\n" | ||
ls -al /opt/homebrew/opt/zstd/lib/libzstd*.dylib | ||
ls -al /usr/local/opt/zstd/lib/libzstd*.dylib | ||
ZSDT_FILE=$(ls -v /usr/local/opt/zstd/lib/libzstd.1.*.dylib | tail -n 1) | ||
ZSDT_PATH=$(ls -v /usr/local/opt/zstd/lib/libzstd.1.*.dylib | tail -n 1) | ||
if [ -z "${ZSDT_FILE}" ] | ||
then | ||
# try with homebrew | ||
ZSDT_FILE=$(ls -v /opt/homebrew/opt/zstd/lib/libzstd.1.*.dylib | tail -n 1) | ||
ZSDT_PATH=$(ls -v /opt/homebrew/opt/zstd/lib/libzstd.1.*.dylib | tail -n 1) | ||
fi | ||
echo "zstd var:'"$ZSDT_FILE"' need to be renamed libzstd.1.dylib in Contents/Frameworks"; | ||
cp $ZSDT_FILE pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/Frameworks/libzstd.1.dylib | ||
ZSTD_FILE=$(basename ${ZSDT_PATH}) | ||
echo "zstd var:'"$ZSDT_PATH"' : "$ZSTD_FILE; | ||
cp $ZSDT_PATH pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/Frameworks/$ZSTD_FILE | ||
ls -al pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/Frameworks/ | ||
install_name_tool -change $ZSDT_PATH @executable_path/../Frameworks/$ZSTD_FILE pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/MacOS/@SLIC3R_APP_KEY@ | ||
|
||
echo "otool -L exefile now:" | ||
otool -L pack/@SLIC3R_APP_KEY@/@[email protected]/Contents/MacOS/@SLIC3R_APP_KEY@ | ||
echo "END otool" | ||
|
||
# } &> $ROOT/Build.log # Capture all command output | ||
echo -e "\n ... done\n" | ||
|
||
|