-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Installation directory gets truncated name when package name contains dashes or dots. #637
Comments
Just to be sure — squirrel.windows? |
Yes, this is just for Windows and using Squirrel. |
We also support nsis and it is much better than squirrel.windows, not yet default because auto-update not yet supported. |
Thanks @develar, we are aware of NSIS and we have taken it into consideration. As of right now, we believe that Squirrel fits our needs in a better way. I am looking at the code to try to figure out if it is a squirrel or an electron-builder issue, but I haven't figure it out yet. If you know is a squirrel issue, let me know and I'll file it with them. |
I think this is actually an issue with Squirrel. See Squirrel/Squirrel.Windows#523. It may be good to at least warn the user when there's a space, dash or dots in the package ID. I think winstaller also fails if you try to create an MSI with a package name that contains a dash. |
We are going to throw Squirrel.Windows away (change default target) and make NSIS as default target. As a real solution. I am tired to fix Squirrel.Windows bugs. |
@develar, these seem to be problems that could be addressed at electron/windows-installer. If they do get fixed there, would you be open to update your package develar/windows-installer with the fix? |
Of course, actually, I didn't move this issue to backlog — it means that I am going to investigate and fix it. |
NSIS is recommended, moved to backlog. |
Electron Builder v5.22.1
Target: Windows x64
It seems like the name of your package, in the application package.json, is used to determine in which folder within
appdata\local
the application will be installed.If the name of your package contains a period or a dash, then when the application is installed, the name of the folder gets truncated on that character. For example, an app with a package name of electron-quick-start, would get installed in
%userprofile%/appdata/local/electron
instead of%userprofile%/appdata/local/electron-quick-start
.This causes issues when you have different apps with the same prefix, which is common when you have different products of the same company. Maybe there's a way to overwrite this, but I am not sure how.
I put together an example on the repo below.
https://github.com/djpereira/electron-quick-start/tree/electron-builder-appname-issue
The text was updated successfully, but these errors were encountered: