diff options
Diffstat (limited to 'packaging')
| -rwxr-xr-x | packaging/macos/220-inkscape-package.sh | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/packaging/macos/220-inkscape-package.sh b/packaging/macos/220-inkscape-package.sh index 83a01d9af..1f60e7352 100755 --- a/packaging/macos/220-inkscape-package.sh +++ b/packaging/macos/220-inkscape-package.sh @@ -28,9 +28,31 @@ mkdir -p $ARTIFACT_DIR cp $SRC_DIR/gtk-mac-bundler*/examples/gtk3-launcher.sh $BUILD_DIR cp $SELF_DIR/inkscape.bundle $BUILD_DIR cp $SELF_DIR/inkscape.plist $BUILD_DIR - cd $BUILD_DIR - jhbuild run gtk-mac-bundler inkscape.bundle + + # FIXME: I don't like this at all! This is a temporary workaround, retrying + # the bundling if it fails up to 5 times. + + set +e + RESTART=0 + while [ $RESTART -lt 6 ]; do + jhbuild run gtk-mac-bundler inkscape.bundle + RC=$? + if [ $RC -eq 0 ]; then + break + else + ((RESTART++)) + SECONDS=$((RESTART*10)) + echo "Bundling failed. Restarting in $SECONDS seconds." + sleep $SECONDS + fi + done + set -e + + if [ $RC -ne 0 ]; then + echo "--- FATAL --- Bundling failed." + exit $RC + fi ) # patch library locations |
