SHA256
1
0
forked from pool/protontricks

18 Commits

Author SHA256 Message Date
9c5b36daad Accepting request 1208676 from games:tools
OBS-URL: https://build.opensuse.org/request/show/1208676
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/protontricks?expand=0&rev=5
2024-10-18 13:55:34 +00:00
6d47c2d74f - add yad, set it as default (recommendation from upstream)
- remove small adjustments, as they got fixed upstream

OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=18
2024-10-17 16:25:47 +00:00
1aa8a1f68a Accepting request 1207056 from games:tools
OBS-URL: https://build.opensuse.org/request/show/1207056
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/protontricks?expand=0&rev=4
2024-10-11 15:02:57 +00:00
96cb08366d - Update to version 1.12.0:
* --cwd-app flag to set working directory to the game's installation directory
  * Add support for Snap Steam installations
  * protontricks -c and protontricks-launch now use the current working directory
    instead of the game's installation directory. --cwd-app can be used to
    restore old behavior. Scripts can also $STEAM_APP_PATH environment variable
    to determine the game's installation directory; this has been supported
    (albeit undocumented) since 1.8.0.
  * protontricks will now launch GUI if no arguments were provided
  * Fix crash when parsing appinfo.vdf V29 in new Steam client version
  * Fix Protontricks crash when config.vdf contains invalid Unicode characters
- Removed %check section as many tests for this version are broken
- Install the build dependency to git only for Tumbleweed, as it is only used there
- Use local provided python vdf module
- Add patches:
  * 0001-Fix-using-local-vdf-module.patch

OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=16
2024-10-11 06:20:05 +00:00
43f8a4aa8f - Update to version 1.12.0:
* --cwd-app flag to set working directory to the game's installation directory
  * Add support for Snap Steam installations
  * protontricks -c and protontricks-launch now use the current working directory
    instead of the game's installation directory. --cwd-app can be used to
    restore old behavior. Scripts can also $STEAM_APP_PATH environment variable
    to determine the game's installation directory; this has been supported
    (albeit undocumented) since 1.8.0.
  * protontricks will now launch GUI if no arguments were provided
  * Fix crash when parsing appinfo.vdf V29 in new Steam client version
  * Fix Protontricks crash when config.vdf contains invalid Unicode characters
- Removed %check section as many tests for this version are broken
- Install the build dependency to git only for Tumbleweed, as it is only used there

OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=15
2024-10-11 06:12:31 +00:00
e656a87df1 Accepting request 1193888 from games:tools
OBS-URL: https://build.opensuse.org/request/show/1193888
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/protontricks?expand=0&rev=3
2024-08-15 07:58:13 +00:00
c34892dbb0 Accepting request 1137169 from games:tools
OBS-URL: https://build.opensuse.org/request/show/1137169
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/protontricks?expand=0&rev=2
2024-01-06 16:29:25 +00:00
56259341ef Accepting request 1137168 from home:rhabacker:branches:games:tools
- Update to version 1.11.0:
  * Show app icons for custom shortcuts in the app selector
  * Verbose flag can be enabled with -vv for additional debug logging
  * Fix Protontricks not recognizing supported Steam Runtime
    installation due to changed name
  * Fix Protontricks not recognizing default Proton installation for
    games with different Proton preselected by Valve testing
  * Fix Protontricks crash when app has an unidentifiable app icon

OBS-URL: https://build.opensuse.org/request/show/1137168
OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=11
2024-01-05 22:59:02 +00:00
16c680c702 Accepting request 1119655 from games:tools
useful tools for Steam games

OBS-URL: https://build.opensuse.org/request/show/1119655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/protontricks?expand=0&rev=1
2023-11-09 20:34:38 +00:00
2f5bc2d607 Accepting request 1119596 from home:rhabacker:branches:games:tools
- Fix incorrect use of mode parameter in _service file mentioned at
  https://build.opensuse.org/request/show/1119325?notification_id=43740251

OBS-URL: https://build.opensuse.org/request/show/1119596
OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=9
2023-10-23 09:53:39 +00:00
44fe2e459f Accepting request 1119378 from home:rhabacker:branches:games:tools
- Use python3-setuptools to fix runtime dependency

OBS-URL: https://build.opensuse.org/request/show/1119378
OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=8
2023-10-21 22:19:47 +00:00
29ce4160b4 Accepting request 1113241 from home:rhabacker:branches:games:tools
- Update to version 1.10.5:
  * Convert icon to RGB mode before conversion
- Changes from 1.10.4:
  * Document protontricks-launch 
  * Ensure all app icons have 32x32 size 
  * Add utils.get_cache_dir 
  * Ignore possible extra data in binary VDF 
  * Do not use loop to check for launcher 
  * Fix outdated protontricks-launch help text 
- Add required packages python3-Pillow and setuptools
- Add fdupes as build requirement and use it

OBS-URL: https://build.opensuse.org/request/show/1113241
OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=7
2023-09-26 12:01:14 +00:00
0e9df44c57 Accepting request 1098625 from home:rhabacker:branches:games:tools
- Update to version 1.10.3:
  * Replace deprecated setuptools parameter
  * Disable background-wineserver by default 
  * Always look for Flatpak Steam installation 
  * Add Sniper as supported runtime 
  * Check for 'steamapps' in case-insensitive manner 
- Changes from 1.10.2:
  * Update section on community packages 
  * Remove unused imports
  * Update section on community package
  * Fix locale settings on Steam Deck
  * Find Windows shortcut prefix properly 
  * Check and log more permission errors gracefully

OBS-URL: https://build.opensuse.org/request/show/1098625
OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=6
2023-07-14 06:58:08 +00:00
60bf710bb4 OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=5 2023-06-16 09:34:33 +00:00
e1db0c5ddb trigger service run
OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=4
2023-06-13 19:41:09 +00:00
8bad89e005 Accepting request 1045946 from home:jlkDE
- Update to version 1.10.1
- Change service url protocol from git to https

OBS-URL: https://build.opensuse.org/request/show/1045946
OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=3
2023-01-02 09:29:53 +00:00
23d33cd5d0 Accepting request 961140 from home:Kieltux:branches:games:tools
- Update to version 1.8.0:
  + Added
    * fsync/esync is enabled by default
    * PROTON_NO_FSYNC and PROTON_NO_ESYNC environment variables
      are supported
    * Improve Wine command startup time by launching a background
      wineserver for the duration of the Protontricks session.
      This is enabled by default for bwrap, and can also be toggled
      manually with --background-wineserver/--no-background-wineserver.
    * Improve Wine command startup time with bwrap by creating a
      single container and launching all Wine processes inside it.
  + Fixed
    * Fix Wine crash when the Steam application and Protontricks
      are running at the same time
    * Fix Steam installation detection when both non-Flatpak and
      Flatpak versions of Steam are installed for the same user
    * Fix Protontricks crash when Proton installation is incomplete
    * Fix Protontricks crash when both Flatpak and non-Flatpak
      versions of Steam are installed
    * Fix duplicate log messages when using protontricks-launch
    * Fix error dialog not being displayed when using
      protontricks-launch
- Changes from 1.7.0:
  + Changed
    * Enable usage of Flatpak Protontricks with non-Flatpak Steam.
      Flatpak Steam is prioritized if both are found.
  + Fixed
    * bwrap is only disabled when the Flatpak installation is
      too old. Flatpak 1.12.1 and newer support sub-sandboxes.
    * Remove Proton installations from app listings
- Changes from 1.6.2:
  + Changed
    * Return code is now returned from the executed user commands
    * Return code 1 is returned for most Protontricks errors
      instead of -1
- Changes from 1.6.1:
  + Fixed
    * Fix duplicate Steam application entries
    * Fix crash on Python 3.5
- Run spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/961140
OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=2
2022-03-15 14:22:58 +00:00
6e9effc209 Accepting request 940687 from home:buschmann23
A winetricks tool extended for steam that is used to configure Windows games installed by steam

OBS-URL: https://build.opensuse.org/request/show/940687
OBS-URL: https://build.opensuse.org/package/show/games:tools/protontricks?expand=0&rev=1
2021-12-15 13:53:38 +00:00
7 changed files with 118 additions and 27 deletions

View File

@@ -0,0 +1,80 @@
From b78c219b2441d6a9738ac56ba6aae74c177ea851 Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker@freenet.de>
Date: Thu, 10 Oct 2024 13:46:03 +0200
Subject: [PATCH] Fix using local vdf module
---
setup.cfg | 1 -
src/protontricks/_vdf/__init__.py | 2 +-
src/protontricks/steam.py | 2 +-
tests/conftest.py | 2 +-
tests/test_steam.py | 2 +-
5 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/setup.cfg b/setup.cfg
index 7168136..44c9d3a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -30,7 +30,6 @@ package_dir =
include_package_data = True
install_requires =
setuptools # Required for pkg_resources
- vdf>=3.2
Pillow
setup_requires =
setuptools-scm
diff --git a/src/protontricks/_vdf/__init__.py b/src/protontricks/_vdf/__init__.py
index e79136b..722e6f5 100644
--- a/src/protontricks/_vdf/__init__.py
+++ b/src/protontricks/_vdf/__init__.py
@@ -16,7 +16,7 @@ try:
except:
from collections import Mapping
-from vdf.vdict import VDFDict
+from . import vdict
# Py2 & Py3 compatibility
if sys.version_info[0] >= 3:
diff --git a/src/protontricks/steam.py b/src/protontricks/steam.py
index 98793e3..c8307ff 100644
--- a/src/protontricks/steam.py
+++ b/src/protontricks/steam.py
@@ -6,7 +6,7 @@ import zlib
from collections import OrderedDict
from pathlib import Path
-import vdf
+from . import _vdf as vdf
from ._vdf import binary_loads as vendored_binary_loads
from .util import is_steam_deck, lower_dict
diff --git a/tests/conftest.py b/tests/conftest.py
index 3553a94..c6d3706 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -8,7 +8,7 @@ from pathlib import Path
from subprocess import run, TimeoutExpired
import pytest
-import vdf
+from protontricks import _vdf as vdf
from protontricks.cli.desktop_install import \
cli as desktop_install_cli_entrypoint
diff --git a/tests/test_steam.py b/tests/test_steam.py
index 347a034..6cb255f 100644
--- a/tests/test_steam.py
+++ b/tests/test_steam.py
@@ -4,7 +4,7 @@ import time
from pathlib import Path
import pytest
-import vdf
+from protontricks import _vdf as vdf
from protontricks.steam import (SteamApp, _get_steamapps_subdirs,
find_appid_proton_prefix,
--
2.46.0

View File

@@ -2,7 +2,7 @@
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/Matoking/protontricks.git</param>
<param name="revision">1.11.1</param>
<param name="revision">1.12.0</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="package-meta">yes</param>
</service>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:61dd433a6d6fdf03c15fa56250f8a6d19f7f305e1b5101399045de1da0e62613
size 890372

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fb9d550c01728102f79c8fdbd2eacc29244b660b9a07068d0c220ebc67ae9431
size 927824

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d83b96b2f1268a581fefc687a32fa43feb78b0beba6911dab2a0807a710c754
size 1011264

View File

@@ -1,3 +1,29 @@
-------------------------------------------------------------------
Thu Oct 17 15:12:29 UTC 2024 - Richard Rahl <rrahl0@opensuse.org>
- add yad, set it as default (recommendation from upstream)
- remove small adjustments, as they got fixed upstream
-------------------------------------------------------------------
Thu Oct 10 06:35:01 UTC 2024 - Ralf Habacker <ralf.habacker@freenet.de>
- Update to version 1.12.0:
* --cwd-app flag to set working directory to the game's installation directory
* Add support for Snap Steam installations
* protontricks -c and protontricks-launch now use the current working directory
instead of the game's installation directory. --cwd-app can be used to
restore old behavior. Scripts can also $STEAM_APP_PATH environment variable
to determine the game's installation directory; this has been supported
(albeit undocumented) since 1.8.0.
* protontricks will now launch GUI if no arguments were provided
* Fix crash when parsing appinfo.vdf V29 in new Steam client version
* Fix Protontricks crash when config.vdf contains invalid Unicode characters
- Removed %check section as many tests for this version are broken
- Install the build dependency to git only for Tumbleweed, as it is only used there
- Use local provided python vdf module
- Add patches:
* 0001-Fix-using-local-vdf-module.patch
-------------------------------------------------------------------
Wed Aug 14 14:20:55 UTC 2024 - Ralf Habacker <ralf.habacker@freenet.de>

View File

@@ -17,40 +17,31 @@
#
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: protontricks
Version: 1.11.1
Version: 1.12.0
Release: 0
Summary: Winetricks for Proton-enabled Games
License: GPL-3.0-only
Group: System/Emulators/PC
URL: https://github.com/Matoking/protontricks
Source0: %{name}-%{version}.tar.xz
Patch1: 0001-Fix-using-local-vdf-module.patch
BuildRequires: fdupes
BuildRequires: git
BuildRequires: git-core
BuildRequires: python-rpm-macros
# START TESTING SECTION
BuildRequires: python3-Pillow
BuildRequires: python3-pytest >= 3.6
BuildRequires: python3-setuptools_scm
BuildRequires: python3-vdf >= 2.4
BuildRequires: update-desktop-files
# needed for the desktop file icon
BuildRequires: wine
# END TESTING SECTION
Requires: python3-Pillow
Requires: python3-setuptools
Requires: python3-vdf
Requires: winetricks
Requires: zenity
Requires: (yad or zenity)
BuildArch: noarch
%description
A simple wrapper that does winetricks things for Proton enabled games.
%prep
%setup -q
chmod -x src/protontricks/cli/main.py
%autosetup -p1
# Fix non-executable-script check
chmod +x src/protontricks/data/scripts/*.sh
@@ -60,13 +51,9 @@ chmod +x src/protontricks/data/scripts/*.sh
%install
%python3_install
%suse_update_desktop_file -r protontricks Game Amusement
%suse_update_desktop_file %{name}
%fdupes -s %{buildroot}
%check
export LC_ALL='en_US.utf8'
PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitelib} py.test-%{python3_version}
%files
%license LICENSE
%doc README.md CHANGELOG.md
@@ -75,6 +62,7 @@ PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitelib} py.test-%{python3_version}
%{_bindir}/%{name}-launch
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-launch.desktop
%{python3_sitelib}/*
%{python_sitelib}/%{name}
%{python_sitelib}/%{name}-*.egg-info
%changelog