Package Details: heroic-games-launcher 2.16.1-1

Git Clone URL: https://aur.archlinux.org/heroic-games-launcher.git (read-only, click to copy)
Package Base: heroic-games-launcher
Description: Native GOG, Epic Games and Amazon games launcher for Linux
Upstream URL: https://heroicgameslauncher.com/
Licenses: GPL-3.0-only
Submitter: FabioLolix
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 28
Popularity: 1.65
First Submitted: 2022-07-18 20:20 (UTC)
Last Updated: 2025-03-23 21:51 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

tiziodcaio commented on 2025-04-15 07:31 (UTC)

I had issues with corepacker; with this patch it worked.

# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix

pkgname=heroic-games-launcher
pkgver=2.16.1
pkgrel=1
pkgdesc="Native GOG, Epic Games and Amazon games launcher for Linux"
arch=(x86_64)
url="https://heroicgameslauncher.com/"
license=(GPL-3.0-only)
_electron=electron31
depends=(which $_electron zlib gcc-libs glibc)
makedepends=(git pnpm npm python desktop-file-utils)
source=("git+https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher.git#tag=v${pkgver}")
sha256sums=('d83a38acf365c6ceb3fb2dacca38b79f7b0f4ccf0929b5c25a260d073297614f')

build() {
  cd HeroicGamesLauncher
  # HOME="${srcdir}/.electron-gyp" pnpm install

  pnpm run download-helper-binaries
  npx electron-vite build
  npx electron-builder --linux --x64 --dir -c.electronDist=/usr/lib/$_electron/ -c.electronVersion=$(cat /usr/lib/$_electron/version)
}

package() {
  cd "HeroicGamesLauncher"
  install -d "${pkgdir}/usr/lib/heroic"
  cp -rf dist/linux-unpacked/resources/app.asar{,.unpacked} "${pkgdir}/usr/lib/heroic/"
  rm -rf "${pkgdir}"/usr/lib/heroic/app.asar.unpacked/build/bin/x64/win32
  rm -rf "${pkgdir}"/usr/lib/heroic/app.asar.unpacked/build/bin/arm64
  install -Dm755 /dev/stdin "${pkgdir}/usr/bin/heroic" <<EOF
#!/usr/bin/bash
exec $_electron /usr/lib/heroic/app.asar "\$@"
EOF

  install -Dm644 flatpak/com.heroicgameslauncher.hgl.png -t "${pkgdir}/usr/share/pixmaps"
  install -Dm644 flatpak/templates/com.heroicgameslauncher.hgl.metainfo.xml.template "${pkgdir}"/usr/share/metainfo/com.heroicgameslauncher.hgl.metainfo.xml

  # fix icon on Gnome dock
  desktop-file-edit --set-key=Exec --set-value="heroic %U" --set-key=StartupWMClass --set-value=heroic flatpak/com.heroicgameslauncher.hgl.desktop
  install -Dm644 flatpak/com.heroicgameslauncher.hgl.desktop -t "${pkgdir}/usr/share/applications"
}

FabioLolix commented on 2025-03-02 14:00 (UTC)

@robindegen this is heroic-games-launcher not heroic-games-launcher-bin

anewson commented on 2025-02-26 16:12 (UTC)

newer electron version are not fully backwards compatible; heroic is currently using electron31, using electron34 introduced this bug: https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/issues/4357

using the binary package resolves this

smendez commented on 2025-01-20 01:19 (UTC)

@FabioLolix Thank you

FabioLolix commented on 2025-01-19 21:54 (UTC)

@smendez fixed

smendez commented on 2025-01-19 20:14 (UTC) (edited on 2025-01-19 20:19 (UTC) by smendez)

When I run (as an example):

xdg-open heroic://launch/gog/1482265668

I get this error:

kf.kio.core: "/usr/share/applications/com.heroicgameslauncher.hgl.desktop" contains supported protocols but doesn't use %u or %U in its Exec line! This is inconsistent.

If I edit the file and add %u it works of course, but it seems like the package should do this. This wasn't happening before which indicates that its probably a recently introduced requirement for KDE. Maybe adding %u will break it for other systems, so I am not sure what would be the appropriate fix.

Edit: It looks like the %U was there before and recent changes to the package broke this.

yochananmarqos commented on 2025-01-18 16:38 (UTC)

@FabioLolix: Changing the StartupWMClass value to 'heroic' resolves the issue. Remove the sed bit from the package function and do the following in the prepare function:

desktop-file-edit --set-key=Exec --set-value=heroic --set-key=StartupWMClass --set-value=heroic flatpak/com.heroicgameslauncher.hgl.desktop

FabioLolix commented on 2025-01-18 10:29 (UTC)

Latest version 2.15.2-4 needs its .desktop to be fixed for its icon to display properly in gnome dock

Changes in 2.15.2-4 is using default file names for those files, fixed the icon on Cinnamon, I don't have gnome or other DE to test on