From 4d6df4b1947f3b4b01120b0d31d5b5298f43a0dc Mon Sep 17 00:00:00 2001 From: Anthony Avina Date: Mon, 27 Jun 2022 12:41:48 -0500 Subject: [PATCH] Updated the Image Magick URL (#1) Endpoint to download imagemagick release wasn't working anymore. It's been updated to use what's available now. Extension also needed to be updated. --- bin/compile | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/bin/compile b/bin/compile index faf98df..8112dfc 100644 --- a/bin/compile +++ b/bin/compile @@ -13,14 +13,14 @@ mkdir -p $VENDOR_DIR INSTALL_DIR="$VENDOR_DIR/imagemagick" mkdir -p $INSTALL_DIR IMAGE_MAGICK_VERSION="${IMAGE_MAGICK_VERSION:-6.9.5-10}" -CACHE_FILE="$CACHE_DIR/imagemagick-$IMAGE_MAGICK_VERSION.tar.gz" +CACHE_FILE="$CACHE_DIR/imagemagick-$IMAGE_MAGICK_VERSION.tar.xz" if [ ! -f $CACHE_FILE ]; then # install imagemagick IMAGE_MAGICK_FILE="ImageMagick-$IMAGE_MAGICK_VERSION.tar.xz" IMAGE_MAGICK_DIR="ImageMagick-$IMAGE_MAGICK_VERSION" # SSL cert used on imagemagick not recognized by heroku. - IMAGE_MAGICK_URL="http://www.imagemagick.org/download/releases/$IMAGE_MAGICK_FILE" + IMAGE_MAGICK_URL="https://www.imagemagick.org/archive/releases/$IMAGE_MAGICK_FILE" echo "-----> Downloading ImageMagick from $IMAGE_MAGICK_URL" wget $IMAGE_MAGICK_URL -P $BUILD_DIR | indent @@ -75,17 +75,3 @@ echo "export PATH=$RUNTIME_INSTALL_PATH/bin:\$PATH" >> $PROFILE_PATH echo "export LD_LIBRARY_PATH=$RUNTIME_INSTALL_PATH/lib:\$LD_LIBRARY_PATH" >> $PROFILE_PATH echo "export MAGICK_CONFIGURE_PATH=$RUNTIME_INSTALL_PATH" >> $PROFILE_PATH -# DOWNLOAD_URL="http://www.imagemagick.org/download/ImageMagick-6.9.2-0.tar.gz" - -# echo "DOWNLOAD_URL = " $DOWNLOAD_URL | indent - -# cd $BUILD_DIR -# mkdir -p $VENDOR_DIR -# cd $VENDOR_DIR -# curl -L --silent $DOWNLOAD_URL | tar xz - -# echo "exporting PATH and LIBRARY_PATH" | indent -# PROFILE_PATH="$BUILD_DIR/.profile.d/imagemagick.sh" -# mkdir -p $(dirname $PROFILE_PATH) -# echo 'export PATH="$PATH:$HOME/vendor/ImageMagick-6.9.2/bin"' >> $PROFILE_PATH -# echo 'export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/vendor/ImageMagick-6.9.2/lib"' >> $PROFILE_PATH