git commit and depth in version, android now allows upgrading
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android-23]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android-23]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled

This commit is contained in:
Green Sky
2025-04-10 10:51:48 +02:00
parent b10e1ed99a
commit e5498a36ba
4 changed files with 49 additions and 3 deletions

View File

@ -29,7 +29,14 @@
int main(int argc, char** argv) {
runSysCheck();
std::cout << "tomato " TOMATO_VERSION_STR "\n";
std::cout << "tomato " TOMATO_VERSION_STR;
if (TOMATO_GIT_DEPTH != 0) {
std::cout << "-" << TOMATO_GIT_DEPTH;
}
if (std::string_view{TOMATO_GIT_COMMIT} != "UNK") {
std::cout << "+git." << TOMATO_GIT_COMMIT;
}
std::cout << "\n";
#ifdef TOMATO_BREAKPAD
// TODO: maybe run before sys check?

View File

@ -4,5 +4,8 @@
#define TOMATO_VERSION_MINOR @tomato_VERSION_MINOR@
#define TOMATO_VERSION_PATCH @tomato_VERSION_PATCH@
#define TOMATO_GIT_COMMIT "@TOMATO_GIT_COMMIT@"
#define TOMATO_GIT_DEPTH @TOMATO_GIT_DEPTH@
#define TOMATO_VERSION_STR "@tomato_VERSION_MAJOR@.@tomato_VERSION_MINOR@.@tomato_VERSION_PATCH@"