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

New package: heroic-games-launcher-2.4.3 #40220

Conversation

wiktorciurej
Copy link

Testing the changes

  • I tested the changes in this PR: YES

New package

Local build testing

  • I built this PR locally for my native architecture, (x86_64-glibc)
  • I built this PR locally for these architectures (if supported. mark crossbuilds):
    • aarch64*
    • armv7l*
    • x86_64-musl

@classabbyamp classabbyamp added electron 🤮 Electron package request new-package This PR adds a new package labels Oct 29, 2022
@wiktorciurej wiktorciurej force-pushed the new_package/heroic-games-launcher branch from d4841df to c4bc074 Compare October 29, 2022 23:26
@Johnnynator
Copy link
Member

https://github.com/void-linux/void-packages/actions/runs/3353335290/jobs/5558484193#step:7:170

You are fetching precompiled binaries for glibc.
Also heroic would be pretty limited on *musl and arm/aarch64 since everything it downloads is for x86_64-glibc.

@wiktorciurej wiktorciurej force-pushed the new_package/heroic-games-launcher branch 2 times, most recently from 4443544 to a422599 Compare October 30, 2022 11:17
@wiktorciurej
Copy link
Author

https://github.com/void-linux/void-packages/actions/runs/3353335290/jobs/5558484193#step:7:170

You are fetching precompiled binaries for glibc. Also heroic would be pretty limited on *musl and arm/aarch64 since everything it downloads is for x86_64-glibc.

Yep, I just realised that and removed musl architectures completely.

@wiktorciurej wiktorciurej force-pushed the new_package/heroic-games-launcher branch from a422599 to e0b96b6 Compare October 30, 2022 11:22
@github-actions
Copy link

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.

@github-actions github-actions bot added the Stale label Jan 29, 2023
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=Heroic Games Launcher
Exec=/usr/bin/heroic %U
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Exec=/usr/bin/heroic %U
Exec=/opt/heroic/heroic %U

@@ -0,0 +1,57 @@
# Template file for 'heroic-games-launcher'
pkgname=heroic-games-launcher
version=2.4.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version=2.4.3
version=2.6.1

Comment on lines +5 to +6
archs="x86_64 armv7l aarch64 ~*-musl"
wrksrc="HeroicGamesLauncher-${version}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
archs="x86_64 armv7l aarch64 ~*-musl"
wrksrc="HeroicGamesLauncher-${version}"
archs="x86_64"

archs="x86_64 armv7l aarch64 ~*-musl"
wrksrc="HeroicGamesLauncher-${version}"
hostmakedepends="nodejs python3 yarn"
depends="alsa-lib gtk+3 nss python3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
depends="alsa-lib gtk+3 nss python3"
depends="fuse gawk"

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=b6590fd99776c2f6d890266ee177d1d90f8a127eaa47b9aec41fc00c4194bc9a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
checksum=b6590fd99776c2f6d890266ee177d1d90f8a127eaa47b9aec41fc00c4194bc9a
checksum=d312ae93a63029491bf23eb52074580e4a1830d030b70f9547fd9b187306f8aa

Comment on lines +19 to +57
case ${XBPS_TARGET_MACHINE} in
x86_64*) _arch=x64 ;;
aarch64*) _arch=arm64 ;;
armv7l*) _arch=armv7l ;;
*) broken="There is no electron package provided for selected architecture." ;;
esac

if ! [ ${_arch} == "x64" ]; then
nostrip_files="/opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
/opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary"

skiprdeps="/opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
/opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary"
fi

do_build() {
npm_config_arch=${_arch} npm_config_platform=linux yarn
npm_config_arch=${_arch} npm_config_platform=linux yarn dist:linux tar.xz --${_arch}
}

do_check() {
npm_config_arch=${_arch} yarn test
npm_config_arch=${_arch} yarn test:ci
}

do_install() {
vmkdir opt/heroic/
if [ ${_arch} == "x64" ]; then
vcopy dist/linux-unpacked/* opt/heroic/
else
vcopy dist/linux-${_arch}-unpacked/* opt/heroic/
fi
vmkdir usr/bin/
ln -sf /opt/heroic/heroic ${DESTDIR}/usr/bin/heroic
vmkdir usr/share/pixmaps/
vinstall public/icon.png 0755 usr/share/pixmaps/ heroic.png
vmkdir usr/share/applications/
vinstall ${FILESDIR}/heroic.desktop 0644 usr/share/applications/
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
case ${XBPS_TARGET_MACHINE} in
x86_64*) _arch=x64 ;;
aarch64*) _arch=arm64 ;;
armv7l*) _arch=armv7l ;;
*) broken="There is no electron package provided for selected architecture." ;;
esac
if ! [ ${_arch} == "x64" ]; then
nostrip_files="/opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
/opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary"
skiprdeps="/opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
/opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary"
fi
do_build() {
npm_config_arch=${_arch} npm_config_platform=linux yarn
npm_config_arch=${_arch} npm_config_platform=linux yarn dist:linux tar.xz --${_arch}
}
do_check() {
npm_config_arch=${_arch} yarn test
npm_config_arch=${_arch} yarn test:ci
}
do_install() {
vmkdir opt/heroic/
if [ ${_arch} == "x64" ]; then
vcopy dist/linux-unpacked/* opt/heroic/
else
vcopy dist/linux-${_arch}-unpacked/* opt/heroic/
fi
vmkdir usr/bin/
ln -sf /opt/heroic/heroic ${DESTDIR}/usr/bin/heroic
vmkdir usr/share/pixmaps/
vinstall public/icon.png 0755 usr/share/pixmaps/ heroic.png
vmkdir usr/share/applications/
vinstall ${FILESDIR}/heroic.desktop 0644 usr/share/applications/
}
do_build() {
yarn
yarn dist:linux tar.xz
}
do_check() {
yarn test
yarn test:ci
}
do_install() {
vmkdir opt/heroic
vcopy dist/linux-unpacked/* opt/heroic
vinstall public/icon.png 644 usr/share/pixmaps heroic.png
vinstall ${FILESDIR}/heroic.desktop 644 usr/share/applications
}

@sirkhancision
Copy link
Contributor

The above suggestions are to update it to the latest version, reduce dependencies, simplify the process and make it build properly (the base code wasn't building in my machine). Compilation also failed when building for anything other than x86_64, so I've removed the other architectures.

@github-actions github-actions bot removed the Stale label Feb 4, 2023
@github-actions
Copy link

github-actions bot commented May 6, 2023

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.

@github-actions github-actions bot added the Stale label May 6, 2023
@github-actions github-actions bot closed this May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electron 🤮 Electron package request new-package This PR adds a new package Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants