From c66190535039a1ac0ed5556046966d5fb784b0e3 Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Mon, 13 May 2019 20:18:56 -0500 Subject: [PATCH] Bump version to 4.0.4 RC - Also update package.py to allow version postfixes without causing issues with Windows build. --- core/__init__.py | 2 +- package.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/__init__.py b/core/__init__.py index 9e53376c..5d789634 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -1,3 +1,3 @@ -__version__ = '4.0.3' +__version__ = '4.0.4 RC' __appname__ = 'dupeGuru' diff --git a/package.py b/package.py index 51de369c..5f79945c 100644 --- a/package.py +++ b/package.py @@ -117,7 +117,8 @@ def package_windows(): app_version = get_module_version('core') arch = platform.architecture()[0] # Information to pass to pyinstaller and NSIS - version_array = app_version.split('.') + match = re.search('[0-9]+.[0-9]+.[0-9]+', app_version) + version_array = match.group(0).split('.') match = re.search('[0-9]+', arch) bits = match.group(0) # include locale files if they are built otherwise exit as it will break