mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
feat(desktop): sign every Windows release artifact (#1548)
This commit is contained in:
1 parent
873c203b5d
commit
6e66c92dca
89 files changed
+2408
-2740
No files matched your search
@@ -249,20 +249,12 @@ function formatReleaseChannelLabel(value: string): string {
|
||||
return normalized.charAt(0).toUpperCase() + normalized.slice(1);
|
||||
}
|
||||
|
||||
function formatBuildVariantLabel(value: DesktopInfo['buildVariant']): string {
|
||||
if (value === 'windows-game-capture') {
|
||||
return 'Windows Game Capture';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
function getBuildString(desktopInfo: DesktopInfo): string {
|
||||
const buildVersion = process.env.PUBLIC_BUILD_VERSION || process.env.BUILD_VERSION || desktopInfo.version || 'dev';
|
||||
const releaseChannel = formatReleaseChannelLabel(
|
||||
process.env.PUBLIC_RELEASE_CHANNEL || process.env.RELEASE_CHANNEL || desktopInfo.channel,
|
||||
);
|
||||
const buildVariant = formatBuildVariantLabel(desktopInfo.buildVariant);
|
||||
return `${releaseChannel} Desktop${buildVariant ? ` ${buildVariant}` : ''} ${buildVersion}`;
|
||||
return `${releaseChannel} Desktop ${buildVersion}`;
|
||||
}
|
||||
|
||||
function safeGetLocale(): string {
|
||||
|
||||
Reference in new issue
Block a user