mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 01:15:07 +00:00

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.
15 lines
244 B
C++
15 lines
244 B
C++
/*
|
|
* 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;
|
|
|
|
}
|