Admin/lib/Tools/makedist_bundle
changeset 57679 d7e22be79eb2
parent 57443 577f029fde39
child 57682 648c5ef4876d
equal deleted inserted replaced
57678:2f46999395e2 57679:d7e22be79eb2
   259       echo "application for $PLATFORM_FAMILY"
   259       echo "application for $PLATFORM_FAMILY"
   260       (
   260       (
   261         cd "$TMP"
   261         cd "$TMP"
   262 
   262 
   263         APP_TEMPLATE="$ISABELLE_HOME/Admin/MacOS"
   263         APP_TEMPLATE="$ISABELLE_HOME/Admin/MacOS"
   264         APP="${ISABELLE_NAME}.app"
   264         APP="dmg/${ISABELLE_NAME}.app"
       
   265 
       
   266         mkdir -p "dmg/.background"
       
   267         cp "$APP_TEMPLATE/dmg/background.png" "dmg/.background/"
       
   268         cp "$APP_TEMPLATE/dmg/DS_Store" "dmg/.DS_Store"
       
   269         ln -s /Applications "dmg/."
   265 
   270 
   266         for NAME in Java MacOS PlugIns Resources
   271         for NAME in Java MacOS PlugIns Resources
   267         do
   272         do
   268           mkdir -p "$APP/Contents/$NAME"
   273           mkdir -p "$APP/Contents/$NAME"
   269         done
   274         done
   297 
   302 
   298         mv "$ISABELLE_NAME" "$APP/Contents/Resources/."
   303         mv "$ISABELLE_NAME" "$APP/Contents/Resources/."
   299         ln -sf "Contents/Resources/$ISABELLE_NAME" "$APP/Isabelle"
   304         ln -sf "Contents/Resources/$ISABELLE_NAME" "$APP/Isabelle"
   300 
   305 
   301         rm -f "${ARCHIVE_DIR}/${ISABELLE_NAME}.dmg"
   306         rm -f "${ARCHIVE_DIR}/${ISABELLE_NAME}.dmg"
   302         hdiutil create -srcfolder "$APP" "${ARCHIVE_DIR}/${ISABELLE_NAME}.dmg"
   307 
       
   308         cd dmg
       
   309         hdiutil create -srcfolder . -volname "$ISABELLE_NAME" "${ARCHIVE_DIR}/${ISABELLE_NAME}.dmg"
   303       )
   310       )
   304       ;;
   311       ;;
   305     windows)
   312     windows)
   306       (
   313       (
   307         cd "$TMP"
   314         cd "$TMP"