File HeroicGamesLauncher.spec of Package HeroicGamesLauncher

#
# spec file for package HeroicGamesLauncher
#
# Copyright (c) 2025 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.18.1
Release:        0
Summary:        Open source games launcher for epic and gog games - bin version
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}-linux-x64.tar.xz
Source1:        HeroicGamesLauncher.desktop
Source2:        HeroicGamesLauncher.png
BuildRequires:  -post-build-checks
BuildRequires:  desktop-file-utils
BuildRequires:  hicolor-icon-theme
Recommends:     gamemode%{?_isa}
Recommends:     libvkd3d%{?_isa}
Recommends:     mangohud%{?_isa}
Recommends:     wine-staging%{?_isa}
Recommends:     winetricks%{?_isa}
Provides:       HeroicGamesLauncher = %{version}
Conflicts:      HeroicGamesLauncher

%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, GOG or Amazon account
   * Install, uninstall, update, repair and move Games
   * Import an already installed game
   * Play Epic games online [AntiCheat on macOS and on Linux depends on the game]
   * Play games using Wine or Proton [Linux]
   * Play games using Crossover [macOS]
   * Download custom Wine and Proton versions [Linux]
   * Access to Epic, GOG and Amazon Games stores directly from Heroic
   * Search for the game on ProtonDB for compatibility information [Linux]
   * Show ProtonDB and Steam Deck compatibility information [Linux]
   * Sync installed games with an existing Epic Games Store installation
   * Sync saves with the cloud
   * Custom Theming Support
   * Download queue
   * Add Games and Applications outside GOG, Epic Games and Amazon Games
   * Define your categories to organize your collection


%prep
%setup -q -n Heroic-%{version}-linux-x64

%check

%build

%install
mkdir -p %{buildroot}/usr/lib
mkdir -p %{buildroot}/usr/bin
tar -xvf %{SOURCE0} -C %{buildroot}/usr/lib/
mv %{buildroot}/usr/lib/Heroic-%{version}-linux-x64 %{buildroot}/usr/lib/Heroic
ln -s /usr/lib/Heroic/heroic %{buildroot}/usr/bin/heroic
%ifarch x86_64
rm -rf %{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/build/bin/arm64
%endif
rm -rf %{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/node_modules/register-scheme/src
rm -f %{buildroot}/usr/lib/Heroic/chrome-sandbox

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 %{buildroot}/usr/lib/Heroic/resources/app.asar.unpacked/build/icon.png %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/HeroicGamesLauncher.png


%files
/usr/lib/Heroic
/usr/bin/heroic
%{_datadir}/icons/hicolor/512x512/apps/HeroicGamesLauncher.png
%{_datadir}/applications/HeroicGamesLauncher.desktop

%changelog
openSUSE Build Service is sponsored by