1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

LibCore+LibGUI: Define a Serenity version in LibCore

Before, `AboutDialog` and `ArgsParser` read from a build-time created
file called `/res/version.ini`. This caused problems with utilities
unveiling specific paths leaving the version file unaccessible.

This commit hard-codes a serenity version in `LibCore`, and use it in
`ArgsParser` and `AboutDialog`.

The previous version contained the hash of the last GIT commit, this is
omitted for the default use for the sake of simplicity.
This commit is contained in:
Mahmoud Mandour 2021-08-29 11:51:42 +02:00 committed by Linus Groh
parent e3f7753233
commit ad80d4dce0
3 changed files with 19 additions and 21 deletions

View file

@ -0,0 +1,15 @@
/*
* Copyright (c) 2021, Mahmoud Mandour <ma.mandourr@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/StringView.h>
namespace Core::Version {
constexpr StringView SERENITY_VERSION = "Version 1.0"sv;
}