Skip to content
Snippets Groups Projects
Commit c67da7dd authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Windows: Fix build

parent 4c126259
No related branches found
No related tags found
No related merge requests found
image: Visual Studio 2019
environment:
matrix:
- MSYSTEM: MINGW64
......@@ -19,11 +21,6 @@ clone_depth: 1
install:
- set PATH=C:\msys64\usr\bin;%PATH%
# Download new keyring until appveyor updates its installation
- bash -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
- bash -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
- bash -lc "pacman-key --verify msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
- bash -lc "pacman -U msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz --noconfirm"
- bash -lc "pacman --needed --noconfirm -Syu"
# This is needed because without killing all processes -Su will fail
- ps: Get-Process | Where-Object {$_.path -like 'C:\msys64*'} | Stop-Process
......
......@@ -136,6 +136,7 @@ def get_resouce_code(filename, file_version, file_desc, icon_path,
"""
def to_ver_list(v):
v = v.replace('-dev', '.')
return ",".join(map(str, (list(map(int, v.split("."))) + [0] * 4)[:4]))
file_version_list = to_ver_list(file_version)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment