heroic: nvm im just stupid

This commit is contained in:
2026-06-29 23:29:06 +02:00
parent cca8697293
commit 68b252982a
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
pkgname = "electron"
pkgver = "42.4.0"
pkgver = "42.4.0" # updatg heroic
Pkgver = pkgver[:2]
source = f"https://github.com/electron/electron/releases/download/v{pkgver}/electron-v{pkgver}-linux-x64.zip"
builddir = f"/tmp/fempkg/build/{pkgname}/{pkgname}-{pkgver}"
+6 -4
View File
@@ -1,5 +1,6 @@
pkgname = "heroic-games-launcher"
pkgname = "heroic-games-launcher" # NOTE update electron before updating ts
pkgver = "2.22.0"
electron_ver = "42"
source = f"https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/refs/tags/v{pkgver}.tar.gz"
builddir = f"/tmp/fempkg/build/{pkgname}/HeroicGamesLauncher-{pkgver}"
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
@@ -15,7 +16,9 @@ build = [
# 64-bit build
f"cd {builddir} && pnpm install",
f"cd {builddir} && pnpm dist:linux tar.xz",
f"cd {builddir} && pnpm download-helper-binaries",
f"cd {builddir} && ./node_modules/.bin/electron-vite build",
f"cd {builddir} && ./node_modules/.bin/electron-builder --linux --x64 --dir -c.electronDist=/usr/lib/electron-{electron_ver}/ -c.electronVersion=$(cat /usr/lib/electron-{electron_ver}/version)",
f"cd {builddir} && mkdir -p {destdir}/usr/lib/{pkgname} {destdir}/usr/bin && mv dist/linux-unpacked/* {destdir}/usr/lib/{pkgname} && "
f"ln -sf /usr/lib/{pkgname}/heroic {destdir}/usr/bin/heroic",
@@ -36,6 +39,5 @@ build = [
]
triggers = [
f"update-desktop-database",
f"cd /tmp && pip3 install legendary-gl"
f"update-desktop-database"
]