From 3412ed5138550446959e84ae0366af74414381be Mon Sep 17 00:00:00 2001 From: ca333 Date: Mon, 9 Oct 2017 11:55:53 +0200 Subject: [PATCH] osx deploy 333 --- makeRelease.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 makeRelease.sh diff --git a/makeRelease.sh b/makeRelease.sh new file mode 100755 index 000000000..5d68f0b03 --- /dev/null +++ b/makeRelease.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +binaries=("komodo-cli" "komodod") + +for binary in "${binaries[@]}"; +do + # find the dylibs to copy for komodod + DYLIBS=`otool -L src/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'` + echo "copying $DYLIBS to $src" + # copy the dylibs to the srcdir + for dylib in $DYLIBS; do cp -rf $dylib src/; done + + # modify komodod to point to dylibs + echo "modifying $binary to use local libraries" + for dylib in $DYLIBS; do install_name_tool -change $dylib @executable_path/`basename $dylib` src/$binary; done; + chmod +x src/$binary +done