From 6679e9c4dc6f82ba8f08caa692fd355d6b1b2ff0 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Mon, 20 Jun 2022 00:18:49 -0400 Subject: [PATCH] Fix sanitizing version string --- desktop/setup-freeze.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desktop/setup-freeze.py b/desktop/setup-freeze.py index 63920e4d..83959a2b 100644 --- a/desktop/setup-freeze.py +++ b/desktop/setup-freeze.py @@ -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")]