mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 01:22:19 +03:00
Fix semantic_version appversion issues in update.py and setup.py
This commit is contained in:
parent
d585dd9233
commit
3c47b6c782
13
setup.py
13
setup.py
@ -53,7 +53,8 @@ else:
|
||||
assert False, f'Unsupported platform {sys.platform}'
|
||||
|
||||
# Split version, as py2exe wants the 'base' for version
|
||||
semver = semantic_version.Version.coerce(appversion())
|
||||
semver = appversion()
|
||||
appversion_str = str(semver)
|
||||
base_appversion = str(semver.truncate('patch'))
|
||||
|
||||
if dist_dir and len(dist_dir) > 1 and isdir(dist_dir):
|
||||
@ -154,8 +155,8 @@ if sys.platform == 'darwin':
|
||||
'CFBundleName': applongname,
|
||||
'CFBundleIdentifier': f'uk.org.marginal.{appname.lower()}',
|
||||
'CFBundleLocalizations': get_cfbundle_localizations(),
|
||||
'CFBundleShortVersionString': appversion(),
|
||||
'CFBundleVersion': appversion(),
|
||||
'CFBundleShortVersionString': appversion_str,
|
||||
'CFBundleVersion': appversion_str,
|
||||
'CFBundleURLTypes': [
|
||||
{
|
||||
'CFBundleTypeRole': 'Viewer',
|
||||
@ -229,7 +230,7 @@ elif sys.platform == 'win32':
|
||||
|
||||
setup(
|
||||
name=applongname,
|
||||
version=appversion(),
|
||||
version=appversion_str,
|
||||
windows=[
|
||||
{
|
||||
'dest_base': appname,
|
||||
@ -238,7 +239,7 @@ setup(
|
||||
'company_name': 'EDCD', # Used by WinSparkle
|
||||
'product_name': appname, # Used by WinSparkle
|
||||
'version': base_appversion,
|
||||
'product_version': appversion(),
|
||||
'product_version': appversion_str,
|
||||
'copyright': copyright,
|
||||
'other_resources': [(24, 1, open(f'{appname}.manifest').read())],
|
||||
}
|
||||
@ -250,7 +251,7 @@ setup(
|
||||
'company_name': 'EDCD',
|
||||
'product_name': appname,
|
||||
'version': base_appversion,
|
||||
'product_version': appversion(),
|
||||
'product_version': appversion_str,
|
||||
'copyright': copyright,
|
||||
'other_resources': [(24, 1, open(f'{appcmdname}.manifest').read())],
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ class Updater(object):
|
||||
# NB: It 'accidentally' supports pre-release due to how it
|
||||
# splits and compares strings:
|
||||
# <https://github.com/vslavik/winsparkle/issues/214>
|
||||
self.updater.win_sparkle_set_app_build_version(appversion_nobuild())
|
||||
self.updater.win_sparkle_set_app_build_version(str(appversion_nobuild()))
|
||||
|
||||
# set up shutdown callback
|
||||
global root
|
||||
|
Loading…
x
Reference in New Issue
Block a user