Skip to content

Commit c6daf88

Browse files
committed
branding: introduce OptiScaler Aurora v1.0
1 parent 5e4b28e commit c6daf88

2 files changed

Lines changed: 11 additions & 29 deletions

File tree

‎.github/workflows/just_build_no_signature.yml‎

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -44,36 +44,15 @@ jobs:
4444
exit 1
4545
}
4646
47-
function Get-Version-Component {
48-
param (
49-
[string]$pattern,
50-
[string]$replacement
51-
)
52-
53-
$line = Get-Content $resourceFile | Select-String -Pattern $pattern | Select-Object -First 1
54-
if ($line) {
55-
return ($line.Line -replace $replacement).Trim()
56-
}
57-
58-
Write-Error "Pattern not found: $pattern"
47+
$resourceLines = Get-Content $resourceFile
48+
$auroraLine = $resourceLines | Select-String -Pattern '^\s*#define\s+VER_AURORA_VERSION\s+"([^"]+)"' | Select-Object -First 1
49+
if (-Not $auroraLine) {
50+
Write-Error "VER_AURORA_VERSION not found in $resourceFile"
5951
exit 1
6052
}
6153
62-
$majorVersion = Get-Version-Component 'VER_MAJOR_VERSION' '#define VER_MAJOR_VERSION\s+'
63-
$minorVersion = Get-Version-Component 'VER_MINOR_VERSION' '#define VER_MINOR_VERSION\s+'
64-
$hotfixVersion = Get-Version-Component 'VER_HOTFIX_VERSION' '#define VER_HOTFIX_VERSION\s+'
65-
$buildVersion = Get-Version-Component 'VER_BUILD_NUMBER' '#define VER_BUILD_NUMBER\s+'
66-
67-
$resourceLines = Get-Content $resourceFile
68-
$devRelease = $resourceLines | Select-String -Pattern '^\s*#define\s+VER_DEV_RELEASE' -Quiet
69-
$forkLine = $resourceLines | Select-String -Pattern '^\s*#define\s+VER_FORK_TAG' | Select-Object -First 1
70-
71-
$forkTag = ''
72-
if ($forkLine) { $forkTag = ($forkLine.Line -replace '.*"(.*)".*', '$1') }
73-
74-
if ($devRelease) { $suffix = "-dev" } else { $suffix = "-pre$buildVersion" }
75-
76-
$version = "v$majorVersion.$minorVersion.$hotfixVersion$suffix$forkTag"
54+
$auroraVersion = $auroraLine.Matches[0].Groups[1].Value
55+
$version = "v$auroraVersion"
7756
$date = Get-Date -Format "yyyyMMdd"
7857
$outputFileName = "OptiScaler_Aurora_${version}_${date}"
7958

‎OptiScaler/resource.h‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@
3131
#define VER_HOTFIX_VERSION 0
3232
#define VER_BUILD_NUMBER 1
3333

34+
// Aurora release version. Keep this separate from the upstream OptiScaler base version.
35+
#define VER_AURORA_VERSION "1.0"
36+
3437
#define VER_DEV_RELEASE
3538
// #define VER_PRE_RELEASE
3639

3740
// Follows the release suffix in every flavour of VER_PRODUCT_VERSION_STR. Adjacent literals
3841
// concatenate, so an empty tag reproduces the upstream string byte for byte.
3942
#ifndef VER_FORK_TAG
40-
#define VER_FORK_TAG "-fork-y4my4my4m-v4"
43+
#define VER_FORK_TAG "-aurora-v1.0"
4144
#endif
4245

4346
#define VER_FILE_VERSION VER_MAJOR_VERSION, VER_MINOR_VERSION, VER_HOTFIX_VERSION, VER_BUILD_NUMBER
@@ -58,4 +61,4 @@
5861
STRINGIZE(VER_MAJOR_VERSION) "." STRINGIZE(VER_MINOR_VERSION) "." STRINGIZE(VER_HOTFIX_VERSION) "-final" VER_FORK_TAG " (" VER_BUILD_COMMIT ")"
5962
#endif // VER_PRE_RELEASE
6063

61-
#define VER_PRODUCT_NAME "OptiScaler v" VER_PRODUCT_VERSION_STR
64+
#define VER_PRODUCT_NAME "OptiScaler Aurora v" VER_AURORA_VERSION

0 commit comments

Comments
 (0)