Skip to content

Commit

Permalink
Merge pull request #27 from mbeddr/bugifx/broken-symlink-created-duri…
Browse files Browse the repository at this point in the history
…ng-bundling

mpssign.sh: added missing check for symlink creation
  • Loading branch information
sergej-koscejev authored Aug 3, 2018
2 parents 3ac8f05 + 95ca8aa commit 0d45b14
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/main/resources/de/itemis/mps/gradle/mpssign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ unzip -q -o "$RCP_FILE" -d "$OUTPUT_DIR"
BUILD_NAME=$(ls "$OUTPUT_DIR")
CONTENTS="$OUTPUT_DIR/$BUILD_NAME/Contents"

echo 'Creating symlinks from *.jnilib to *.dylib:'
for f in "$CONTENTS/bin"/*.jnilib; do
b="$(basename "$f" .jnilib)"
echo " $f -> $b.dylib"
ln -sf "$b.jnilib" "$(dirname "$f")/$b.dylib"
done
echo 'Done creating symlinks'
if ls "$CONTENTS/bin"/*.jnilib >& /dev/null; then
echo 'Creating symlinks from *.jnilib to *.dylib:'
for f in "$CONTENTS/bin"/*.jnilib; do
b="$(basename "$f" .jnilib)"
echo " $f -> $b.dylib"
ln -sf "$b.jnilib" "$(dirname "$f")/$b.dylib"
done
echo 'Done creating symlinks'
fi

if [[ -n "$JDK_FILE" ]]; then
if [[ ! -f "$JDK_FILE" ]]; then
Expand Down Expand Up @@ -104,4 +106,4 @@ fi
chmod a+x "$CONTENTS"/MacOS/*
chmod a+x "$CONTENTS"/bin/*.py
chmod a+x "$CONTENTS"/bin/fs*
chmod a+x "$CONTENTS"/bin/restarter
chmod a+x "$CONTENTS"/bin/restarter

0 comments on commit 0d45b14

Please sign in to comment.