-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathAppVeyorInstall.bat
93 lines (66 loc) · 3.42 KB
/
AppVeyorInstall.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
echo on
rem This script is used by AppVeyor automatic builds to install the necessary
rem software dependencies.
git submodule update --init --recursive
if %errorlevel% neq 0 exit /b %errorlevel%
msiexec.exe /qn /i https://github.com/npackd/npackd-cpp/releases/download/version_1.26.9/NpackdCL64-1.26.9.msi
if %errorlevel% neq 0 exit /b %errorlevel%
set path=C:\Program Files\NpackdCL;C:\msys64\usr\bin;C:\Windows\System32;C:\Program Files (x86)\7-ZIP
ncl set-repo -u https://www.npackd.org/rep/recent-xml -u https://www.npackd.org/rep/xml?tag=stable -u https://www.npackd.org/rep/xml?tag=stable64 -u https://www.npackd.org/rep/xml?tag=libs
if %errorlevel% neq 0 exit /b %errorlevel%
ncl detect
if %errorlevel% neq 0 exit /b %errorlevel%
ncl set-install-dir -f "C:\Program Files (x86)"
if %errorlevel% neq 0 exit /b %errorlevel%
ncl add -p com.advancedinstaller.AdvancedInstallerFreeware -r [10,100) -p org.7-zip.SevenZIP -r [9,100) -p exeproxy -r [0.2,1)
if %errorlevel% neq 0 exit /b %errorlevel%
rem Python will be detected, but needs NpackdCL
ncl add -p com.googlecode.windows-package-manager.NpackdCL
if %errorlevel% neq 0 exit /b %errorlevel%
rem update all packages to the newest versions
pacman -Syu --noconfirm
pacman -Syu --noconfirm
pacman -S --noconfirm mingw64/mingw-w64-x86_64-cmake mingw64/mingw-w64-x86_64-ninja mingw64/mingw-w64-x86_64-wget
if %errorlevel% neq 0 exit /b %errorlevel%
if %bits% equ 64 (
if %static% equ ON (
call :install64static
) else (
call :install64dynamic
)
) else (
call :install32
)
if %errorlevel% neq 0 exit /b %errorlevel%
goto :eof
rem ---------------------------------------------------------------------------
:install32
pacman -S --noconfirm mingw-w64-i686-toolchain mingw-w64-i686-libtool mingw32/mingw-w64-i686-jasper mingw32/mingw-w64-i686-qt5-static mingw32/mingw-w64-i686-icu mingw32/mingw-w64-i686-zstd
if %errorlevel% neq 0 exit /b %errorlevel%
ncl add -p drmingw -v 0.7.7
if %errorlevel% neq 0 exit /b %errorlevel%
exit /b
rem ---------------------------------------------------------------------------
:install64dynamic
pacman -S --noconfirm mingw-w64-x86_64-toolchain mingw-w64-x86_64-libtool mingw64/mingw-w64-x86_64-jasper mingw64/mingw-w64-x86_64-qt5 mingw64/mingw-w64-x86_64-icu mingw64/mingw-w64-x86_64-zstd mingw64/mingw-w64-x86_64-quazip
if %errorlevel% neq 0 exit /b %errorlevel%
ncl add -p drmingw64 -v 0.7.7
if %errorlevel% neq 0 exit /b %errorlevel%
exit /b
rem ---------------------------------------------------------------------------
:install64static
pacman -S --noconfirm mingw-w64-x86_64-toolchain mingw-w64-x86_64-libtool mingw64/mingw-w64-x86_64-jasper mingw64/mingw-w64-x86_64-qt5-static mingw64/mingw-w64-x86_64-icu mingw64/mingw-w64-x86_64-zstd
if %errorlevel% neq 0 exit /b %errorlevel%
ncl add -p drmingw64 -v 0.7.7
if %errorlevel% neq 0 exit /b %errorlevel%
rem if "%prg%" equ "npackd" (call :installcoverity)
exit /b
rem ---------------------------------------------------------------------------
:installcoverity
wget.exe https://scan.coverity.com/download/cxx/win64 --post-data "token=%covtoken%&project=Npackd" -O coverity_tool.zip --no-check-certificate -nv
if %errorlevel% neq 0 exit /b %errorlevel%
7z x -y coverity_tool.zip
if %errorlevel% neq 0 exit /b %errorlevel%
for /f "delims=" %%x in ('dir /b cov-*') do set name=%%x
ren "%name%" cov-analysis
exit /b