From bbd826ebaa2ca842e7811d6b512cda0cf4be5088 Mon Sep 17 00:00:00 2001 From: ca333 Date: Sat, 5 Aug 2017 14:56:36 +0200 Subject: [PATCH] darwin release deployment --- makeRelease.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 makeRelease.sh diff --git a/makeRelease.sh b/makeRelease.sh new file mode 100644 index 000000000..89f5c8a88 --- /dev/null +++ b/makeRelease.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +binaries=("iguana") + +for binary in "${binaries[@]}"; +do + # find the dylibs to copy for komodod + DYLIBS=`otool -L agents/$binary | grep "/usr/local" | awk -F' ' '{ print $1 }'` + echo "copying $DYLIBS to agents" + # copy the dylibs to the agents-dir + for dylib in $DYLIBS; do cp -rf $dylib agents/; 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` agents/$binary; done; + chmod +x agents/$binary +done