aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml22
1 files changed, 13 insertions, 9 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d877ffc..48b0819 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -102,7 +102,7 @@ jobs:
102 - name: Install build dependencies 102 - name: Install build dependencies
103 run: | 103 run: |
104 sudo apt-get update -qq 104 sudo apt-get update -qq
105 sudo apt-get install -y pandoc wget p7zip-full 105 sudo apt-get install -y pandoc wget curl html-xml-utils p7zip-full
106 - name: Copy scripts 106 - name: Copy scripts
107 run: | 107 run: |
108 mkdir dist/scripts 108 mkdir dist/scripts
@@ -114,16 +114,20 @@ jobs:
114 pandoc --standalone --to html viewer/ldgallery-viewer.7.md --output dist/ldgallery-viewer.7.html 114 pandoc --standalone --to html viewer/ldgallery-viewer.7.md --output dist/ldgallery-viewer.7.html
115 pandoc --standalone --to html changelog.md --output dist/changelog.html 115 pandoc --standalone --to html changelog.md --output dist/changelog.html
116 pandoc --standalone --to html license.md --output dist/license.html 116 pandoc --standalone --to html license.md --output dist/license.html
117 # TODO: automatically get the latest imagemagick version, since old archives disappear from the website
118 # See https://github.com/ldgallery/ldgallery/issues/281
119 - name: Bundle ImageMagick 117 - name: Bundle ImageMagick
120 run: | 118 run: |
121 wget -O magick.zip \ 119 MAGICK_ARCHIVES="https://download.imagemagick.org/ImageMagick/download/binaries/"
122 https://download.imagemagick.org/ImageMagick/download/binaries/ImageMagick-7.1.0-2-portable-Q16-x64.zip 120 MAGICK_LATEST=$( \
123 7z e magick.zip -odist/ magick.exe 121 curl --silent "$MAGICK_ARCHIVES" \
124 7z e magick.zip -so LICENSE.txt > dist/magick.license.txt 122 | hxclean \
125 7z e magick.zip -so NOTICE.txt > dist/magick.notice.txt 123 | hxselect 'a::attr(href)' -c -s '\n' \
126 7z e magick.zip -so README.txt > dist/magick.readme.txt 124 | grep -m1 '^ImageMagick-7.*portable-Q16-x64.zip$' )
125 mkdir -p ~/downloads
126 wget --timestamping --directory-prefix ~/downloads "$MAGICK_ARCHIVES/$MAGICK_LATEST"
127 7z e ~/downloads/"$MAGICK_LATEST" -odist/ magick.exe
128 7z e ~/downloads/"$MAGICK_LATEST" -so LICENSE.txt > dist/magick.license.txt
129 7z e ~/downloads/"$MAGICK_LATEST" -so NOTICE.txt > dist/magick.notice.txt
130 7z e ~/downloads/"$MAGICK_LATEST" -so README.txt > dist/magick.readme.txt
127 - uses: actions/upload-artifact@v2 131 - uses: actions/upload-artifact@v2
128 with: 132 with:
129 name: archive-win64 133 name: archive-win64