question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

options.bin should default to package.productName

See original GitHub issue

What version of electron-installer-debian are you using? 0.7.1

What version of node and npm are you using? 6.12.0 5.5.1

What operating system are you using? Arch Linux (surprisingly works)

Can you compile the example app successfully? I can compile my own app.

What did you do? Please include the configuration you are using for electron-installer-debian. I didn’t use any special config besides src/dest/arch. I configured my app for electron-packager by having an npm-style package name in the name field (vivi) of my package.json, and a human-friendly name in productName (Vivi). This makes electron-packager rename the electron binary to the productName, not the name, i.e. Vivi-linux-x64/Vivi.

What did you expect to happen? The generated /usr/bin symlink to point to the renamed executable.

What actually happened? It points to vivi instead of Vivi, which is of course broken:

-rwxr-xr-x root/root  80394960 2017-11-20 00:42 ./usr/lib/vivi/Vivi
lrwxrwxrwx root/root         0 2017-11-20 00:42 ./usr/bin/vivi -> ../lib/vivi/vivi

I can set options.bin to Vivi, but it seems like it should default for me.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
maleptcommented, Nov 20, 2017

Not sure if this helps your use case, but see: https://github.com/electron-userland/electron-packager/pull/758

0reactions
DuBistKomischcommented, Nov 20, 2017

@malept It won’t help me now since I still want to keep it as Vivi on Windows/Mac, but this would have helped prevent the problem in the first place yes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Package name vs. Product name · Issue #297 · electron ...
Is there a way to package with a name that is not productName? electron-packager-6.0.0 seems to ... options.bin should default to package.
Read more >
Options | electron-packager
By default the version property in the package.json is used, but it can be overridden with this argument. If neither are provided, the...
Read more >
Create a NuGet package with the dotnet CLI | Microsoft Learn
NuGet packages contain code that developers can reuse in their projects. ... If not specified, the default value is the AssemblyName .
Read more >
Xcode Build Settings
If more than one architecture is specified, a universal binary will be produced. Type, StringList. Default Value, $(ARCHS_STANDARD). Asset Pack ...
Read more >
4 Configuration and Installation Options - SUSE Documentation
By default AutoYaST will only install signed packages from sources with known GPG keys. Use this section to overwrite the default settings.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found