mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 14:36:15 -04:00
Sanitize version string for WiX too
This commit is contained in:
parent
b21fee0e84
commit
6c686a6cae
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue