Fix sanitizing version string

This commit is contained in:
Micah Lee 2022-06-20 00:18:49 -04:00
parent 6a5ac69741
commit 6679e9c4dc
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -111,8 +111,7 @@ with open(os.path.join("..", "cli", "onionshare_cli", "resources", "version.txt"
# 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:-4]
version = version[0:-5]
# Build
include_files = [(os.path.join("..", "LICENSE"), "LICENSE")]