mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-02 09:35:33 -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:
|
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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user