Skip to content

Commit

Permalink
remove build number from version string
Browse files Browse the repository at this point in the history
  • Loading branch information
MGraefe committed Jul 18, 2023
1 parent 016b10a commit 83bafdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/UpdateChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@
#include "updater_qt.h"
#include "ConfigModel.h"

#if defined(_WIN32)
#define CHECK_URL "https://mgraefe.de/rpsb/version/version.xml"
#elif defined(LINUX)
#define CHECK_URL "https://mgraefe.de/rpsb/version/version_linux_amd64.xml"
#endif


//---------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions version.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main():
except:
print('Unable to create git check file, write protected?')

pattern = 'v?([0-9]+)\\.([0-9]+)\\.([0-9]+)\\.([0-9]+)'
pattern = 'v?([0-9]+)\\.([0-9]+)\\.([0-9]+)'

reObj = re.search(pattern, versionStr)
if reObj == None:
Expand All @@ -50,12 +50,12 @@ def main():
'//CHANGES WILL BE OVERWRITTEN BY version.py\n\n' \
'#ifndef ' + productName + '_all__version_H__\n' \
'#define ' + productName + '_all__version_H__\n\n' \
'#define ' + productNameCap + '_VERSION ' + ','.join(groups) + '\n' + \
'#define ' + productNameCap + '_VERSION ' + ','.join(groups) + ',0\n' + \
'#define ' + productNameCap + '_VERSION_S "' + versionStr + '"\n' + \
'#define ' + productNameCap + '_VERSION_MAJOR ' + groups[0] + '\n' + \
'#define ' + productNameCap + '_VERSION_MINOR ' + groups[1] + '\n' + \
'#define ' + productNameCap + '_VERSION_REVISION ' + groups[2] + '\n' + \
'#define ' + productNameCap + '_VERSION_BUILD ' + groups[3] + '\n' + \
'#define ' + productNameCap + '_VERSION_BUILD ' + '1833' + '\n' + \
'\n#endif\n'

os.makedirs(os.path.dirname(outFileVersion), exist_ok=True)
Expand Down

0 comments on commit 83bafdf

Please sign in to comment.