Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: HeroicGamesLauncher-2.8.0
@ 2023-06-01  2:27 sirkhancision
  2023-06-01  2:46 ` [PR PATCH] [Updated] " sirkhancision
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: sirkhancision @ 2023-06-01  2:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 758 bytes --]

There is a new pull request by sirkhancision against master on the void-packages repository

https://github.com/sirkhancision/void-packages HeroicGamesLauncher
https://github.com/void-linux/void-packages/pull/44207

New package: HeroicGamesLauncher-2.8.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc
- I built this PR locally for these architectures):
  - i686


A patch file from https://github.com/void-linux/void-packages/pull/44207.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-HeroicGamesLauncher-44207.patch --]
[-- Type: text/x-diff, Size: 2316 bytes --]

From 11819c288452db1ccebb71b8b6ee2ae0deb36f5b Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 31 May 2023 23:02:43 -0300
Subject: [PATCH] New package: HeroicGamesLauncher-2.8.0

---
 .../files/HeroicGamesLauncher.desktop         | 10 +++++++
 srcpkgs/HeroicGamesLauncher/template          | 29 +++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 srcpkgs/HeroicGamesLauncher/files/HeroicGamesLauncher.desktop
 create mode 100644 srcpkgs/HeroicGamesLauncher/template

diff --git a/srcpkgs/HeroicGamesLauncher/files/HeroicGamesLauncher.desktop b/srcpkgs/HeroicGamesLauncher/files/HeroicGamesLauncher.desktop
new file mode 100644
index 000000000000..1c5a99ad5d3a
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/files/HeroicGamesLauncher.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Heroic Games Launcher
+Exec=heroic %U
+Terminal=false
+Type=Application
+Icon=heroic
+StartupWMClass=Heroic
+Comment=Open source launcher for GOG and Epic Games
+MimeType=x-scheme-handler/heroic;
+Categories=Game;
diff --git a/srcpkgs/HeroicGamesLauncher/template b/srcpkgs/HeroicGamesLauncher/template
new file mode 100644
index 000000000000..f66f34e6e754
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/template
@@ -0,0 +1,29 @@
+# Template file for 'HeroicGamesLauncher'
+pkgname=HeroicGamesLauncher
+version=2.8.0
+revision=1
+hostmakedepends="nodejs python3 yarn"
+checkdepends="tar xz"
+short_desc="Open source launcher for GOG and Epic Games"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
+distfiles="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/v${version}.tar.gz"
+checksum=59f068d6ba7e6c9c5d3c08f06b4cee23f07452777b9edb8baa61895fa9f40320
+nopie_files="/opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
+	/opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary"
+
+do_build() {
+	yarn
+	yarn dist:linux tar.xz
+}
+
+do_install() {
+	vmkdir opt/heroic
+	vmkdir usr/bin
+	vcopy dist/linux-unpacked/* opt/heroic
+	ln -sf /opt/heroic/heroic "${DESTDIR}/usr/bin/heroic"
+
+	vinstall public/icon.png 644 usr/share/pixmaps heroic.png
+	vinstall "${FILESDIR}/HeroicGamesLauncher.desktop" 644 usr/share/applications
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
@ 2023-06-01  2:46 ` sirkhancision
  2023-06-27 20:57 ` sirkhancision
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sirkhancision @ 2023-06-01  2:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 763 bytes --]

There is an updated pull request by sirkhancision against master on the void-packages repository

https://github.com/sirkhancision/void-packages HeroicGamesLauncher
https://github.com/void-linux/void-packages/pull/44207

New package: HeroicGamesLauncher-2.8.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc
- I built this PR locally for these architectures):
  - i686


A patch file from https://github.com/void-linux/void-packages/pull/44207.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-HeroicGamesLauncher-44207.patch --]
[-- Type: text/x-diff, Size: 2332 bytes --]

From f94f044883b5402ee99b684eb78ef48bfdabac2a Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 31 May 2023 23:02:43 -0300
Subject: [PATCH] New package: HeroicGamesLauncher-2.8.0

---
 .../files/HeroicGamesLauncher.desktop         | 10 +++++++
 srcpkgs/HeroicGamesLauncher/template          | 30 +++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 srcpkgs/HeroicGamesLauncher/files/HeroicGamesLauncher.desktop
 create mode 100644 srcpkgs/HeroicGamesLauncher/template

diff --git a/srcpkgs/HeroicGamesLauncher/files/HeroicGamesLauncher.desktop b/srcpkgs/HeroicGamesLauncher/files/HeroicGamesLauncher.desktop
new file mode 100644
index 000000000000..1c5a99ad5d3a
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/files/HeroicGamesLauncher.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Heroic Games Launcher
+Exec=heroic %U
+Terminal=false
+Type=Application
+Icon=heroic
+StartupWMClass=Heroic
+Comment=Open source launcher for GOG and Epic Games
+MimeType=x-scheme-handler/heroic;
+Categories=Game;
diff --git a/srcpkgs/HeroicGamesLauncher/template b/srcpkgs/HeroicGamesLauncher/template
new file mode 100644
index 000000000000..abe51489ef43
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/template
@@ -0,0 +1,30 @@
+# Template file for 'HeroicGamesLauncher'
+pkgname=HeroicGamesLauncher
+version=2.8.0
+revision=1
+archs="x86_64"
+hostmakedepends="nodejs python3 yarn"
+checkdepends="tar xz"
+short_desc="Open source launcher for GOG and Epic Games"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
+distfiles="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/v${version}.tar.gz"
+checksum=59f068d6ba7e6c9c5d3c08f06b4cee23f07452777b9edb8baa61895fa9f40320
+nopie_files="/opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
+	/opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary"
+
+do_build() {
+	yarn
+	yarn dist:linux tar.xz
+}
+
+do_install() {
+	vmkdir opt/heroic
+	vmkdir usr/bin
+	vcopy dist/linux-unpacked/* opt/heroic
+	ln -sf /opt/heroic/heroic "${DESTDIR}/usr/bin/heroic"
+
+	vinstall public/icon.png 644 usr/share/pixmaps heroic.png
+	vinstall "${FILESDIR}/HeroicGamesLauncher.desktop" 644 usr/share/applications
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
  2023-06-01  2:46 ` [PR PATCH] [Updated] " sirkhancision
@ 2023-06-27 20:57 ` sirkhancision
  2023-06-27 21:06 ` sirkhancision
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sirkhancision @ 2023-06-27 20:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

There is an updated pull request by sirkhancision against master on the void-packages repository

https://github.com/sirkhancision/void-packages HeroicGamesLauncher
https://github.com/void-linux/void-packages/pull/44207

New package: HeroicGamesLauncher-2.8.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/44207.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-HeroicGamesLauncher-44207.patch --]
[-- Type: text/x-diff, Size: 5416 bytes --]

From 9bdce2dccc6267c61385218cd6008fe30886c277 Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 31 May 2023 23:02:43 -0300
Subject: [PATCH] New package: HeroicGamesLauncher-2.8.0

---
 srcpkgs/HeroicGamesLauncher/files/heroic-run  |  3 ++
 .../patches/electron-is-dev-env.patch         | 13 +++++
 srcpkgs/HeroicGamesLauncher/template          | 53 +++++++++++++++++++
 srcpkgs/heroic-gogdl/template                 | 20 +++++++
 4 files changed, 89 insertions(+)
 create mode 100644 srcpkgs/HeroicGamesLauncher/files/heroic-run
 create mode 100644 srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
 create mode 100644 srcpkgs/HeroicGamesLauncher/template
 create mode 100644 srcpkgs/heroic-gogdl/template

diff --git a/srcpkgs/HeroicGamesLauncher/files/heroic-run b/srcpkgs/HeroicGamesLauncher/files/heroic-run
new file mode 100644
index 000000000000..a6191f36ad8e
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/files/heroic-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ELECTRON_IS_DEV=0 exec electron24 /usr/lib/HeroicGamesLauncher/resources/app.asar "$@"
diff --git a/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
new file mode 100644
index 000000000000..dd9e5e52a3d8
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
@@ -0,0 +1,13 @@
+--- a/src/backend/main.ts
++++ b/src/backend/main.ts
+@@ -208,7 +208,9 @@ async function initializeWindow(): Promi
+     detectVCRedist(mainWindow)
+   }
+ 
+-  if (!app.isPackaged && process.env.CI !== 'e2e') {
++  if (!app.isPackaged &&
++      process.env.CI !== 'e2e' &&
++      process.env.HEROIC_NO_REACT_DEVTOOLS != undefined) {
+     if (!process.env.HEROIC_NO_REACT_DEVTOOLS) {
+       import('electron-devtools-installer').then((devtools) => {
+         const { default: installExtension, REACT_DEVELOPER_TOOLS } = devtools
diff --git a/srcpkgs/HeroicGamesLauncher/template b/srcpkgs/HeroicGamesLauncher/template
new file mode 100644
index 000000000000..6030e6aeed54
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/template
@@ -0,0 +1,53 @@
+# Template file for 'HeroicGamesLauncher'
+pkgname=HeroicGamesLauncher
+version=2.8.0
+revision=1
+# archs="x86_64"
+_electron_version=24
+hostmakedepends="electron${_electron_version} jq nodejs python3 yarn"
+depends="electron${_electron_version} legendary heroic-gogdl"
+checkdepends="tar xz"
+short_desc="Open source launcher for GOG and Epic Games"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
+distfiles="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/v${version}.tar.gz"
+checksum=59f068d6ba7e6c9c5d3c08f06b4cee23f07452777b9edb8baa61895fa9f40320
+nopie_files="/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/gogdl
+/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/legendary"
+
+pre_build() {
+	jq 'del(.scripts.prepare)' package.json >tmp.json
+	mv {tmp,package}.json
+}
+
+do_build() {
+	export ELECTRON_SKIP_BINARY_DOWNLOAD=1
+	export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
+
+	electronDist="/usr/lib/electron${_electron_version}"
+	electronVer="$(sed s/^v// $electronDist/version)"
+
+	yarn install
+	yarn dist:linux --dir -c.electronDist="$electronDist" -c.electronVersion="$electronVer"
+}
+
+do_install() {
+	heroic_name="com.heroicgameslauncher.hgl"
+
+	vmkdir usr/lib/HeroicGamesLauncher/resources
+
+	vcopy dist/linux-unpacked/resources/app.asar usr/lib/HeroicGamesLauncher/resources
+	vcopy dist/linux-unpacked/resources/app.asar.unpacked usr/lib/HeroicGamesLauncher/resources
+	vcopy build /usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked
+	rm -rf "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/{linux/{gogdl,legendary},darwin,win32}"
+	ln -sf "${DESTDIR}/usr/bin/{gogdl,legendary}" "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux"
+	ln -sf build "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/public"
+
+	vinstall flatpak/$heroic_name.desktop 644 usr/share/applications
+	vinstall build/icon.png 644 usr/share/icons/hicolor/512x512/apps/$heroic_name.png
+	vinstall flatpak/$heroic_name.png 644 usr/share/icons/hicolor/128x128/apps
+
+	sed -i "s/@@VERSION@@/$_electron_version/" "${FILESDIR}/heroic-run"
+	vbin "${FILESDIR}/heroic-run"
+}
diff --git a/srcpkgs/heroic-gogdl/template b/srcpkgs/heroic-gogdl/template
new file mode 100644
index 000000000000..d9861534dfd4
--- /dev/null
+++ b/srcpkgs/heroic-gogdl/template
@@ -0,0 +1,20 @@
+# Template file for 'heroic-gogdl'
+pkgname=heroic-gogdl
+version=0.4
+revision=1
+hostmakedepends="python3-setuptools python3-build python3-installer python3-wheel"
+depends="python3-requests"
+short_desc="GOG Downloading module for Heroic Games Launcher"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/heroic-gogdl"
+distfiles="https://github.com/Heroic-Games-Launcher/heroic-gogdl/archive/refs/tags/v${version}.tar.gz"
+checksum=10103a398d6696b8f0891ce25a0ef85a59fb6bd985511c81798231a3f0b49fc5
+
+do_build() {
+	python3 -m build --wheel --skip-dependency-check --no-isolation
+}
+
+do_install() {
+	python3 -m installer --destdir "${DESTDIR}" dist/*.whl
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
  2023-06-01  2:46 ` [PR PATCH] [Updated] " sirkhancision
  2023-06-27 20:57 ` sirkhancision
@ 2023-06-27 21:06 ` sirkhancision
  2023-06-27 21:18 ` sirkhancision
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sirkhancision @ 2023-06-27 21:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

There is an updated pull request by sirkhancision against master on the void-packages repository

https://github.com/sirkhancision/void-packages HeroicGamesLauncher
https://github.com/void-linux/void-packages/pull/44207

New package: HeroicGamesLauncher-2.8.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/44207.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-HeroicGamesLauncher-44207.patch --]
[-- Type: text/x-diff, Size: 5415 bytes --]

From 8634f3d5427edf404bd20a08e56e9c0cd982e14f Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 31 May 2023 23:02:43 -0300
Subject: [PATCH] New package: HeroicGamesLauncher-2.8.0

---
 srcpkgs/HeroicGamesLauncher/files/heroic-run  |  3 ++
 .../patches/electron-is-dev-env.patch         | 13 +++++
 srcpkgs/HeroicGamesLauncher/template          | 53 +++++++++++++++++++
 srcpkgs/heroic-gogdl/template                 | 20 +++++++
 4 files changed, 89 insertions(+)
 create mode 100644 srcpkgs/HeroicGamesLauncher/files/heroic-run
 create mode 100644 srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
 create mode 100644 srcpkgs/HeroicGamesLauncher/template
 create mode 100644 srcpkgs/heroic-gogdl/template

diff --git a/srcpkgs/HeroicGamesLauncher/files/heroic-run b/srcpkgs/HeroicGamesLauncher/files/heroic-run
new file mode 100644
index 000000000000..a6191f36ad8e
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/files/heroic-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ELECTRON_IS_DEV=0 exec electron24 /usr/lib/HeroicGamesLauncher/resources/app.asar "$@"
diff --git a/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
new file mode 100644
index 000000000000..dd9e5e52a3d8
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
@@ -0,0 +1,13 @@
+--- a/src/backend/main.ts
++++ b/src/backend/main.ts
+@@ -208,7 +208,9 @@ async function initializeWindow(): Promi
+     detectVCRedist(mainWindow)
+   }
+ 
+-  if (!app.isPackaged && process.env.CI !== 'e2e') {
++  if (!app.isPackaged &&
++      process.env.CI !== 'e2e' &&
++      process.env.HEROIC_NO_REACT_DEVTOOLS != undefined) {
+     if (!process.env.HEROIC_NO_REACT_DEVTOOLS) {
+       import('electron-devtools-installer').then((devtools) => {
+         const { default: installExtension, REACT_DEVELOPER_TOOLS } = devtools
diff --git a/srcpkgs/HeroicGamesLauncher/template b/srcpkgs/HeroicGamesLauncher/template
new file mode 100644
index 000000000000..05a52e00239e
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/template
@@ -0,0 +1,53 @@
+# Template file for 'HeroicGamesLauncher'
+pkgname=HeroicGamesLauncher
+version=2.8.0
+revision=1
+archs="x86_64*"
+_electron_version=24
+hostmakedepends="electron${_electron_version} jq nodejs python3 yarn"
+depends="electron${_electron_version} legendary heroic-gogdl"
+checkdepends="tar xz"
+short_desc="Open source launcher for GOG and Epic Games"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
+distfiles="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/v${version}.tar.gz"
+checksum=59f068d6ba7e6c9c5d3c08f06b4cee23f07452777b9edb8baa61895fa9f40320
+nopie_files="/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/gogdl
+/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/legendary"
+
+pre_build() {
+	jq 'del(.scripts.prepare)' package.json >tmp.json
+	mv {tmp,package}.json
+}
+
+do_build() {
+	export ELECTRON_SKIP_BINARY_DOWNLOAD=1
+	export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
+
+	electronDist="/usr/lib/electron${_electron_version}"
+	electronVer="$(sed s/^v// $electronDist/version)"
+
+	yarn install
+	yarn dist:linux --dir -c.electronDist="$electronDist" -c.electronVersion="$electronVer"
+}
+
+do_install() {
+	heroic_name="com.heroicgameslauncher.hgl"
+
+	vmkdir usr/lib/HeroicGamesLauncher/resources
+
+	vcopy dist/linux-unpacked/resources/app.asar usr/lib/HeroicGamesLauncher/resources
+	vcopy dist/linux-unpacked/resources/app.asar.unpacked usr/lib/HeroicGamesLauncher/resources
+	vcopy build /usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked
+	rm -rf "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/{linux/{gogdl,legendary},darwin,win32}"
+	ln -sf "${DESTDIR}/usr/bin/{gogdl,legendary}" "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux"
+	ln -sf build "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/public"
+
+	vinstall flatpak/$heroic_name.desktop 644 usr/share/applications
+	vinstall build/icon.png 644 usr/share/icons/hicolor/512x512/apps/$heroic_name.png
+	vinstall flatpak/$heroic_name.png 644 usr/share/icons/hicolor/128x128/apps
+
+	sed -i "s/@@VERSION@@/$_electron_version/" "${FILESDIR}/heroic-run"
+	vbin "${FILESDIR}/heroic-run"
+}
diff --git a/srcpkgs/heroic-gogdl/template b/srcpkgs/heroic-gogdl/template
new file mode 100644
index 000000000000..d9861534dfd4
--- /dev/null
+++ b/srcpkgs/heroic-gogdl/template
@@ -0,0 +1,20 @@
+# Template file for 'heroic-gogdl'
+pkgname=heroic-gogdl
+version=0.4
+revision=1
+hostmakedepends="python3-setuptools python3-build python3-installer python3-wheel"
+depends="python3-requests"
+short_desc="GOG Downloading module for Heroic Games Launcher"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/heroic-gogdl"
+distfiles="https://github.com/Heroic-Games-Launcher/heroic-gogdl/archive/refs/tags/v${version}.tar.gz"
+checksum=10103a398d6696b8f0891ce25a0ef85a59fb6bd985511c81798231a3f0b49fc5
+
+do_build() {
+	python3 -m build --wheel --skip-dependency-check --no-isolation
+}
+
+do_install() {
+	python3 -m installer --destdir "${DESTDIR}" dist/*.whl
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
                   ` (2 preceding siblings ...)
  2023-06-27 21:06 ` sirkhancision
@ 2023-06-27 21:18 ` sirkhancision
  2023-06-27 21:49 ` sirkhancision
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sirkhancision @ 2023-06-27 21:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

There is an updated pull request by sirkhancision against master on the void-packages repository

https://github.com/sirkhancision/void-packages HeroicGamesLauncher
https://github.com/void-linux/void-packages/pull/44207

New package: HeroicGamesLauncher-2.8.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/44207.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-HeroicGamesLauncher-44207.patch --]
[-- Type: text/x-diff, Size: 5416 bytes --]

From c9045cf4e377063dad5591cb65e18f08ae8143d7 Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 31 May 2023 23:02:43 -0300
Subject: [PATCH] New package: HeroicGamesLauncher-2.8.0

---
 srcpkgs/HeroicGamesLauncher/files/heroic-run  |  3 ++
 .../patches/electron-is-dev-env.patch         | 13 +++++
 srcpkgs/HeroicGamesLauncher/template          | 53 +++++++++++++++++++
 srcpkgs/heroic-gogdl/template                 | 20 +++++++
 4 files changed, 89 insertions(+)
 create mode 100644 srcpkgs/HeroicGamesLauncher/files/heroic-run
 create mode 100644 srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
 create mode 100644 srcpkgs/HeroicGamesLauncher/template
 create mode 100644 srcpkgs/heroic-gogdl/template

diff --git a/srcpkgs/HeroicGamesLauncher/files/heroic-run b/srcpkgs/HeroicGamesLauncher/files/heroic-run
new file mode 100644
index 000000000000..23d4c0142727
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/files/heroic-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ELECTRON_IS_DEV=0 exec @@VERSION@@ /usr/lib/HeroicGamesLauncher/resources/app.asar "$@"
diff --git a/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
new file mode 100644
index 000000000000..dd9e5e52a3d8
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
@@ -0,0 +1,13 @@
+--- a/src/backend/main.ts
++++ b/src/backend/main.ts
+@@ -208,7 +208,9 @@ async function initializeWindow(): Promi
+     detectVCRedist(mainWindow)
+   }
+ 
+-  if (!app.isPackaged && process.env.CI !== 'e2e') {
++  if (!app.isPackaged &&
++      process.env.CI !== 'e2e' &&
++      process.env.HEROIC_NO_REACT_DEVTOOLS != undefined) {
+     if (!process.env.HEROIC_NO_REACT_DEVTOOLS) {
+       import('electron-devtools-installer').then((devtools) => {
+         const { default: installExtension, REACT_DEVELOPER_TOOLS } = devtools
diff --git a/srcpkgs/HeroicGamesLauncher/template b/srcpkgs/HeroicGamesLauncher/template
new file mode 100644
index 000000000000..05a52e00239e
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/template
@@ -0,0 +1,53 @@
+# Template file for 'HeroicGamesLauncher'
+pkgname=HeroicGamesLauncher
+version=2.8.0
+revision=1
+archs="x86_64*"
+_electron_version=24
+hostmakedepends="electron${_electron_version} jq nodejs python3 yarn"
+depends="electron${_electron_version} legendary heroic-gogdl"
+checkdepends="tar xz"
+short_desc="Open source launcher for GOG and Epic Games"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
+distfiles="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/v${version}.tar.gz"
+checksum=59f068d6ba7e6c9c5d3c08f06b4cee23f07452777b9edb8baa61895fa9f40320
+nopie_files="/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/gogdl
+/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/legendary"
+
+pre_build() {
+	jq 'del(.scripts.prepare)' package.json >tmp.json
+	mv {tmp,package}.json
+}
+
+do_build() {
+	export ELECTRON_SKIP_BINARY_DOWNLOAD=1
+	export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
+
+	electronDist="/usr/lib/electron${_electron_version}"
+	electronVer="$(sed s/^v// $electronDist/version)"
+
+	yarn install
+	yarn dist:linux --dir -c.electronDist="$electronDist" -c.electronVersion="$electronVer"
+}
+
+do_install() {
+	heroic_name="com.heroicgameslauncher.hgl"
+
+	vmkdir usr/lib/HeroicGamesLauncher/resources
+
+	vcopy dist/linux-unpacked/resources/app.asar usr/lib/HeroicGamesLauncher/resources
+	vcopy dist/linux-unpacked/resources/app.asar.unpacked usr/lib/HeroicGamesLauncher/resources
+	vcopy build /usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked
+	rm -rf "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/{linux/{gogdl,legendary},darwin,win32}"
+	ln -sf "${DESTDIR}/usr/bin/{gogdl,legendary}" "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux"
+	ln -sf build "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/public"
+
+	vinstall flatpak/$heroic_name.desktop 644 usr/share/applications
+	vinstall build/icon.png 644 usr/share/icons/hicolor/512x512/apps/$heroic_name.png
+	vinstall flatpak/$heroic_name.png 644 usr/share/icons/hicolor/128x128/apps
+
+	sed -i "s/@@VERSION@@/$_electron_version/" "${FILESDIR}/heroic-run"
+	vbin "${FILESDIR}/heroic-run"
+}
diff --git a/srcpkgs/heroic-gogdl/template b/srcpkgs/heroic-gogdl/template
new file mode 100644
index 000000000000..d9861534dfd4
--- /dev/null
+++ b/srcpkgs/heroic-gogdl/template
@@ -0,0 +1,20 @@
+# Template file for 'heroic-gogdl'
+pkgname=heroic-gogdl
+version=0.4
+revision=1
+hostmakedepends="python3-setuptools python3-build python3-installer python3-wheel"
+depends="python3-requests"
+short_desc="GOG Downloading module for Heroic Games Launcher"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/heroic-gogdl"
+distfiles="https://github.com/Heroic-Games-Launcher/heroic-gogdl/archive/refs/tags/v${version}.tar.gz"
+checksum=10103a398d6696b8f0891ce25a0ef85a59fb6bd985511c81798231a3f0b49fc5
+
+do_build() {
+	python3 -m build --wheel --skip-dependency-check --no-isolation
+}
+
+do_install() {
+	python3 -m installer --destdir "${DESTDIR}" dist/*.whl
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
                   ` (3 preceding siblings ...)
  2023-06-27 21:18 ` sirkhancision
@ 2023-06-27 21:49 ` sirkhancision
  2023-06-28 15:22 ` [PR REVIEW] " Duncaen
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sirkhancision @ 2023-06-27 21:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

New comment by sirkhancision on void-packages repository

https://github.com/void-linux/void-packages/pull/44207#issuecomment-1610265733

Comment:
Changed from using the pre-compiled electron binaries to using the binaries from the package. Also made it use packages for legendary and gogdl.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR REVIEW] New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
                   ` (4 preceding siblings ...)
  2023-06-27 21:49 ` sirkhancision
@ 2023-06-28 15:22 ` Duncaen
  2023-06-28 15:37 ` [PR PATCH] [Updated] " sirkhancision
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Duncaen @ 2023-06-28 15:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/44207#discussion_r1245397269

Comment:
Indent here with one space when splitting values in double quotes into multiple lines.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
                   ` (5 preceding siblings ...)
  2023-06-28 15:22 ` [PR REVIEW] " Duncaen
@ 2023-06-28 15:37 ` sirkhancision
  2023-07-01  1:05 ` sirkhancision
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sirkhancision @ 2023-06-28 15:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

There is an updated pull request by sirkhancision against master on the void-packages repository

https://github.com/sirkhancision/void-packages HeroicGamesLauncher
https://github.com/void-linux/void-packages/pull/44207

New package: HeroicGamesLauncher-2.8.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/44207.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-HeroicGamesLauncher-44207.patch --]
[-- Type: text/x-diff, Size: 5666 bytes --]

From 72b4b201dc2d000d72d896830048fedf2c9bf30d Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 31 May 2023 23:02:43 -0300
Subject: [PATCH 1/2] New package: HeroicGamesLauncher-2.8.0

---
 srcpkgs/HeroicGamesLauncher/files/heroic-run  |  3 ++
 .../patches/electron-is-dev-env.patch         | 13 +++++
 srcpkgs/HeroicGamesLauncher/template          | 53 +++++++++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/HeroicGamesLauncher/files/heroic-run
 create mode 100644 srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
 create mode 100644 srcpkgs/HeroicGamesLauncher/template

diff --git a/srcpkgs/HeroicGamesLauncher/files/heroic-run b/srcpkgs/HeroicGamesLauncher/files/heroic-run
new file mode 100644
index 000000000000..23d4c0142727
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/files/heroic-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ELECTRON_IS_DEV=0 exec @@VERSION@@ /usr/lib/HeroicGamesLauncher/resources/app.asar "$@"
diff --git a/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
new file mode 100644
index 000000000000..dd9e5e52a3d8
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
@@ -0,0 +1,13 @@
+--- a/src/backend/main.ts
++++ b/src/backend/main.ts
+@@ -208,7 +208,9 @@ async function initializeWindow(): Promi
+     detectVCRedist(mainWindow)
+   }
+ 
+-  if (!app.isPackaged && process.env.CI !== 'e2e') {
++  if (!app.isPackaged &&
++      process.env.CI !== 'e2e' &&
++      process.env.HEROIC_NO_REACT_DEVTOOLS != undefined) {
+     if (!process.env.HEROIC_NO_REACT_DEVTOOLS) {
+       import('electron-devtools-installer').then((devtools) => {
+         const { default: installExtension, REACT_DEVELOPER_TOOLS } = devtools
diff --git a/srcpkgs/HeroicGamesLauncher/template b/srcpkgs/HeroicGamesLauncher/template
new file mode 100644
index 000000000000..05a52e00239e
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/template
@@ -0,0 +1,53 @@
+# Template file for 'HeroicGamesLauncher'
+pkgname=HeroicGamesLauncher
+version=2.8.0
+revision=1
+archs="x86_64*"
+_electron_version=24
+hostmakedepends="electron${_electron_version} jq nodejs python3 yarn"
+depends="electron${_electron_version} legendary heroic-gogdl"
+checkdepends="tar xz"
+short_desc="Open source launcher for GOG and Epic Games"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
+distfiles="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/v${version}.tar.gz"
+checksum=59f068d6ba7e6c9c5d3c08f06b4cee23f07452777b9edb8baa61895fa9f40320
+nopie_files="/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/gogdl
+/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/legendary"
+
+pre_build() {
+	jq 'del(.scripts.prepare)' package.json >tmp.json
+	mv {tmp,package}.json
+}
+
+do_build() {
+	export ELECTRON_SKIP_BINARY_DOWNLOAD=1
+	export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
+
+	electronDist="/usr/lib/electron${_electron_version}"
+	electronVer="$(sed s/^v// $electronDist/version)"
+
+	yarn install
+	yarn dist:linux --dir -c.electronDist="$electronDist" -c.electronVersion="$electronVer"
+}
+
+do_install() {
+	heroic_name="com.heroicgameslauncher.hgl"
+
+	vmkdir usr/lib/HeroicGamesLauncher/resources
+
+	vcopy dist/linux-unpacked/resources/app.asar usr/lib/HeroicGamesLauncher/resources
+	vcopy dist/linux-unpacked/resources/app.asar.unpacked usr/lib/HeroicGamesLauncher/resources
+	vcopy build /usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked
+	rm -rf "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/{linux/{gogdl,legendary},darwin,win32}"
+	ln -sf "${DESTDIR}/usr/bin/{gogdl,legendary}" "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux"
+	ln -sf build "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/public"
+
+	vinstall flatpak/$heroic_name.desktop 644 usr/share/applications
+	vinstall build/icon.png 644 usr/share/icons/hicolor/512x512/apps/$heroic_name.png
+	vinstall flatpak/$heroic_name.png 644 usr/share/icons/hicolor/128x128/apps
+
+	sed -i "s/@@VERSION@@/$_electron_version/" "${FILESDIR}/heroic-run"
+	vbin "${FILESDIR}/heroic-run"
+}

From 44901eec6e5ef0833a354a8a107875012731c80c Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 28 Jun 2023 12:26:50 -0300
Subject: [PATCH 2/2] New package: heroic-gogdl-0.4

---
 srcpkgs/heroic-gogdl/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/heroic-gogdl/template

diff --git a/srcpkgs/heroic-gogdl/template b/srcpkgs/heroic-gogdl/template
new file mode 100644
index 000000000000..d9861534dfd4
--- /dev/null
+++ b/srcpkgs/heroic-gogdl/template
@@ -0,0 +1,20 @@
+# Template file for 'heroic-gogdl'
+pkgname=heroic-gogdl
+version=0.4
+revision=1
+hostmakedepends="python3-setuptools python3-build python3-installer python3-wheel"
+depends="python3-requests"
+short_desc="GOG Downloading module for Heroic Games Launcher"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/heroic-gogdl"
+distfiles="https://github.com/Heroic-Games-Launcher/heroic-gogdl/archive/refs/tags/v${version}.tar.gz"
+checksum=10103a398d6696b8f0891ce25a0ef85a59fb6bd985511c81798231a3f0b49fc5
+
+do_build() {
+	python3 -m build --wheel --skip-dependency-check --no-isolation
+}
+
+do_install() {
+	python3 -m installer --destdir "${DESTDIR}" dist/*.whl
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
                   ` (6 preceding siblings ...)
  2023-06-28 15:37 ` [PR PATCH] [Updated] " sirkhancision
@ 2023-07-01  1:05 ` sirkhancision
  2023-07-26 14:41 ` Bnyro
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sirkhancision @ 2023-07-01  1:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

There is an updated pull request by sirkhancision against master on the void-packages repository

https://github.com/sirkhancision/void-packages HeroicGamesLauncher
https://github.com/void-linux/void-packages/pull/44207

New package: HeroicGamesLauncher-2.8.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/44207.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-HeroicGamesLauncher-44207.patch --]
[-- Type: text/x-diff, Size: 5685 bytes --]

From ceb1b3ef6725493bf564b9149a0efa24577e8ac2 Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 31 May 2023 23:02:43 -0300
Subject: [PATCH 1/2] New package: HeroicGamesLauncher-2.8.0

---
 srcpkgs/HeroicGamesLauncher/files/heroic-run  |  3 ++
 .../patches/electron-is-dev-env.patch         | 13 +++++
 srcpkgs/HeroicGamesLauncher/template          | 53 +++++++++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/HeroicGamesLauncher/files/heroic-run
 create mode 100644 srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
 create mode 100644 srcpkgs/HeroicGamesLauncher/template

diff --git a/srcpkgs/HeroicGamesLauncher/files/heroic-run b/srcpkgs/HeroicGamesLauncher/files/heroic-run
new file mode 100644
index 000000000000..c3b0dd206482
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/files/heroic-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ELECTRON_IS_DEV=0 exec electron@@VERSION@@ /usr/lib/HeroicGamesLauncher/resources/app.asar "$@"
diff --git a/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
new file mode 100644
index 000000000000..dd9e5e52a3d8
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
@@ -0,0 +1,13 @@
+--- a/src/backend/main.ts
++++ b/src/backend/main.ts
+@@ -208,7 +208,9 @@ async function initializeWindow(): Promi
+     detectVCRedist(mainWindow)
+   }
+ 
+-  if (!app.isPackaged && process.env.CI !== 'e2e') {
++  if (!app.isPackaged &&
++      process.env.CI !== 'e2e' &&
++      process.env.HEROIC_NO_REACT_DEVTOOLS != undefined) {
+     if (!process.env.HEROIC_NO_REACT_DEVTOOLS) {
+       import('electron-devtools-installer').then((devtools) => {
+         const { default: installExtension, REACT_DEVELOPER_TOOLS } = devtools
diff --git a/srcpkgs/HeroicGamesLauncher/template b/srcpkgs/HeroicGamesLauncher/template
new file mode 100644
index 000000000000..6bca53f7ca9a
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/template
@@ -0,0 +1,53 @@
+# Template file for 'HeroicGamesLauncher'
+pkgname=HeroicGamesLauncher
+version=2.8.0
+revision=1
+archs="x86_64*"
+_electron_version=24
+hostmakedepends="electron${_electron_version} jq nodejs python3 yarn"
+depends="electron${_electron_version} legendary heroic-gogdl"
+checkdepends="tar xz"
+short_desc="Open source launcher for GOG and Epic Games"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
+distfiles="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/v${version}.tar.gz"
+checksum=59f068d6ba7e6c9c5d3c08f06b4cee23f07452777b9edb8baa61895fa9f40320
+nopie_files="/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/gogdl
+/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/legendary"
+
+pre_build() {
+	jq 'del(.scripts.prepare)' package.json >tmp.json
+	mv {tmp,package}.json
+}
+
+do_build() {
+	export ELECTRON_SKIP_BINARY_DOWNLOAD=1
+	export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
+
+	electronDist="/usr/lib/electron${_electron_version}"
+	electronVer="$(sed s/^v// $electronDist/version)"
+
+	yarn install
+	yarn dist:linux --dir -c.electronDist="$electronDist" -c.electronVersion="$electronVer"
+}
+
+do_install() {
+	heroic_name="com.heroicgameslauncher.hgl"
+
+	vmkdir usr/lib/HeroicGamesLauncher/resources
+
+	vcopy dist/linux-unpacked/resources/app.asar usr/lib/HeroicGamesLauncher/resources
+	vcopy dist/linux-unpacked/resources/app.asar.unpacked usr/lib/HeroicGamesLauncher/resources
+	vcopy build /usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked
+	rm -rf "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/{linux/{gogdl,legendary},darwin,win32}"
+	ln -sf "${DESTDIR}/usr/bin/{gogdl,legendary}" "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux"
+	ln -sf build "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/public"
+
+	vinstall flatpak/$heroic_name.desktop 644 usr/share/applications
+	vinstall build/icon.png 644 usr/share/icons/hicolor/512x512/apps/$heroic_name.png
+	vinstall flatpak/$heroic_name.png 644 usr/share/icons/hicolor/128x128/apps
+
+	vbin "${FILESDIR}/heroic-run"
+	vsed -i "${DESTDIR}/usr/bin/heroic-run" -e "s/@@VERSION@@/$_electron_version/"
+}

From 54994206e026ab27b0a85c3f4e2c0e1c25f91519 Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 28 Jun 2023 12:26:50 -0300
Subject: [PATCH 2/2] New package: heroic-gogdl-0.4

---
 srcpkgs/heroic-gogdl/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/heroic-gogdl/template

diff --git a/srcpkgs/heroic-gogdl/template b/srcpkgs/heroic-gogdl/template
new file mode 100644
index 000000000000..d9861534dfd4
--- /dev/null
+++ b/srcpkgs/heroic-gogdl/template
@@ -0,0 +1,20 @@
+# Template file for 'heroic-gogdl'
+pkgname=heroic-gogdl
+version=0.4
+revision=1
+hostmakedepends="python3-setuptools python3-build python3-installer python3-wheel"
+depends="python3-requests"
+short_desc="GOG Downloading module for Heroic Games Launcher"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/heroic-gogdl"
+distfiles="https://github.com/Heroic-Games-Launcher/heroic-gogdl/archive/refs/tags/v${version}.tar.gz"
+checksum=10103a398d6696b8f0891ce25a0ef85a59fb6bd985511c81798231a3f0b49fc5
+
+do_build() {
+	python3 -m build --wheel --skip-dependency-check --no-isolation
+}
+
+do_install() {
+	python3 -m installer --destdir "${DESTDIR}" dist/*.whl
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
                   ` (7 preceding siblings ...)
  2023-07-01  1:05 ` sirkhancision
@ 2023-07-26 14:41 ` Bnyro
  2023-07-26 15:27 ` Bnyro
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Bnyro @ 2023-07-26 14:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1414 bytes --]

New comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/44207#issuecomment-1651950431

Comment:
patch for 2.9.0:
```diff
diff --git a/srcpkgs/HeroicGamesLauncher/template b/srcpkgs/HeroicGamesLauncher/template
index 6bca53f7ca..e2f80bdfed 100644
--- a/srcpkgs/HeroicGamesLauncher/template
+++ b/srcpkgs/HeroicGamesLauncher/template
@@ -1,6 +1,6 @@
 # Template file for 'HeroicGamesLauncher'
 pkgname=HeroicGamesLauncher
-version=2.8.0
+version=2.9.0
 revision=1
 archs="x86_64*"
 _electron_version=24
@@ -12,9 +12,10 @@ maintainer="sirkhancision <jsantiago12tone@gmail.com>"
 license="GPL-3.0-or-later"
 homepage="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
 distfiles="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/v${version}.tar.gz"
-checksum=59f068d6ba7e6c9c5d3c08f06b4cee23f07452777b9edb8baa61895fa9f40320
+checksum=b0b0e61f5f20af09527fc53b3493ede170fc7df2a148bcce7b4d83b441b8203b
 nopie_files="/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/gogdl
-/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/legendary"
+	/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/legendary
+	/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/nile"
 
 pre_build() {
 	jq 'del(.scripts.prepare)' package.json >tmp.json
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
                   ` (8 preceding siblings ...)
  2023-07-26 14:41 ` Bnyro
@ 2023-07-26 15:27 ` Bnyro
  2023-07-26 20:33 ` [PR PATCH] [Updated] " sirkhancision
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Bnyro @ 2023-07-26 15:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

New comment by Bnyro on void-packages repository

https://github.com/void-linux/void-packages/pull/44207#issuecomment-1652041412

Comment:
2.9.0 doesn't seem to launch, not really sure why

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
                   ` (9 preceding siblings ...)
  2023-07-26 15:27 ` Bnyro
@ 2023-07-26 20:33 ` sirkhancision
  2023-07-26 20:33 ` sirkhancision
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sirkhancision @ 2023-07-26 20:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

There is an updated pull request by sirkhancision against master on the void-packages repository

https://github.com/sirkhancision/void-packages HeroicGamesLauncher
https://github.com/void-linux/void-packages/pull/44207

New package: HeroicGamesLauncher-2.8.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/44207.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-HeroicGamesLauncher-44207.patch --]
[-- Type: text/x-diff, Size: 5693 bytes --]

From ceb1b3ef6725493bf564b9149a0efa24577e8ac2 Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 31 May 2023 23:02:43 -0300
Subject: [PATCH 1/2] New package: HeroicGamesLauncher-2.8.0

---
 srcpkgs/HeroicGamesLauncher/files/heroic-run  |  3 ++
 .../patches/electron-is-dev-env.patch         | 13 +++++
 srcpkgs/HeroicGamesLauncher/template          | 53 +++++++++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/HeroicGamesLauncher/files/heroic-run
 create mode 100644 srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
 create mode 100644 srcpkgs/HeroicGamesLauncher/template

diff --git a/srcpkgs/HeroicGamesLauncher/files/heroic-run b/srcpkgs/HeroicGamesLauncher/files/heroic-run
new file mode 100644
index 0000000000000..c3b0dd2064826
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/files/heroic-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ELECTRON_IS_DEV=0 exec electron@@VERSION@@ /usr/lib/HeroicGamesLauncher/resources/app.asar "$@"
diff --git a/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
new file mode 100644
index 0000000000000..dd9e5e52a3d8c
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
@@ -0,0 +1,13 @@
+--- a/src/backend/main.ts
++++ b/src/backend/main.ts
+@@ -208,7 +208,9 @@ async function initializeWindow(): Promi
+     detectVCRedist(mainWindow)
+   }
+ 
+-  if (!app.isPackaged && process.env.CI !== 'e2e') {
++  if (!app.isPackaged &&
++      process.env.CI !== 'e2e' &&
++      process.env.HEROIC_NO_REACT_DEVTOOLS != undefined) {
+     if (!process.env.HEROIC_NO_REACT_DEVTOOLS) {
+       import('electron-devtools-installer').then((devtools) => {
+         const { default: installExtension, REACT_DEVELOPER_TOOLS } = devtools
diff --git a/srcpkgs/HeroicGamesLauncher/template b/srcpkgs/HeroicGamesLauncher/template
new file mode 100644
index 0000000000000..6bca53f7ca9a5
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/template
@@ -0,0 +1,53 @@
+# Template file for 'HeroicGamesLauncher'
+pkgname=HeroicGamesLauncher
+version=2.8.0
+revision=1
+archs="x86_64*"
+_electron_version=24
+hostmakedepends="electron${_electron_version} jq nodejs python3 yarn"
+depends="electron${_electron_version} legendary heroic-gogdl"
+checkdepends="tar xz"
+short_desc="Open source launcher for GOG and Epic Games"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
+distfiles="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/v${version}.tar.gz"
+checksum=59f068d6ba7e6c9c5d3c08f06b4cee23f07452777b9edb8baa61895fa9f40320
+nopie_files="/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/gogdl
+/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/legendary"
+
+pre_build() {
+	jq 'del(.scripts.prepare)' package.json >tmp.json
+	mv {tmp,package}.json
+}
+
+do_build() {
+	export ELECTRON_SKIP_BINARY_DOWNLOAD=1
+	export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
+
+	electronDist="/usr/lib/electron${_electron_version}"
+	electronVer="$(sed s/^v// $electronDist/version)"
+
+	yarn install
+	yarn dist:linux --dir -c.electronDist="$electronDist" -c.electronVersion="$electronVer"
+}
+
+do_install() {
+	heroic_name="com.heroicgameslauncher.hgl"
+
+	vmkdir usr/lib/HeroicGamesLauncher/resources
+
+	vcopy dist/linux-unpacked/resources/app.asar usr/lib/HeroicGamesLauncher/resources
+	vcopy dist/linux-unpacked/resources/app.asar.unpacked usr/lib/HeroicGamesLauncher/resources
+	vcopy build /usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked
+	rm -rf "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/{linux/{gogdl,legendary},darwin,win32}"
+	ln -sf "${DESTDIR}/usr/bin/{gogdl,legendary}" "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux"
+	ln -sf build "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/public"
+
+	vinstall flatpak/$heroic_name.desktop 644 usr/share/applications
+	vinstall build/icon.png 644 usr/share/icons/hicolor/512x512/apps/$heroic_name.png
+	vinstall flatpak/$heroic_name.png 644 usr/share/icons/hicolor/128x128/apps
+
+	vbin "${FILESDIR}/heroic-run"
+	vsed -i "${DESTDIR}/usr/bin/heroic-run" -e "s/@@VERSION@@/$_electron_version/"
+}

From 54994206e026ab27b0a85c3f4e2c0e1c25f91519 Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 28 Jun 2023 12:26:50 -0300
Subject: [PATCH 2/2] New package: heroic-gogdl-0.4

---
 srcpkgs/heroic-gogdl/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/heroic-gogdl/template

diff --git a/srcpkgs/heroic-gogdl/template b/srcpkgs/heroic-gogdl/template
new file mode 100644
index 0000000000000..d9861534dfd43
--- /dev/null
+++ b/srcpkgs/heroic-gogdl/template
@@ -0,0 +1,20 @@
+# Template file for 'heroic-gogdl'
+pkgname=heroic-gogdl
+version=0.4
+revision=1
+hostmakedepends="python3-setuptools python3-build python3-installer python3-wheel"
+depends="python3-requests"
+short_desc="GOG Downloading module for Heroic Games Launcher"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/heroic-gogdl"
+distfiles="https://github.com/Heroic-Games-Launcher/heroic-gogdl/archive/refs/tags/v${version}.tar.gz"
+checksum=10103a398d6696b8f0891ce25a0ef85a59fb6bd985511c81798231a3f0b49fc5
+
+do_build() {
+	python3 -m build --wheel --skip-dependency-check --no-isolation
+}
+
+do_install() {
+	python3 -m installer --destdir "${DESTDIR}" dist/*.whl
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
                   ` (10 preceding siblings ...)
  2023-07-26 20:33 ` [PR PATCH] [Updated] " sirkhancision
@ 2023-07-26 20:33 ` sirkhancision
  2023-07-26 21:31 ` sirkhancision
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sirkhancision @ 2023-07-26 20:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

There is an updated pull request by sirkhancision against master on the void-packages repository

https://github.com/sirkhancision/void-packages HeroicGamesLauncher
https://github.com/void-linux/void-packages/pull/44207

New package: HeroicGamesLauncher-2.8.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/44207.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-HeroicGamesLauncher-44207.patch --]
[-- Type: text/x-diff, Size: 5693 bytes --]

From ceb1b3ef6725493bf564b9149a0efa24577e8ac2 Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 31 May 2023 23:02:43 -0300
Subject: [PATCH 1/2] New package: HeroicGamesLauncher-2.8.0

---
 srcpkgs/HeroicGamesLauncher/files/heroic-run  |  3 ++
 .../patches/electron-is-dev-env.patch         | 13 +++++
 srcpkgs/HeroicGamesLauncher/template          | 53 +++++++++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/HeroicGamesLauncher/files/heroic-run
 create mode 100644 srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
 create mode 100644 srcpkgs/HeroicGamesLauncher/template

diff --git a/srcpkgs/HeroicGamesLauncher/files/heroic-run b/srcpkgs/HeroicGamesLauncher/files/heroic-run
new file mode 100644
index 0000000000000..c3b0dd2064826
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/files/heroic-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ELECTRON_IS_DEV=0 exec electron@@VERSION@@ /usr/lib/HeroicGamesLauncher/resources/app.asar "$@"
diff --git a/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
new file mode 100644
index 0000000000000..dd9e5e52a3d8c
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
@@ -0,0 +1,13 @@
+--- a/src/backend/main.ts
++++ b/src/backend/main.ts
+@@ -208,7 +208,9 @@ async function initializeWindow(): Promi
+     detectVCRedist(mainWindow)
+   }
+ 
+-  if (!app.isPackaged && process.env.CI !== 'e2e') {
++  if (!app.isPackaged &&
++      process.env.CI !== 'e2e' &&
++      process.env.HEROIC_NO_REACT_DEVTOOLS != undefined) {
+     if (!process.env.HEROIC_NO_REACT_DEVTOOLS) {
+       import('electron-devtools-installer').then((devtools) => {
+         const { default: installExtension, REACT_DEVELOPER_TOOLS } = devtools
diff --git a/srcpkgs/HeroicGamesLauncher/template b/srcpkgs/HeroicGamesLauncher/template
new file mode 100644
index 0000000000000..6bca53f7ca9a5
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/template
@@ -0,0 +1,53 @@
+# Template file for 'HeroicGamesLauncher'
+pkgname=HeroicGamesLauncher
+version=2.8.0
+revision=1
+archs="x86_64*"
+_electron_version=24
+hostmakedepends="electron${_electron_version} jq nodejs python3 yarn"
+depends="electron${_electron_version} legendary heroic-gogdl"
+checkdepends="tar xz"
+short_desc="Open source launcher for GOG and Epic Games"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
+distfiles="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/v${version}.tar.gz"
+checksum=59f068d6ba7e6c9c5d3c08f06b4cee23f07452777b9edb8baa61895fa9f40320
+nopie_files="/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/gogdl
+/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/legendary"
+
+pre_build() {
+	jq 'del(.scripts.prepare)' package.json >tmp.json
+	mv {tmp,package}.json
+}
+
+do_build() {
+	export ELECTRON_SKIP_BINARY_DOWNLOAD=1
+	export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
+
+	electronDist="/usr/lib/electron${_electron_version}"
+	electronVer="$(sed s/^v// $electronDist/version)"
+
+	yarn install
+	yarn dist:linux --dir -c.electronDist="$electronDist" -c.electronVersion="$electronVer"
+}
+
+do_install() {
+	heroic_name="com.heroicgameslauncher.hgl"
+
+	vmkdir usr/lib/HeroicGamesLauncher/resources
+
+	vcopy dist/linux-unpacked/resources/app.asar usr/lib/HeroicGamesLauncher/resources
+	vcopy dist/linux-unpacked/resources/app.asar.unpacked usr/lib/HeroicGamesLauncher/resources
+	vcopy build /usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked
+	rm -rf "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/{linux/{gogdl,legendary},darwin,win32}"
+	ln -sf "${DESTDIR}/usr/bin/{gogdl,legendary}" "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux"
+	ln -sf build "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/public"
+
+	vinstall flatpak/$heroic_name.desktop 644 usr/share/applications
+	vinstall build/icon.png 644 usr/share/icons/hicolor/512x512/apps/$heroic_name.png
+	vinstall flatpak/$heroic_name.png 644 usr/share/icons/hicolor/128x128/apps
+
+	vbin "${FILESDIR}/heroic-run"
+	vsed -i "${DESTDIR}/usr/bin/heroic-run" -e "s/@@VERSION@@/$_electron_version/"
+}

From 54994206e026ab27b0a85c3f4e2c0e1c25f91519 Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 28 Jun 2023 12:26:50 -0300
Subject: [PATCH 2/2] New package: heroic-gogdl-0.4

---
 srcpkgs/heroic-gogdl/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/heroic-gogdl/template

diff --git a/srcpkgs/heroic-gogdl/template b/srcpkgs/heroic-gogdl/template
new file mode 100644
index 0000000000000..d9861534dfd43
--- /dev/null
+++ b/srcpkgs/heroic-gogdl/template
@@ -0,0 +1,20 @@
+# Template file for 'heroic-gogdl'
+pkgname=heroic-gogdl
+version=0.4
+revision=1
+hostmakedepends="python3-setuptools python3-build python3-installer python3-wheel"
+depends="python3-requests"
+short_desc="GOG Downloading module for Heroic Games Launcher"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/heroic-gogdl"
+distfiles="https://github.com/Heroic-Games-Launcher/heroic-gogdl/archive/refs/tags/v${version}.tar.gz"
+checksum=10103a398d6696b8f0891ce25a0ef85a59fb6bd985511c81798231a3f0b49fc5
+
+do_build() {
+	python3 -m build --wheel --skip-dependency-check --no-isolation
+}
+
+do_install() {
+	python3 -m installer --destdir "${DESTDIR}" dist/*.whl
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
                   ` (11 preceding siblings ...)
  2023-07-26 20:33 ` sirkhancision
@ 2023-07-26 21:31 ` sirkhancision
  2023-10-25  1:45 ` github-actions
  2023-11-08  1:45 ` [PR PATCH] [Closed]: " github-actions
  14 siblings, 0 replies; 16+ messages in thread
From: sirkhancision @ 2023-07-26 21:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

There is an updated pull request by sirkhancision against master on the void-packages repository

https://github.com/sirkhancision/void-packages HeroicGamesLauncher
https://github.com/void-linux/void-packages/pull/44207

New package: HeroicGamesLauncher-2.8.0
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


A patch file from https://github.com/void-linux/void-packages/pull/44207.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-HeroicGamesLauncher-44207.patch --]
[-- Type: text/x-diff, Size: 5693 bytes --]

From ceb1b3ef6725493bf564b9149a0efa24577e8ac2 Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 31 May 2023 23:02:43 -0300
Subject: [PATCH 1/2] New package: HeroicGamesLauncher-2.8.0

---
 srcpkgs/HeroicGamesLauncher/files/heroic-run  |  3 ++
 .../patches/electron-is-dev-env.patch         | 13 +++++
 srcpkgs/HeroicGamesLauncher/template          | 53 +++++++++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/HeroicGamesLauncher/files/heroic-run
 create mode 100644 srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
 create mode 100644 srcpkgs/HeroicGamesLauncher/template

diff --git a/srcpkgs/HeroicGamesLauncher/files/heroic-run b/srcpkgs/HeroicGamesLauncher/files/heroic-run
new file mode 100644
index 0000000000000..c3b0dd2064826
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/files/heroic-run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ELECTRON_IS_DEV=0 exec electron@@VERSION@@ /usr/lib/HeroicGamesLauncher/resources/app.asar "$@"
diff --git a/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
new file mode 100644
index 0000000000000..dd9e5e52a3d8c
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/patches/electron-is-dev-env.patch
@@ -0,0 +1,13 @@
+--- a/src/backend/main.ts
++++ b/src/backend/main.ts
+@@ -208,7 +208,9 @@ async function initializeWindow(): Promi
+     detectVCRedist(mainWindow)
+   }
+ 
+-  if (!app.isPackaged && process.env.CI !== 'e2e') {
++  if (!app.isPackaged &&
++      process.env.CI !== 'e2e' &&
++      process.env.HEROIC_NO_REACT_DEVTOOLS != undefined) {
+     if (!process.env.HEROIC_NO_REACT_DEVTOOLS) {
+       import('electron-devtools-installer').then((devtools) => {
+         const { default: installExtension, REACT_DEVELOPER_TOOLS } = devtools
diff --git a/srcpkgs/HeroicGamesLauncher/template b/srcpkgs/HeroicGamesLauncher/template
new file mode 100644
index 0000000000000..6bca53f7ca9a5
--- /dev/null
+++ b/srcpkgs/HeroicGamesLauncher/template
@@ -0,0 +1,53 @@
+# Template file for 'HeroicGamesLauncher'
+pkgname=HeroicGamesLauncher
+version=2.8.0
+revision=1
+archs="x86_64*"
+_electron_version=24
+hostmakedepends="electron${_electron_version} jq nodejs python3 yarn"
+depends="electron${_electron_version} legendary heroic-gogdl"
+checkdepends="tar xz"
+short_desc="Open source launcher for GOG and Epic Games"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
+distfiles="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/archive/v${version}.tar.gz"
+checksum=59f068d6ba7e6c9c5d3c08f06b4cee23f07452777b9edb8baa61895fa9f40320
+nopie_files="/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/gogdl
+/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux/legendary"
+
+pre_build() {
+	jq 'del(.scripts.prepare)' package.json >tmp.json
+	mv {tmp,package}.json
+}
+
+do_build() {
+	export ELECTRON_SKIP_BINARY_DOWNLOAD=1
+	export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
+
+	electronDist="/usr/lib/electron${_electron_version}"
+	electronVer="$(sed s/^v// $electronDist/version)"
+
+	yarn install
+	yarn dist:linux --dir -c.electronDist="$electronDist" -c.electronVersion="$electronVer"
+}
+
+do_install() {
+	heroic_name="com.heroicgameslauncher.hgl"
+
+	vmkdir usr/lib/HeroicGamesLauncher/resources
+
+	vcopy dist/linux-unpacked/resources/app.asar usr/lib/HeroicGamesLauncher/resources
+	vcopy dist/linux-unpacked/resources/app.asar.unpacked usr/lib/HeroicGamesLauncher/resources
+	vcopy build /usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked
+	rm -rf "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/{linux/{gogdl,legendary},darwin,win32}"
+	ln -sf "${DESTDIR}/usr/bin/{gogdl,legendary}" "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/build/bin/linux"
+	ln -sf build "${DESTDIR}/usr/lib/HeroicGamesLauncher/resources/app.asar.unpacked/public"
+
+	vinstall flatpak/$heroic_name.desktop 644 usr/share/applications
+	vinstall build/icon.png 644 usr/share/icons/hicolor/512x512/apps/$heroic_name.png
+	vinstall flatpak/$heroic_name.png 644 usr/share/icons/hicolor/128x128/apps
+
+	vbin "${FILESDIR}/heroic-run"
+	vsed -i "${DESTDIR}/usr/bin/heroic-run" -e "s/@@VERSION@@/$_electron_version/"
+}

From 54994206e026ab27b0a85c3f4e2c0e1c25f91519 Mon Sep 17 00:00:00 2001
From: sirkhancision <jsantiago12tone@gmail.com>
Date: Wed, 28 Jun 2023 12:26:50 -0300
Subject: [PATCH 2/2] New package: heroic-gogdl-0.4

---
 srcpkgs/heroic-gogdl/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/heroic-gogdl/template

diff --git a/srcpkgs/heroic-gogdl/template b/srcpkgs/heroic-gogdl/template
new file mode 100644
index 0000000000000..d9861534dfd43
--- /dev/null
+++ b/srcpkgs/heroic-gogdl/template
@@ -0,0 +1,20 @@
+# Template file for 'heroic-gogdl'
+pkgname=heroic-gogdl
+version=0.4
+revision=1
+hostmakedepends="python3-setuptools python3-build python3-installer python3-wheel"
+depends="python3-requests"
+short_desc="GOG Downloading module for Heroic Games Launcher"
+maintainer="sirkhancision <jsantiago12tone@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/Heroic-Games-Launcher/heroic-gogdl"
+distfiles="https://github.com/Heroic-Games-Launcher/heroic-gogdl/archive/refs/tags/v${version}.tar.gz"
+checksum=10103a398d6696b8f0891ce25a0ef85a59fb6bd985511c81798231a3f0b49fc5
+
+do_build() {
+	python3 -m build --wheel --skip-dependency-check --no-isolation
+}
+
+do_install() {
+	python3 -m installer --destdir "${DESTDIR}" dist/*.whl
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
                   ` (12 preceding siblings ...)
  2023-07-26 21:31 ` sirkhancision
@ 2023-10-25  1:45 ` github-actions
  2023-11-08  1:45 ` [PR PATCH] [Closed]: " github-actions
  14 siblings, 0 replies; 16+ messages in thread
From: github-actions @ 2023-10-25  1:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/44207#issuecomment-1778344285

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Closed]: New package: HeroicGamesLauncher-2.8.0
  2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
                   ` (13 preceding siblings ...)
  2023-10-25  1:45 ` github-actions
@ 2023-11-08  1:45 ` github-actions
  14 siblings, 0 replies; 16+ messages in thread
From: github-actions @ 2023-11-08  1:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

There's a closed pull request on the void-packages repository

New package: HeroicGamesLauncher-2.8.0
https://github.com/void-linux/void-packages/pull/44207

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-glibc


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-11-08  1:45 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-01  2:27 [PR PATCH] New package: HeroicGamesLauncher-2.8.0 sirkhancision
2023-06-01  2:46 ` [PR PATCH] [Updated] " sirkhancision
2023-06-27 20:57 ` sirkhancision
2023-06-27 21:06 ` sirkhancision
2023-06-27 21:18 ` sirkhancision
2023-06-27 21:49 ` sirkhancision
2023-06-28 15:22 ` [PR REVIEW] " Duncaen
2023-06-28 15:37 ` [PR PATCH] [Updated] " sirkhancision
2023-07-01  1:05 ` sirkhancision
2023-07-26 14:41 ` Bnyro
2023-07-26 15:27 ` Bnyro
2023-07-26 20:33 ` [PR PATCH] [Updated] " sirkhancision
2023-07-26 20:33 ` sirkhancision
2023-07-26 21:31 ` sirkhancision
2023-10-25  1:45 ` github-actions
2023-11-08  1:45 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).