mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
common: always use 0 for build number and make get_product_version return "vX.X.X"
This commit is contained in:
committed by
Andrey Nekrasov
parent
f892338098
commit
b90f1fc237
@@ -491,10 +491,9 @@ std::wstring get_process_path(HWND window) noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::wstring get_product_version() {
|
std::wstring get_product_version() {
|
||||||
static std::wstring version = std::to_wstring(VERSION_MAJOR) +
|
static std::wstring version = L"v" + std::to_wstring(VERSION_MAJOR) +
|
||||||
L"." + std::to_wstring(VERSION_MINOR) +
|
L"." + std::to_wstring(VERSION_MINOR) +
|
||||||
L"." + std::to_wstring(VERSION_REVISION) +
|
L"." + std::to_wstring(VERSION_REVISION);
|
||||||
L"." + std::to_wstring(VERSION_BUILD);
|
|
||||||
|
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,10 +6,9 @@
|
|||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 14
|
#define VERSION_MINOR 14
|
||||||
#define VERSION_REVISION 2
|
#define VERSION_REVISION 2
|
||||||
#define VERSION_BUILD 0
|
|
||||||
|
|
||||||
#define FILE_VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, VERSION_BUILD
|
#define FILE_VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION, 0
|
||||||
#define FILE_VERSION_STRING STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) "." STRINGIZE(VERSION_REVISION) "." STRINGIZE(VERSION_BUILD)
|
#define FILE_VERSION_STRING STRINGIZE(VERSION_MAJOR) "." STRINGIZE(VERSION_MINOR) "." STRINGIZE(VERSION_REVISION) ".0"
|
||||||
|
|
||||||
#define PRODUCT_VERSION FILE_VERSION
|
#define PRODUCT_VERSION FILE_VERSION
|
||||||
#define PRODUCT_VERSION_STRING FILE_VERSION_STRING
|
#define PRODUCT_VERSION_STRING FILE_VERSION_STRING
|
||||||
|
|||||||
Reference in New Issue
Block a user