James E. King, III | 07f5997 | 2017-03-10 06:18:33 -0500 | [diff] [blame] | 1 | :: |
| 2 | :: Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | :: you may not use this file except in compliance with the License. |
| 4 | :: You may obtain a copy of the License at |
| 5 | :: |
| 6 | :: http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | :: |
| 8 | :: Unless required by applicable law or agreed to in writing, software |
| 9 | :: distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | :: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | :: See the License for the specific language governing permissions and |
| 12 | :: limitations under the License. |
| 13 | :: |
| 14 | |
| 15 | :: |
James E. King III | 860a5f1 | 2018-03-06 14:23:23 -0500 | [diff] [blame] | 16 | :: Appveyor install script for MINGW on MSYS2 |
| 17 | :: Installs third party packages we need for a cmake build |
James E. King, III | 07f5997 | 2017-03-10 06:18:33 -0500 | [diff] [blame] | 18 | :: |
| 19 | |
James E. King III | 860a5f1 | 2018-03-06 14:23:23 -0500 | [diff] [blame] | 20 | @ECHO OFF |
| 21 | SETLOCAL EnableDelayedExpansion |
| 22 | |
Mario Emmenlauer | 166786e | 2021-08-04 10:38:56 +0200 | [diff] [blame] | 23 | CD build\appveyor || EXIT /B |
| 24 | CALL win_banner_install.bat || EXIT /B |
| 25 | CALL win_setenv.bat || EXIT /B |
| 26 | CALL win_showenv.bat || EXIT /B |
James E. King III | 860a5f1 | 2018-03-06 14:23:23 -0500 | [diff] [blame] | 27 | |
James E. King III | 860a5f1 | 2018-03-06 14:23:23 -0500 | [diff] [blame] | 28 | SET PACKAGES=^ |
Mario Emmenlauer | 166786e | 2021-08-04 10:38:56 +0200 | [diff] [blame] | 29 | base-devel ^ |
| 30 | mingw-w64-x86_64-toolchain ^ |
| 31 | bison ^ |
| 32 | flex ^ |
| 33 | make ^ |
James E. King III | 53f0859 | 2018-10-04 13:56:30 -0400 | [diff] [blame] | 34 | mingw-w64-%MINGWPLAT%-boost ^ |
James E. King III | 860a5f1 | 2018-03-06 14:23:23 -0500 | [diff] [blame] | 35 | mingw-w64-%MINGWPLAT%-cmake ^ |
| 36 | mingw-w64-%MINGWPLAT%-libevent ^ |
| 37 | mingw-w64-%MINGWPLAT%-openssl ^ |
| 38 | mingw-w64-%MINGWPLAT%-toolchain ^ |
| 39 | mingw-w64-%MINGWPLAT%-zlib |
| 40 | |
| 41 | ::mingw-w64-%MINGWPLAT%-qt5 : WAY too large (1GB download!) - tested in cygwin builds anyway |
| 42 | |
James E. King III | 860a5f1 | 2018-03-06 14:23:23 -0500 | [diff] [blame] | 43 | :: Upgrade things |
Mario Emmenlauer | 166786e | 2021-08-04 10:38:56 +0200 | [diff] [blame] | 44 | %BASH% -lc "pacman --noconfirm -Syu %IGNORE%" || EXIT /B |
| 45 | %BASH% -lc "pacman --noconfirm -Su %IGNORE%" || EXIT /B |
| 46 | %BASH% -lc "pacman --noconfirm --needed -S %PACKAGES%" || EXIT /B |
zeshuai007 | 966da29 | 2020-10-26 11:49:46 +0800 | [diff] [blame] | 47 | |
Mario Emmenlauer | 166786e | 2021-08-04 10:38:56 +0200 | [diff] [blame] | 48 | |
| 49 | :: These instructions are for a manual update of specific package versions. |
| 50 | :: Fall back to this in case the above does not work anymore (broken upstream). |
| 51 | :::: Updata the new key |
| 52 | ::%BASH% -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-1~20210213-2-any.pkg.tar.xz" || EXIT /B |
| 53 | ::%BASH% -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-1~20210213-2-any.pkg.tar.xz.sig" || EXIT /B |
| 54 | ::%BASH% -lc "pacman-key --verify msys2-keyring-1~20210213-2-any.pkg.tar.xz.sig" || EXIT /B |
| 55 | ::%BASH% -lc "pacman --noconfirm -U --config <(echo) msys2-keyring-1~20210213-2-any.pkg.tar.xz" || EXIT /B |
| 56 | :::: Upgrade things |
| 57 | ::%BASH% -lc "pacman --noconfirm -Sy" || EXIT /B |
| 58 | ::%BASH% -lc "pacman --noconfirm -Udd https://repo.msys2.org/msys/x86_64/pacman-5.2.2-5-x86_64.pkg.tar.xz" || EXIT /B |
| 59 | ::%BASH% -lc "pacman --noconfirm --needed -S %PACKAGES%" || EXIT /B |