Linux: Be more restrictive with executable name
See original GitHub issue- Version: 7.11.3
- Target: Linux (any)
Currently electron-builder uses productName
info for naming app’s main executable, which may be painful for Linux binaries being run from command terminal, if that info contains uppercase letters, spaces, etc.
I would like to suggest a new option executableName
for Linux binaries, with the following restrictions:
- should not contain spaces
- should not contain uppercase letters
- should not contain any special characters which have some meaning for the shell (e.g.:
&
).
If no executableName
is provided in package.json
, electron-builder could calculate it from name
or productName
options (convert to lowercase, strip spaces, replace special characters with -
or _
, etc.).
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Classic SysAdmin: Understanding Linux File Permissions
The setuid/setguid permissions are used to tell the system to run an executable as the owner with the owner's permissions. Be careful using ......
Read more >Restricting symbols to local scope for linux executable
The simplest solution is to rename the symbols (by changing source code) in your executable so they don't conflict with the shared library...
Read more >CSC128: Permissions and Links: chmod and ls
It is important that in most cases, it makes no sense to set permissions on yourself more restrictive than group or other, therefore:...
Read more >Linux File Permissions: Understanding setuid, setgid, and ...
In some cases, the sticky bit is more intuitively referred to as a "restricted deletion flag" or "restricted deletion bit". The /tmp directory ......
Read more >Linux Chmod Command Help and Examples
The command name chmod stands for "change mode." It restricts the way a file can be accessed. For more information about file modes, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes. Also, in any case, all file names are sanitised using https://www.npmjs.com/package/sanitize-filename
name
according to npm rules — https://docs.npmjs.com/files/package.json#name “must not have uppercase letters in the name”, “name can’t contain any non-URL-safe characters.”