File HeroicGamesLauncher.spec of Package HeroicGamesLauncher
#
# spec file for package HeroicGamesLauncher
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: HeroicGamesLauncher
Version: 2.17.2
Release: 0
Summary: Open source games launcher for epic and gog games
License: GPL-3.0-only
Group: Amusements/Games/Other
URL: https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher
#Source0: %%{url}/releases/download/v%%{version}/heroic-%%{version}.tar.xz
Source0: Heroic-%{version}-linux-x64.tar.xz
Source1: HeroicGamesLauncher.desktop
Source2: HeroicGamesLauncher.png
BuildRequires: -post-build-checks
BuildRequires: desktop-file-utils
BuildRequires: hicolor-icon-theme
#BuildRequires: nodejs >= 22
Recommends: gamemode%{?_isa}
Recommends: libvkd3d%{?_isa}
Recommends: mangohud%{?_isa}
Recommends: wine-staging%{?_isa}
Recommends: winetricks%{?_isa}
Conflicts: HeroicGamesLauncher-bin
%description
Heroic is an Open Source Game Launcher for Epic Games Store and
GOG Games (using legendary for epic and gogdl for gog games).
Feature availables right now:
* Login with an existing Epic Games account
* Login with an existing GOG account
* Install/Uninstall Games
* Import an already installed game
* Play online [EAC not supported on Linux]
* Update installed Games
* Repair installed Games
* Move installed games to different folders
* Play games using the default wine and default prefix [Linux]
* Play game with custom wine and prefix [Linux]
* Check basic information about your Games
* Open game page on Epic Store
* Open game page on GOG.com
* Search for the game on ProtonDB [Linux]
* Sync installed games with an existing Epic Games installation
* Sync saves with the cloud [Epic]
%prep
###%%setup -q -n heroic-%{version}
%setup -q -n Heroic-%{version}-linux-x64
%build
%install
mkdir -p %{buildroot}/usr/lib
tar -xvf %{SOURCE0} -C %{buildroot}/usr/lib/
mv %{buildroot}/usr/lib/Heroic-%{version}-linux-x64 %{buildroot}/usr/lib/Heroic
mkdir -p %{buildroot}%{_datadir}/applications/
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/HeroicGamesLauncher.desktop
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/
install -D -m 644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/HeroicGamesLauncher.png
%ifarch x86_64
rm -rf %{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/build/bin/arm64
%endif
#rm %%{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/node_modules/register-scheme/build/node_gyp_bins/python3
#rm %%{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/node_modules/register-scheme/build/Release/node-addon-api/src/nothing.a
#rm %%{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/node_modules/register-scheme/build/Release/nothing.a
#rm %%{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/node_modules/register-scheme/src/*.h
#rm %%{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/node_modules/register-scheme/src/*.cpp
#rm %%{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/node_modules/register-scheme/.npmrc
rm %{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/node_modules/register-scheme/src/register.h
rm %{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/node_modules/register-scheme/src/register_linux.cpp
rm %{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/node_modules/register-scheme/src/register_win.cpp
%files
/usr/lib/Heroic
%{_datadir}/icons/hicolor/512x512/apps/HeroicGamesLauncher.png
%{_datadir}/applications/HeroicGamesLauncher.desktop
%changelog