feat(downloads): route desktop releases through GitHub

This commit is contained in:
Hampus
2026-08-28 18:19:08 +02:00
committed by GitHub
parent dc230926a4
commit 094fb0d1c8
15 changed files with 1093 additions and 155 deletions
+3 -4
View File
@@ -8,6 +8,7 @@ const path = require('node:path');
const {promisify} = require('node:util');
const execFileAsync = promisify(execFile);
const productName = isCanary ? 'Fluxer Canary' : 'Fluxer';
const artifactProductName = isCanary ? 'Fluxer-Canary' : 'Fluxer';
const appId = isCanary ? 'app.fluxer.canary' : 'app.fluxer';
const iconDir = isCanary ? 'icons-canary' : 'icons-stable';
const packageName = isCanary ? 'fluxer_desktop_canary' : 'fluxer_desktop';
@@ -1269,8 +1270,7 @@ module.exports = {
appId,
productName,
copyright: 'Copyright © 2026 Fluxer Platform AB',
// biome-ignore lint/suspicious/noTemplateCurlyInString: electron-builder placeholders, not JS template literals.
artifactName: '${productName}-${version}-${os}-${arch}.${ext}',
artifactName: `${artifactProductName}-\${version}-\${os}-\${arch}.\${ext}`,
directories: {
buildResources: 'build_resources',
output: 'dist-electron',
@@ -1440,8 +1440,7 @@ module.exports = {
target: winTargets,
},
portable: {
// biome-ignore lint/suspicious/noTemplateCurlyInString: electron-builder expands these placeholders.
artifactName: '${productName}-${version}-portable-${os}-${arch}.${ext}',
artifactName: `${artifactProductName}-\${version}-portable-\${os}-\${arch}.\${ext}`,
},
linux: {
icon: `build_resources/${iconDir}/1024x1024.png`,
+3 -3
View File
@@ -473,14 +473,14 @@ function buildManualLatestDownloadUrl(format: ManualDesktopFormat): string {
return `${UPDATE_BASE_URL}/latest/${format}`;
}
function getModernProductName(): string {
return BUILD_CHANNEL === 'canary' ? 'Fluxer Canary' : 'Fluxer';
function getArtifactProductName(): string {
return BUILD_CHANNEL === 'canary' ? 'Fluxer-Canary' : 'Fluxer';
}
function getManualUpdateSuggestedName(format: LinuxManualDesktopFormat, version: string): string {
const archToken = LINUX_MANUAL_ARCH_TOKENS[format][DESKTOP_DOWNLOAD_ARCH];
const extension = LINUX_MANUAL_FORMAT_EXTENSIONS[format];
return `${getModernProductName()}-${version}-linux-${archToken}${extension}`;
return `${getArtifactProductName()}-${version}-linux-${archToken}${extension}`;
}
function getManualDownloadOptions(info: ManualLatestInfo): Array<UpdaterDownloadOption> {