Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hbcraft opened this issue Jan 10, 2025 · 0 comments

Comments

@hbcraft
Copy link

hbcraft commented Jan 10, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant