2020-10-07 16:22:14 +00:00
|
|
|
image: Visual Studio 2019
|
2018-06-13 09:44:27 +00:00
|
|
|
version: '0.1.{build}'
|
|
|
|
environment:
|
|
|
|
EXTRA_DIR: 'C:\extra'
|
|
|
|
MINGW64_EXTRA_DIR: '/c/extra'
|
2024-01-08 14:34:35 +00:00
|
|
|
PATH: 'C:\\Python312\\Scripts;%PATH%;%EXTRA_DIR%\bin;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\%platform%'
|
2018-06-13 09:44:27 +00:00
|
|
|
PKG_CONFIG_PATH: '%EXTRA_DIR%\lib\pkgconfig'
|
|
|
|
MSYS2_PATH_TYPE: 'inherit'
|
|
|
|
MSYS2_ARG_CONV_EXCL: '-Tp'
|
|
|
|
MINGW64_RUN: 'C:\msys64\usr\bin\bash.exe --login -c'
|
|
|
|
MSYSTEM: 'MINGW64'
|
2023-07-20 13:58:54 +00:00
|
|
|
KIWIX_DESKTOP_VERSION: '2.3.1-3'
|
2023-09-01 09:06:49 +00:00
|
|
|
KIWIX_DESKTOP_RELEASE: 0
|
2018-06-13 09:44:27 +00:00
|
|
|
|
2019-12-09 07:19:48 +00:00
|
|
|
|
2018-06-13 09:44:27 +00:00
|
|
|
init:
|
2019-12-09 07:19:48 +00:00
|
|
|
- cmd: |
|
2018-06-13 09:44:27 +00:00
|
|
|
echo %TEST_VAR%
|
2020-10-07 16:22:14 +00:00
|
|
|
REM Set VC 2019
|
|
|
|
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
|
2018-06-13 09:44:27 +00:00
|
|
|
mkdir C:\extra\bin
|
|
|
|
|
|
|
|
install:
|
|
|
|
- cmd: |
|
|
|
|
cd C:\projects
|
|
|
|
REM Install meson
|
2024-01-08 14:34:35 +00:00
|
|
|
C:\Python312\Scripts\pip install meson
|
2018-06-13 09:44:27 +00:00
|
|
|
|
|
|
|
REM Install ninja
|
|
|
|
curl -o ninja-win.zip -L https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip
|
|
|
|
7z e ninja-win.zip -o%EXTRA_DIR%\bin
|
|
|
|
|
|
|
|
REM Install pkg-config-lite
|
2024-06-17 12:48:28 +00:00
|
|
|
curl -o pkg-config-lite-0.28-1.zip -L https://deac-fra.dl.sourceforge.net/project/pkgconfiglite/0.28-1/pkg-config-lite-0.28-1_bin-win32.zip
|
2018-06-13 09:44:27 +00:00
|
|
|
7z e pkg-config-lite-0.28-1.zip -o%EXTRA_DIR%\bin pkg-config-lite-0.28-1/bin/pkg-config.exe
|
|
|
|
cd kiwix-build
|
|
|
|
|
|
|
|
REM Install openssh (scp) for deployement
|
|
|
|
choco install openssh openssl.light
|
|
|
|
|
2018-10-31 14:42:15 +00:00
|
|
|
- cmd: openssl enc -d -aes-256-cbc -md sha256 -pass pass:%ENC_PASSWD% -in appveyor\nightlybot_id_key.enc -out appveyor\nightlybot_id_key
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-13 09:44:27 +00:00
|
|
|
build_script:
|
2018-10-31 14:42:15 +00:00
|
|
|
- IF "%USE_CACHE%" EQU "1" appveyor\setup_from_cache.cmd
|
|
|
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_zlib.cmd
|
|
|
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_lzma.cmd
|
2020-03-31 10:36:03 +00:00
|
|
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_zstd.cmd
|
2018-10-31 14:42:15 +00:00
|
|
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_libcurl.cmd
|
|
|
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_pthread.cmd
|
|
|
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_dirent.cmd
|
|
|
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_xapian.cmd
|
|
|
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_icu.cmd
|
|
|
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_pugixml.cmd
|
|
|
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_aria2.cmd
|
2019-01-08 15:56:09 +00:00
|
|
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_mustache.cmd
|
2019-08-10 16:04:09 +00:00
|
|
|
- IF "%USE_CACHE%" NEQ "1" appveyor\install_libmicrohttpd.cmd
|
2018-10-31 14:42:15 +00:00
|
|
|
- IF "%USE_CACHE%" NEQ "1" %MINGW64_RUN% "cd /c/projects/kiwix-build && appveyor/create_cache.sh"
|
2018-06-13 09:44:27 +00:00
|
|
|
- appveyor\install_libzim.cmd
|
2021-06-24 14:59:51 +00:00
|
|
|
- appveyor\install_libkiwix.cmd
|
2018-06-13 09:44:27 +00:00
|
|
|
- appveyor\install_kiwix-desktop.cmd
|
|
|
|
|
|
|
|
before_deploy:
|
2022-08-31 08:24:03 +00:00
|
|
|
- cmd: openssl enc -d -pbkdf2 -aes-256-cbc -md sha256 -pass pass:%win_certificate_secret% -in appveyor\kiwix.pfx.enc -out appveyor\kiwix.pfx
|
2018-06-13 09:44:27 +00:00
|
|
|
- cmd: '%MINGW64_RUN% "cd /c/projects/kiwix-build && appveyor/package_kiwix-desktop.sh"'
|
|
|
|
|
|
|
|
deploy_script:
|
|
|
|
- cmd: '%MINGW64_RUN% "cd /c/projects/kiwix-build && appveyor/deploy.sh"'
|