-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
DEB build created hardlinks which breaks when /opt is on a different drive #5721
Comments
I believe that means it's failing at this line:
I had a similar issue with our project in that we couldn't use symlinks either. Instead I mirrored the
Used in electron-builder as:
Try giving that a shot? 🙂 |
The line mentioned by you looks OK, it's a symbolic link ( |
I found this issue: AppImageCommunity/appimaged#34 and it mentions this:
Where are your desktop/mime databases located? I'm wondering if the assumption of |
@mmaietta If set
Real install path is package.json:
additional: I want to change the name of shortcut from Is there any way to just change the shortcut name? |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I think I may be misunderstanding what you're looking for. When you mean shortcut, are you referring to what the Desktop entry shows? electron-builder/packages/app-builder-lib/src/targets/LinuxTargetHelper.ts Lines 111 to 116 in 28cb86b
Can you try using this file for your |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@mmaietta so sorry I missed your response. It seems like that template always gets executed? I have an |
For some reason,
|
@mmaietta Thanks for your fix https://github.com/electron-userland/electron-builder/pull/5941/files/326873dafe3ac38b0fa2819c7f7176791c572070 package.json:
works fine from v22.11.7. It is better to remove
or change to:
|
@alx696 would you be willing to open a PR for that? I always am encouraging community contributions 🙂 |
Ah no, I don't think this fixes is for us as it's the assets being hard linked causing this issue: "E:/var/cache/apt/archives/beekeeper-studio_2.1.5_amd64.deb: error |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Ping. |
Would it be adequate to just ignore the result of this line and echo that it failed? Not sure if there is another way |
I just ran into this whilst trying to install upscayl upscayl/upscayl#652. Please fix it, it should be extremely simple to fix, just create a symlink instead of a hardlink. |
This is unrelated to the bug. |
A workaround for end users that have no control over the
|
@infinity0 I'm tackling some high-priority items already in addition to swamped with work. Please open a PR with your suggested changes and I'm happy to give it a review |
In the real world you can't expect unrelated strangers to fix boring bugs on your own project for free. I've reported exactly how to fix it, this is already more time than most strangers are willing to spend. |
"In the real world" I'll attend to this issue when I get around to it. Anyone is still free to open a PR with changes and I'm happy to review |
Update: I've created a PR targeting this issue but am struggling to set up a Parallels VM that can test this directly. I'll be continuing to investigate how to do so If anyone is willing to try this patch via
From what I understand, I've also added the change to ensure |
Furthermore, the files being hardlinked that users have reported are icons, not the binaries that are managed by update-alternatives.
You should re-open the bug. I predict other people are going to experience the same problem even with this "fix". Have a think about what's dealing with the icons. I'm not familiar with the nodejs/electron ecosystem, and purposefully refuse to become familiar with it, it's bad for my mental health. |
Also, the icons are created as hardlinks directly in the data portion of the deb file. In other words, this can't possibly be anything to do with post-install scripts or any other scripts being run on the end-user computer. Something is creating hardlinks on the builder computer and packaging them as hardlinks in the data portion of the deb file. |
Chiming in here as a user of beekeeper-studio, and this is blocking an install b/c /opt is on another drive. What is needed to get rid of the hardlinks? |
If
/opt
is on it's own device the DEB installer throws errors when creating hardlinks:This is present in the app I maintain (Beekeeper Studio) and found for other electron apps hosted on GitHub:
The text was updated successfully, but these errors were encountered: