Commit 55907395 authored by Philipp Hörist's avatar Philipp Hörist

Windows: Convert version correctly

parent c67da7dd
Pipeline #6959 failed with stages
in 0 seconds
......@@ -136,7 +136,7 @@ def get_resouce_code(filename, file_version, file_desc, icon_path,
"""
def to_ver_list(v):
v = v.replace('-dev', '.')
v = v.split("-")[0]
return ",".join(map(str, (list(map(int, v.split("."))) + [0] * 4)[:4]))
file_version_list = to_ver_list(file_version)
......
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