-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
"electron-builder": "21.2.0",
"electron-updater": "4.2.0"
build for deb app
some piece code in electron-builder.json
"linux": {
"icon": "img/",
{
"target": "deb",
"arch": ["x64"]
}],
"category": "System",
"publish": [
{
"provider":"generic",
"url":"http://xxx.xxx.xxx.xx:1053/linux/",
"channel": "latest"
}
]
}
i can create deb app, but it can not create latest.yml file, so i can not update app. so which produce this problem, the config problem of other problem?
ps:when target is AppImage, it can create latest.yml. but change target to deb can not create latest.yml。in my project, i just need to build deb app。Recently, i read the source code and find the solution on the internet, it seem like, when build deb app, it can not create latest.yml,so what should i do to config or other methods?
Activity
kzimny commentedon Feb 26, 2020
As explained in documentation the target on Linux should be set to
AppImage
. Did you already try to build with this option? I'm not familiar with Linux, I only read the note in the documentation. The latest.yml should be generated then.Sednaoui commentedon Feb 26, 2020
In my case, I have my Linux target as AppImage, and it is still not generating neither
latest-linux.yml
norapp-update.yml
. I am using a plain HTTP server. I tried to follow a workaround by adding a publish options specified for the build target (Linux) based on one of the comments, but it did not work for me.I am using electron-builder: 20.39.0
#2736
kzimny commentedon Feb 26, 2020
did you try to add the publish options with channel?
Sednaoui commentedon Feb 26, 2020
I did. I still have the same error message on my console:
"Error: Error: Cannot find channel "latest-linux.yml" update info: HttpError: 404 Not Found"
Update: I switched my machine to a mac from Linux and it generated all my
latest
files andapp-updates
, expect for theapp-update.yml
for Linux. It seems there is a problem generating the files for Linux.leejaygo commentedon Feb 27, 2020
leejaygo commentedon Feb 27, 2020
ps:when target is AppImage, it can create latest.yml. but change target to deb can not create latest.yml。in my project, i just need to build deb app。Recently, i read the source code and find the solution on the internet, it seem like, when build deb app, it can not create latest.yml,so what should i do to config or other methods?
Sednaoui commentedon Feb 27, 2020
@leejaygo does it create the
app-update.yml
file in your resources folder for AppImage linux?kzimny commentedon Feb 27, 2020
why in ressources folder? .yml is created in output directory defined in the build section of packege.json file.
Sednaoui commentedon Feb 27, 2020
I meant the resources folder in each target OS: linux-unpacked, win-unpacked, mac. In both mac and win-unpacked, I have a resource folder with app-update.yml inside, but not linux-unpacked.
I still don't know why it is not generated automatically. For now, I added a script that copies app-update.yml from win and add it to linux since it is the same file
stale commentedon Apr 27, 2020
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.
starhu521 commentedon Mar 5, 2021
hello, I have the same problem. It can't generate yml when set the target is deb for linux. In addition, I can't download when I set the target is AppImage. I got this error: #5678 (comment)
And I don't have any problems when target is nsis for windows.
mmaietta commentedon Mar 5, 2021
I was under the impression that the publish latest.yml was only generated for supported targets:
https://www.electron.build/auto-update
starhu521 commentedon Mar 6, 2021
Maybe, I just think those targets are default when I read the doc. Thanks.
kroko commentedon May 4, 2021
Actually having
app-update.yml
in non AppImage targets would be helpful nonetheless.Auto-update still looks for it under
resources/app-update.yml
if.checkForUpdates()
is called in non AppImage cases (say,deb
).Currently it would fail of course with
I mean, the logic for looking for
app-update.yml
is already there, it is not likeelectron-updater
internally does not look for it once.checkForUpdates()
is called if platform is nixlike andprocess.env.APPIMAGE
is not present.If such file existed
package
users could still utilise.checkForUpdates()
and onupdate-available
receive message - 'hey, update available, i just cannot auto update - you have to do it by yourself'. that would be helpful from user experience standpoint.Of course, some extra steps would be needed on non AppImage if
app-update.yml
was generated, that is - never try to actually download and install, just notify. So developer has to take care of it and assure something along these lines before first.checkForUpdates()
is calledaymengraoui commentedon Aug 1, 2022
any news about this issue ? :(