Skip to content

When executableName is not set under Linux, productName is not used as the default value. #8766

Closed
@hbcraft

Description

@hbcraft

According to the documentation, when I do not set executableName, electron-builder should use the productName that I have set as the default value.

my electronBuilder.ts

import { Configuration } from 'electron-builder'
export default {
  appId: 'com.tech-trans.ttpos.std86',
  files: ['app-dist/**/*'],
  productName: 'MyApp',
  // executableName: 'MyApp',
  artifactName: '${productName}-${version}-${os}-${arch}.${ext}',
} satisfies Configuration

electron: 33.2.1

electron-builder: 25.1.8

node: 22.12.0

pnpm: 9.12.2

os: Linux xxx 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

I am not familiar with this library, but the code should be at this location.:

const executableName = this.platformSpecificBuildOptions.executableName ?? info.config.executableName
this.executableName = executableName == null ? this.appInfo.sanitizedName.toLowerCase() : sanitizeFileName(executableName)

The above content is all translated by translation tools. Please ignore the errors therein.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions