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
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:
@ -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?
|
||||
|
@ -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@"
|
||||
|
||||
|
Reference in New Issue
Block a user