Skip to content

Commit

Permalink
Merge 1fe7ba5 into 4d70eab
Browse files Browse the repository at this point in the history
  • Loading branch information
tburrows13 committed May 12, 2020
2 parents 4d70eab + 1fe7ba5 commit af0ec96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ install:

# Inspect contents and set env vars
- dir "%IMAGE_MAGICK_INSTALL_DIR%"
- set IMAGEMAGICK_BINARY=%IMAGE_MAGICK_INSTALL_DIR%//convert.exe
- set IMAGEMAGICK_BINARY=%IMAGE_MAGICK_INSTALL_DIR%//magick.exe
- echo %IMAGEMAGICK_BINARY%
- set FMPEG_BINARY="%IMAGE_MAGICK_INSTALL_DIR%//ffmpeg.exe"
- echo %FMPEG_BINARY%
Expand Down
8 changes: 4 additions & 4 deletions find_latest_imagemagick_version.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import re
from urllib import request

url = "https://legacy.imagemagick.org/script/index.php"
url = "https://imagemagick.org/script/index.php"

"""This little script parses url above to extract latest image magick version
(major version 6.9), to feed it into CI system. Not the best way for reproducible
(major version 7.0), to feed it into CI system. Not the best way for reproducible
builds, but it's preferred for now over storing imagemagick installer into the
git repository
"""

response = request.urlopen(url)
html = response.read().decode(r"utf-8")
r = re.compile(r"6\.9\.[0-9]+-[0-9]+")
r = re.compile(r"7\.0\.[0-9]+-[0-9]+")
version = r.findall(html)
if len(version) == 0:
raise ValueError(
"Could not find latest legacy 6.9.X-Y ImageMagick version from {}".format(url)
"Could not find latest 7.0.X-Y ImageMagick version from {}".format(url)
)
version = version[0]
# Append Q16 build
Expand Down

0 comments on commit af0ec96

Please sign in to comment.