mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Fix sanitizing version string
This commit is contained in:
parent
6a5ac69741
commit
6679e9c4dc
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user