Commit 28f1e439 authored by rgaudin's avatar rgaudin
Browse files

Updated win build dependencies: pygi pyinstaller and qemu

Also dropped chocolatey openssl as already in appveyor image and choco version error-prone
parent e2538a20
Pipeline #115680 canceled with stage
in 50 seconds
......@@ -39,8 +39,7 @@ install:
(Get-Content kiwix-hotspot\data.py).replace('devel', $version) | Set-Content kiwix-hotspot\data.py
# decrypt certificates
- cmd: choco install openssl.light
- openssl enc -d -aes-256-cbc -md sha256 -pass pass:%win_certificate_secret% -in kiwix.p12.enc -out kiwix.pfx
- C:\OpenSSL-v111-Win32\bin\openssl.exe enc -d -aes-256-cbc -md sha256 -pass pass:%win_certificate_secret% -in kiwix.p12.enc -out kiwix.pfx
- nuget install secure-file -ExcludeVersion
- choco install reshack.portable -y
- secure-file\tools\secure-file -decrypt pibox_installer_ci_rsa.appveyor_enc -secret %certificate_secret% -out pibox_installer_ci_rsa
......@@ -53,7 +52,7 @@ install:
# pygi-aio provides a way to install from cmd even if it is not documented
# the only package to install is GTK with GIR
# note: we don't use msys2 because pyinstaller fails to install on msys2
- appveyor DownloadFile "http://mirror.download.kiwix.org/dev/pygi-aio-3.18.2_rev12-setup_549872deadabb77a91efbc56c50fe15f969e5681.exe" -FileName "pygi-aio-setup.exe"
- appveyor DownloadFile "http://mirror.download.kiwix.org/dev/pygi-aio-3.24.1_rev1-setup_049a323fe25432b10f7e9f543b74598d4be74a39.exe" -FileName "pygi-aio-setup.exe"
- mkdir pygi-aio-setup
- cd pygi-aio-setup
- set SOURCEPATH=%cd%
......@@ -80,14 +79,14 @@ install:
# Install pyinstaller and requirements
- cd C:\projects\kiwix-hotspot
- if %platform%==x86 C:\Python34\python.exe -m pip install pypiwin32==219 pyinstaller==3.2.1 -r requirements-windows.txt
- if %platform%==x64 C:\Python34-x64\python.exe -m pip install pypiwin32==219 pyinstaller==3.2.1 -r requirements-windows.txt
- if %platform%==x86 C:\Python34\python.exe -m pip install pypiwin32==219 pyinstaller -r requirements-windows.txt
- if %platform%==x64 C:\Python34-x64\python.exe -m pip install pypiwin32==219 pyinstaller -r requirements-windows.txt
# Install qemu
- mkdir "C:\Program Files\qemu"
- cd "C:\Program Files\qemu"
- if %platform%==x86 appveyor DownloadFile "http://mirror.download.kiwix.org/dev/qemu-w32-setup-20180430.exe" -FileName "qemu-setup.exe"
- if %platform%==x64 appveyor DownloadFile "http://mirror.download.kiwix.org/dev/qemu-w64-setup-20180430.exe" -FileName "qemu-setup.exe"
- if %platform%==x86 appveyor DownloadFile "http://mirror.download.kiwix.org/dev/qemu-w32-setup-20190218.exe" -FileName "qemu-setup.exe"
- if %platform%==x64 appveyor DownloadFile "http://mirror.download.kiwix.org/dev/qemu-w64-setup-20190218.exe" -FileName "qemu-setup.exe"
- 7z x qemu-setup.exe
- del qemu-setup.exe
- move qemu-system-arm.exe qemu-arm.exe
......@@ -124,8 +123,6 @@ install:
- cd C:\projects\kiwix-hotspot
- if %platform%==x86 C:\Python34\python.exe C:\Python34\Scripts\pyinstaller-script.py --log-level=DEBUG kiwix-hotspot-win32.spec
- if %platform%==x64 C:\Python34-x64\python.exe C:\Python34-x64\Scripts\pyinstaller-script.py --log-level=DEBUG kiwix-hotspot-win64.spec
- if %platform%==x86 type build\kiwix-hotspot-win32\warnkiwix-hotspot-win32.txt
- if %platform%==x64 type build\kiwix-hotspot-win64\warnkiwix-hotspot-win64.txt
# Deploy
- cd C:\projects\kiwix-hotspot\dist\kiwix-hotspot
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment