Skip to content

Commit 61c29ee

Browse files
committed
appveyor: checkout windows executables from windows-binaries branch instead of downloading
to prevent builds from failing because of deleted files
1 parent 183163e commit 61c29ee

File tree

1 file changed

+3
-56
lines changed

1 file changed

+3
-56
lines changed

.appveyor.yml

Lines changed: 3 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -4,63 +4,10 @@ install:
44
- set PATH=%cd%\tmp\bin;%PATH%
55
- ruby --version
66
- bundle package --all
7-
- echo curl.exe -fsSL --max-time 15 --retry 5 -o %%%%1 %%%%2 > tmp\bin\download.bat
87

9-
- ps: | # advpng
10-
if (-not (test-path tmp/bin/advpng.exe)) {
11-
download.bat tmp/advancecomp.zip https://github.com/amadvance/advancecomp/releases/download/v1.20/advancecomp-1.20-windows-x86.zip
12-
7z e tmp/advancecomp.zip -otmp/bin advpng.exe
13-
}
14-
15-
- ps: | # gifsicle
16-
if (-not (test-path tmp/bin/gifsicle.exe)) {
17-
download.bat tmp/gifsicle.zip https://eternallybored.org/misc/gifsicle/releases/gifsicle-1.88-win64.zip
18-
7z e tmp/gifsicle.zip -otmp/bin */gifsicle.exe
19-
}
20-
21-
- ps: | # jhead
22-
if (-not (test-path tmp/bin/jhead.exe)) {
23-
download.bat tmp/bin/jhead.exe http://www.sentex.net/~mwandel/jhead/jhead.exe
24-
}
25-
26-
- ps: | # jpeg-recompress
27-
if (-not (test-path tmp/bin/jpeg-recompress.exe)) {
28-
download.bat tmp/jpeg-archive.zip https://ci.appveyor.com/api/buildjobs/8t8vga27t8vn1js2/artifacts/jpeg-archive.zip
29-
7z e tmp/jpeg-archive.zip -otmp/bin jpeg-recompress.exe
30-
}
31-
32-
- ps: | # jpegoptim
33-
if (-not (test-path tmp/bin/jpegoptim.exe)) {
34-
download.bat tmp/jpegoptim.zip https://bitbucket.org/rorgoroth/jpegoptim-for-windows/downloads/jpegoptim-1.4.3-Win32.zip
35-
7z e tmp/jpegoptim.zip -otmp/bin */jpegoptim.exe
36-
}
37-
38-
- ps: | # jpegtran
39-
if (-not (test-path tmp/bin/jpegtran.exe)) {
40-
download.bat tmp/bin/jpegtran.exe http://jpegclub.org/jpegtran.exe
41-
}
42-
43-
- ps: | # optipng
44-
if (-not (test-path tmp/bin/optipng.exe)) {
45-
download.bat tmp/optipng.zip https://sourceforge.net/projects/optipng/files/OptiPNG/optipng-0.7.6/optipng-0.7.6-win32.zip/download
46-
7z e tmp/optipng.zip -otmp/bin */optipng.exe
47-
}
48-
49-
- ps: | # pngcrush
50-
if (-not (test-path tmp/bin/pngcrush.exe)) {
51-
download.bat tmp/bin/pngcrush.exe https://sourceforge.net/projects/pmt/files/pngcrush-executables/1.8.1/pngcrush_1_8.1_w32.exe/download
52-
}
53-
54-
- ps: | # pngout
55-
if (-not (test-path tmp/bin/pngout.exe)) {
56-
download.bat tmp/bin/pngout.exe http://advsys.net/ken/util/pngout.exe
57-
}
58-
59-
- ps: | # pngquant
60-
if (-not (test-path tmp/bin/pngquant.exe)) {
61-
download.bat tmp/pngquant.zip https://pngquant.org/pngquant-windows.zip
62-
7z e tmp/pngquant.zip -otmp/bin */pngquant.exe
63-
}
8+
- ps: git --work-tree=tmp\bin checkout origin/windows-binaries --
9+
advpng.exe gifsicle.exe jhead.exe jpeg-recompress.exe jpegoptim.exe
10+
jpegtran.exe optipng.exe pngcrush.exe pngout.exe pngquant.exe
6411

6512
- ps: | # svgo
6613
npm install -g svgo

0 commit comments

Comments
 (0)