mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 03:37:28 -03:00
cx_Freeze cannot handle dev version strings
This commit is contained in:
parent
ac745dd041
commit
6a5ac69741
1 changed files with 4 additions and 0 deletions
|
@ -108,6 +108,10 @@ if platform.system() == "Darwin" or platform.system() == "Linux":
|
|||
# Discover the version
|
||||
with open(os.path.join("..", "cli", "onionshare_cli", "resources", "version.txt")) 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:-4]
|
||||
|
||||
|
||||
# Build
|
||||
|
|
Loading…
Reference in a new issue