Sanitize version string for WiX too

This commit is contained in:
Micah Lee 2022-06-19 21:50:32 -07:00
parent 6679e9c4dc
commit 5e600e5f2d
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -177,6 +177,10 @@ def msi_package(build_path, msi_path, product_update_code):
) )
with open(version_filename) as f: with open(version_filename) as f:
version = f.read().strip() version = f.read().strip()
# change a version like 2.6.dev1 to just 2.6, for cx_Freeze's sake
last_digit = version[-1]
if version.endswith(f".dev{last_digit}"):
version = version[0:-5]
data = { data = {
"id": "TARGETDIR", "id": "TARGETDIR",