Skip to content

Commit

Permalink
imp - Condensed release specifier to SPECIFIER[...]
Browse files Browse the repository at this point in the history
---

We've condensed the release specifier for the project to SPECIFIER[...].

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 15, 2024
1 parent b4d3464 commit 3f9c29c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
18 changes: 9 additions & 9 deletions public/Nitrocid/Kernel/KernelReleaseInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ namespace Nitrocid.Kernel
internal static class KernelReleaseInfo
{

// Release specifiers (SPECIFIER: REL or DEV | MILESTONESPECIFIER: ALPHA, BETA, RC, or NONE | None satisfied: Unsupported Release)
// Release specifiers (SPECIFIER: REL, DEV, ALPHA, BETA, or RC | None satisfied: Unsupported Release)
internal readonly static string ReleaseSpecifier = ""
#if SPECIFIERDEV
#if MILESTONESPECIFIERALPHA
#if !SPECIFIERREL
#if SPECIFIERALPHA
+ "Alpha"
#elif MILESTONESPECIFIERBETA
#elif SPECIFIERBETA
+ "Beta"
#elif MILESTONESPECIFIERRC
#elif SPECIFIERRC
+ "Release Candidate"
#else
#elif SPECIFIERDEV
+ "Developer Preview"
#endif // MILESTONESPECIFIERALPHA
#elif !SPECIFIERREL
#else
+ "UNSUPPORTED"
#endif // SPECIFIERDEV
#endif // MILESTONESPECIFIERALPHA
#endif // !SPECIFIERREL
;

// Final console window title
Expand Down
25 changes: 15 additions & 10 deletions public/Nitrocid/Nitrocid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,25 @@
Note for constants: All Nitrocid flags should be defined by defining NitrocidFlags, not DefineConstants. Here's how you
define such flags: -p:NitrocidFlags=PACKAGEMANAGERBUILD
Supported constants:
Supported constants (NitrocidFlags):
- PACKAGEMANAGERBUILD: Indicates that this build is a package manager build suitable for Launchpad PPA
Possible specifiers (NitrocidReleaseSpecifier):
- REL: Final release
- DEV: Developer preview
- ALPHA: Alpha release
- BETA: Beta release
- RC: Release candidate
-->
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<Optimize>false</Optimize>
<DefineConstants>SPECIFIERDEV;$(NitrocidFlags.Replace(",",";"))</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<PropertyGroup>
<DefineDebug Condition="'$(Configuration)' == 'Debug'">true</DefineDebug>
<DefineTrace Condition="'$(Configuration)' == 'Debug'">true</DefineTrace>
<Optimize>true</Optimize>
<DefineConstants>SPECIFIERREL;$(NitrocidFlags.Replace(",",";"))</DefineConstants>
<Optimize Condition="'$(Configuration)' == 'Debug'">false</Optimize>
<NitrocidReleaseSpecifier>REL</NitrocidReleaseSpecifier>
<NitrocidReleaseSpecifier Condition="'$(Configuration)' == 'Debug'">DEV</NitrocidReleaseSpecifier>
<DefineConstants>SPECIFIER$(NitrocidReleaseSpecifier);$(NitrocidFlags.Replace(",",";"))</DefineConstants>
</PropertyGroup>
<!-- KS Platform Information End -->

Expand Down

0 comments on commit 3f9c29c

Please sign in to comment.