aboutsummaryrefslogtreecommitdiffstats
path: root/devscripts
diff options
context:
space:
mode:
authorshirt-dev <2660574+shirt-dev@users.noreply.github.com>2021-02-09 07:34:00 -0500
committerGitHub <noreply@github.com>2021-02-09 18:04:00 +0530
commit3dd264bf423543e8d3d5394a38cd79007f1a59f8 (patch)
tree2bb8b4071d8c9b5fa53338a1b0fdafc0ab39849a /devscripts
parentefabc161652d2427c2fe5ccff6c944e91ea12ca0 (diff)
downloadhypervideo-pre-3dd264bf423543e8d3d5394a38cd79007f1a59f8.tar.lz
hypervideo-pre-3dd264bf423543e8d3d5394a38cd79007f1a59f8.tar.xz
hypervideo-pre-3dd264bf423543e8d3d5394a38cd79007f1a59f8.zip
#64 Implement self updater
Co-authored-by: shirtjs <2660574+shirtjs@users.noreply.github.com> (shirt-dev) Co-authored-by: pukkandan <pukkandan@gmail.com>
Diffstat (limited to 'devscripts')
-rw-r--r--devscripts/pyinst.py2
-rw-r--r--devscripts/update-version.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/devscripts/pyinst.py b/devscripts/pyinst.py
index b663d4b2e..083cec903 100644
--- a/devscripts/pyinst.py
+++ b/devscripts/pyinst.py
@@ -27,7 +27,7 @@ os.chdir(root_dir)
exec(compile(open('youtube_dlc/version.py').read(), 'youtube_dlc/version.py', 'exec'))
VERSION = locals()['__version__']
-VERSION_LIST = VERSION.replace('-', '.').split('.')
+VERSION_LIST = VERSION.split('.')
VERSION_LIST = list(map(int, VERSION_LIST)) + [0] * (4 - len(VERSION_LIST))
print('Version: %s%s' % (VERSION, _x86))
diff --git a/devscripts/update-version.py b/devscripts/update-version.py
index c9698875a..38dea0862 100644
--- a/devscripts/update-version.py
+++ b/devscripts/update-version.py
@@ -8,7 +8,7 @@ from datetime import datetime
exec(compile(open('youtube_dlc/version.py').read(), 'youtube_dlc/version.py', 'exec'))
old_version = locals()['__version__']
-old_version_list = old_version.replace('-', '.').split(".", 4)
+old_version_list = old_version.split(".", 4)
old_ver = '.'.join(old_version_list[:3])
old_rev = old_version_list[3] if len(old_version_list) > 3 else ''