Skip to content
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

Arch Linux pacman distribution incomplete, breaks auto update #8710

Closed
chrbayer84 opened this issue Nov 26, 2024 · 7 comments
Closed

Arch Linux pacman distribution incomplete, breaks auto update #8710

chrbayer84 opened this issue Nov 26, 2024 · 7 comments

Comments

@chrbayer84
Copy link

chrbayer84 commented Nov 26, 2024

  • Electron-Builder Version: 25.0.5
  • Node Version: 18.20.5
  • Electron Version: 31.0.2
  • Electron Type (current, beta, nightly): current
  • Electron-updater: 6.1.7
  • Target: Arch Linux/Pacman

The pacman build does not produce a latest-linux.yml manifest file (unlike the other targets like deb, rpm etc). That seems to break auto-update capabilities on Arch Linux. Our app auto-updates fine on Windows, Debian and RPM-based distros, however the updater does not find a new pacman distribution package and instead tries to download and install an rpm:

Output of auto-update on Arch Linux (Manjaro but vanilla Arch does the same):

13:30:02.184 › Checking for update
13:30:03.541 › Found version 2.241124.0 (url: GridTracker2-2.241124.0-x86_64.AppImage, GridTracker2-2.241124.0-amd64.deb, GridTracker2-2.241124.0-x86_64.rpm)
13:30:03.544 › Downloading update from GridTracker2-2.241124.0-x86_64.AppImage, GridTracker2-2.241124.0-amd64.deb, GridTracker2-2.241124.0-x86_64.rpm
13:30:03.551 › updater cache dir: /home/christian/.cache/gridtracker2-updater
13:30:05.317 › Update has already been downloaded to /home/christian/.cache/gridtracker2-updater/pending/GridTracker2-2.241124.0-x86_64.rpm).

We believe that the missing manifest is at least part of the problem. here is what it generates for a deb package:

~/Downloads/gridtracker2/dist $ ls
__appImage-x64     builder-effective-config.yaml      GridTracker2-2.241123.1-x64.pacman  linux-unpacked
builder-debug.yml  GridTracker2-2.241123.1-amd64.deb  latest-linux.yml
 ~/Downloads/gridtracker2/dist $ cat latest-linux.yml
version: 2.241123.1
files:
  - url: GridTracker2-2.241123.1-amd64.deb
    sha512: SsEKPLFcPdHzgS492F1WDCUrsEDJYUdaUX9AfQXGQIi23DhJptP8PCVmFEeykB6D3e2KJxEV1LWQEwhqb0/piQ==
    size: 96541614
path: GridTracker2-2.241123.1-amd64.deb
sha512: SsEKPLFcPdHzgS492F1WDCUrsEDJYUdaUX9AfQXGQIi23DhJptP8PCVmFEeykB6D3e2KJxEV1LWQEwhqb0/piQ==
releaseDate: '2024-11-26T20:13:25.394Z'

relevant section in electron-builder.yml, full file: https://gitlab.com/gridtracker.org/gridtracker2/-/blob/main/electron-builder.yml?ref_type=heads

[..]
linux:
  target:
    - deb
    - pacman
    # freebsd # These aren't true FreeBSD builds, it's a Lin AMD64 binary in FreeBSD wrapper which isn't BSD legal
    # requires building on a linux machine or a multipass.run account
    #- snap
  maintainer: gridtracker.org
  category: Utility
  artifactName: ${name}-${version}-${arch}.${ext}
flatpak:
  runtimeVersion: 23.08
npmRebuild: false
publish:
  provider: generic
  url: https://download2.gridtracker.org
@chrbayer84
Copy link
Author

Looks like this ticket might solve it? testing.. #8394

@chrbayer84
Copy link
Author

Looks like this ticket might solve it? testing.. #8394

Nope. still no dist/latest-linux.yml. Auto-update doesn't seem to work either. pinned the following artifacts:

grep app-builder-lib  package-lock.json
        "app-builder-lib": "26.0.0-alpha.6",
    "node_modules/app-builder-lib": {
      "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-26.0.0-alpha.6.tgz",
[..]
grep electron-updater package-lock.json
        "electron-updater": "^6.4.0-alpha.0",
    "node_modules/electron-updater": {
      "resolved": "https://registry.npmjs.org/electron-updater/-/electron-updater-6.4.0-alpha.0.tgz",

@chrbayer84
Copy link
Author

@xyloflake FYI

@chrbayer84
Copy link
Author

updated electron-builder too and now get the manifest. Thanks @xyloflake!

@xyloflake
Copy link
Contributor

updated electron-builder too and now get the manifest. Thanks @xyloflake!

Most welcome @chrbayer84 !

@chrbayer84
Copy link
Author

@xyloflake any ETA for when this will be released?

@xyloflake
Copy link
Contributor

@chrbayer84 I don't think it will be very soon. v26 has - as the version number suggests- breaking changes. Mostly with the rebuilder and stuff. I'm guessing at least 3 to 5 months? @mmaietta might be able to answer approximately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants