@@ -122,6 +122,16 @@ init:
122122 - ' echo "Deploy installer executable: %NEED_INSTALLER%"'
123123 - ' echo "Deploy \\bin zip archive: %NEED_BINZIP%"'
124124 - ' echo "Deploy full zipped installer: %NEED_AUTOZIP%"'
125+ # deal with 2020 summer package upgrade problem, when keys changed
126+ - curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
127+ - curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig
128+ - pacman --noconfirm -U msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz || bash -lc 'pacman --noconfirm -U --config <(echo) msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz'
129+ # Deal with December 2020 MSYS2 update: update core files to migrate to zstd compression
130+ - curl -O http://repo.msys2.org/msys/x86_64/zstd-1.4.7-1-x86_64.pkg.tar.xz # the latest in xz
131+ - curl -O http://repo.msys2.org/msys/x86_64/pacman-5.2.2-5-x86_64.pkg.tar.xz # the latest in xz
132+ - pacman --verbose --noconfirm --disable-download-timeout -U zstd-1.4.7-1-x86_64.pkg.tar.xz pacman-5.2.2-5-x86_64.pkg.tar.xz # Upgrade now (Dec 2020) needs zstd decompressor
133+ - ' del /q %APPVEYOR_BUILD_FOLDER%\*.*' # cleanup before checkout
134+ - cmd /c "pacman --verbose --noconfirm --disable-download-timeout -Syuu" # Full update of core files
125135
126136clone_script :
127137 - cmd : |
@@ -137,14 +147,6 @@ install:
137147 - ' qmake -v && qmake -query'
138148 - ' dir %PYTHON_PATH% %MINGW% %QTDIR% %QTIFW% %MSYS_DIR% /w'
139149 - curl --output tests_qrs.zip "https://dl.trikset.com/edu/.solutions20200701/test.zip"
140- # deal with 2020 summer package upgrade problem, when keys changed
141- - curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
142- - curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig
143- - pacman --noconfirm -U msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz || bash -lc 'pacman --noconfirm -U --config <(echo) msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz'
144- # update core files
145- - cmd /c "pacman --verbose --noconfirm -Syuu" # update core files
146- - cmd /c "taskkill /im gpg-agent.exe /f /t"
147- # proceed normally
148150 - cmd /c "pacman --verbose --noconfirm -S ccache rsync unzip sshpass mingw%ARCH%/mingw-w64-%PLATFORM%-libusb mingw%ARCH%/mingw-w64-%PLATFORM%-zlib mingw%ARCH%/mingw-w64-%PLATFORM%-pkg-config"
149151 - unzip tests_qrs.zip
150152 - ccache.exe -V || appveyor DownloadFile "http://alam.srb2.org/ccache.exe" -FileName "ccache.exe" && xcopy /Y /V /I ccache.exe %MINGW%\bin && ccache -V
0 commit comments