mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
feat(downloads): route desktop releases through GitHub
This commit is contained in:
@@ -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`,
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user