mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-02 01:25:26 -05:00
Sanitize version string for WiX too
This commit is contained in:
parent
6679e9c4dc
commit
5e600e5f2d
@ -177,6 +177,10 @@ def msi_package(build_path, msi_path, product_update_code):
|
||||
)
|
||||
with open(version_filename) as f:
|
||||
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 = {
|
||||
"id": "TARGETDIR",
|
||||
|
Loading…
x
Reference in New Issue
Block a user