forked from Boria138/PortProtonQt
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
49509c2763
|
|||
|
ae0b3a0f1a
|
|||
|
678f28ed30
|
|||
|
e7d2860c0e
|
|||
|
55a7f77a33
|
|||
|
8e6c0aafd1
|
|||
|
dd65021976
|
|||
|
5f3a451c50
|
|||
|
c33813dae5
|
|||
|
88a436c29f
|
|||
| 9ca4b38a14 |
@@ -2,8 +2,14 @@ name: Nightly Build - AppImage, Arch, Fedora
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: 'Branch to build'
|
||||
required: false
|
||||
default: 'main'
|
||||
|
||||
env:
|
||||
BUILD_BRANCH: ${{ inputs.branch || 'main' }}
|
||||
PKGDEST: "/tmp/portprotonqt"
|
||||
PACKAGE: "portprotonqt"
|
||||
|
||||
@@ -22,6 +28,8 @@ jobs:
|
||||
pacman -Syu --noconfirm --disable-download-timeout --needed git wget gnupg nodejs npm xorg-server-xvfb zsync
|
||||
|
||||
- uses: https://gitea.com/actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
||||
with:
|
||||
ref: ${{ env.BUILD_BRANCH }}
|
||||
|
||||
- name: Install appimage dependencies
|
||||
run: |
|
||||
@@ -55,9 +63,8 @@ jobs:
|
||||
steps:
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
dnf install -y git rpmdevtools python3-devel python3-wheel python3-pip \
|
||||
python3-build pyproject-rpm-macros systemd-rpm-macros python3-setuptools \
|
||||
redhat-rpm-config nodejs npm
|
||||
dnf install -y git rpmdevtools meson ninja-build python3-devel \
|
||||
systemd-rpm-macros redhat-rpm-config nodejs npm
|
||||
|
||||
- name: Setup rpmbuild environment
|
||||
run: |
|
||||
@@ -68,10 +75,13 @@ jobs:
|
||||
|
||||
- name: Checkout repo
|
||||
uses: https://gitea.com/actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
||||
with:
|
||||
ref: ${{ env.BUILD_BRANCH }}
|
||||
|
||||
- name: Copy fedora.spec
|
||||
run: |
|
||||
cp build-aux/fedora-git.spec /home/rpmbuild/SPECS/${{ env.PACKAGE }}.spec
|
||||
sed "s|git clone https://git.linux-gaming.ru/Boria138/PortProtonQt.git|git clone -b ${{ env.BUILD_BRANCH }} https://git.linux-gaming.ru/Boria138/PortProtonQt.git|" \
|
||||
build-aux/fedora-git.spec > /home/rpmbuild/SPECS/${{ env.PACKAGE }}.spec
|
||||
chown -R rpmbuild:users /home/rpmbuild
|
||||
|
||||
- name: Build RPM
|
||||
@@ -118,13 +128,16 @@ jobs:
|
||||
- name: Build
|
||||
run: |
|
||||
cd /__w/portproton-repo
|
||||
git clone https://git.linux-gaming.ru/Boria138/PortProtonQt.git
|
||||
git clone -b ${{ env.BUILD_BRANCH }} https://git.linux-gaming.ru/Boria138/PortProtonQt.git
|
||||
cd /__w/portproton-repo/PortProtonQt/build-aux
|
||||
sed -i "s|source=(\"git+https://git.linux-gaming.ru/Boria138/PortProtonQt.git\")|source=(\"git+https://git.linux-gaming.ru/Boria138/PortProtonQt.git#branch=${{ env.BUILD_BRANCH }}\")|" PKGBUILD-git
|
||||
chown user -R ..
|
||||
su user -c "yes '' | makepkg --noconfirm -s -p PKGBUILD-git"
|
||||
|
||||
- name: Checkout
|
||||
uses: https://gitea.com/actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
||||
with:
|
||||
ref: ${{ env.BUILD_BRANCH }}
|
||||
|
||||
- name: Upload Arch package
|
||||
uses: https://gitea.com/actions/gitea-upload-artifact@v4
|
||||
|
||||
@@ -8,7 +8,7 @@ on:
|
||||
|
||||
env:
|
||||
# Common version, will be used for tagging the release
|
||||
VERSION: 0.1.9
|
||||
VERSION: 0.1.10
|
||||
PKGDEST: "/tmp/portprotonqt"
|
||||
PACKAGE: "portprotonqt"
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
@@ -109,9 +109,8 @@ jobs:
|
||||
steps:
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
dnf install -y git rpmdevtools python3-devel python3-wheel python3-pip \
|
||||
python3-build pyproject-rpm-macros systemd-rpm-macros python3-setuptools \
|
||||
redhat-rpm-config nodejs npm
|
||||
dnf install -y git rpmdevtools meson ninja-build python3-devel \
|
||||
systemd-rpm-macros redhat-rpm-config nodejs npm
|
||||
|
||||
- name: Setup rpmbuild environment
|
||||
run: |
|
||||
|
||||
@@ -108,9 +108,8 @@ jobs:
|
||||
steps:
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
dnf install -y git rpmdevtools python3-devel python3-wheel python3-pip \
|
||||
python3-build pyproject-rpm-macros python3-setuptools \
|
||||
redhat-rpm-config nodejs npm
|
||||
dnf install -y git rpmdevtools meson ninja-build python3-devel \
|
||||
systemd-rpm-macros redhat-rpm-config nodejs npm
|
||||
|
||||
- name: Setup rpmbuild environment
|
||||
run: |
|
||||
|
||||
29
CHANGELOG.md
29
CHANGELOG.md
@@ -3,6 +3,35 @@
|
||||
Все заметные изменения в этом проекте фиксируются в этом файле.
|
||||
Формат основан на [Keep a Changelog](https://keepachangelog.com/) и придерживается принципов [Semantic Versioning](https://semver.org/).
|
||||
|
||||
## [0.1.10] - 2026-01-14
|
||||
|
||||
### Added
|
||||
- Детальная страница для автоустановок с описанием игры и возможности переуствновки
|
||||
- Менеджер версий Wine для скачивания и удаления различных версий Wine и Proton
|
||||
- Возможность перевода описание, названия тем на другие языки
|
||||
- Возможность перевода подписи к скриншотам тем на другие языки
|
||||
|
||||
### Changed
|
||||
- Проведена чистка мёртвого кода
|
||||
- Улучшена проверка сторонних тем
|
||||
- В документации по созданию тем добавлены примеры dropin тем
|
||||
- Провеедена редактура перевода
|
||||
- Переработана сортировка вайнов и префиксов во всех комбобоксах
|
||||
- Список Wine и префиксов теперь обновляется на лету, а не при запуске приложения
|
||||
- AppImage теперь работает на дистрибутивах использующий альтернативный libc, а так же на тех что не следуют FHS
|
||||
|
||||
### Fixed
|
||||
- Изменение размера карточек автоустановок через геймпад
|
||||
- Проведены исправления для утечек памяти
|
||||
- Время игры теперь парсится даже если файл статистики повреждён
|
||||
- При наличии битых обложек они теперь перекачиваются, а не провоцируют ошибки libpng
|
||||
- Управление QmessageBox через стрелки клавиатуры
|
||||
|
||||
### Contributors
|
||||
- @Vector_null
|
||||
- @Dervart
|
||||
- @Simple16
|
||||
|
||||
## [0.1.9] - 2025-12-08
|
||||
|
||||
### Added
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
pkgname=portprotonqt
|
||||
pkgver=0.1.9
|
||||
pkgver=0.1.10
|
||||
pkgrel=1
|
||||
pkgdesc="Modern GUI for managing and launching games from PortProton, Steam, and Epic Games Store"
|
||||
arch=('any')
|
||||
url="https://git.linux-gaming.ru/Boria138/PortProtonQt"
|
||||
license=('GPL-3.0')
|
||||
depends=('python-requests' 'python-babel' 'python-evdev' 'python-pyudev' 'python-orjson'
|
||||
'python-psutil' 'python-tqdm' 'python-vdf' 'python-libarchive-c' 'pyside6' 'python-rapidfuzz' 'icoextract' 'python-pillow' 'perl-image-exiftool' 'xdg-utils' 'python-beautifulsoup4' 'python-websocket-client' 'cabextract' 'unzip' 'curl' 'unrar')
|
||||
makedepends=('python-'{'build','installer','setuptools','wheel'})
|
||||
'python-psutil' 'python-tqdm' 'python-vdf' 'python-libarchive-c' 'pyside6' 'python-rapidfuzz' 'icoextract' 'python-pillow' 'perl-image-exiftool' 'xdg-utils' 'python-beautifulsoup4' 'python-websocket-client' 'cabextract' 'unzip' 'curl' 'unrar' 'qt6-svg')
|
||||
makedepends=('meson' 'ninja')
|
||||
source=("git+https://git.linux-gaming.ru/Boria138/PortProtonQt#tag=v$pkgver")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/PortProtonQt"
|
||||
python -m build --wheel --no-isolation
|
||||
arch-meson PortProtonQt build
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/PortProtonQt"
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
cp -r build-aux/share "$pkgdir/usr/"
|
||||
cp -r build-aux/lib "$pkgdir/usr/"
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ arch=('any')
|
||||
url="https://git.linux-gaming.ru/Boria138/PortProtonQt"
|
||||
license=('GPL-3.0')
|
||||
depends=('python-requests' 'python-babel' 'python-evdev' 'python-pyudev' 'python-orjson'
|
||||
'python-psutil' 'python-tqdm' 'python-vdf' 'python-libarchive-c' 'pyside6' 'icoextract' 'python-pillow' 'python-rapidfuzz' 'perl-image-exiftool' 'xdg-utils' 'python-beautifulsoup4' 'python-websocket-client' 'cabextract' 'unzip' 'curl' 'unrar')
|
||||
makedepends=('python-'{'build','installer','setuptools','wheel'})
|
||||
'python-psutil' 'python-tqdm' 'python-vdf' 'python-libarchive-c' 'pyside6' 'icoextract' 'python-pillow' 'python-rapidfuzz' 'perl-image-exiftool' 'xdg-utils' 'python-beautifulsoup4' 'python-websocket-client' 'cabextract' 'unzip' 'curl' 'unrar' 'qt6-svg')
|
||||
makedepends=('meson' 'ninja')
|
||||
source=("git+https://git.linux-gaming.ru/Boria138/PortProtonQt.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
@@ -17,13 +17,10 @@ pkgver() {
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/PortProtonQt"
|
||||
python -m build --wheel --no-isolation
|
||||
arch-meson PortProtonQt build
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/PortProtonQt"
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
cp -r build-aux/share "$pkgdir/usr/"
|
||||
cp -r build-aux/lib "$pkgdir/usr/"
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
%global pypi_name portprotonqt
|
||||
%global pypi_version 0.1.1
|
||||
%global pypi_version 0.1.10
|
||||
%global oname PortProtonQt
|
||||
%global build_timestamp %(date +"%Y%m%d")
|
||||
%global _python_no_extras_requires 1
|
||||
|
||||
%global rel_build 1.git.%{build_timestamp}%{?dist}
|
||||
|
||||
Name: python-%{pypi_name}-git
|
||||
Name: %{pypi_name}-git
|
||||
Version: %{pypi_version}
|
||||
Release: %{rel_build}
|
||||
Summary: Modern GUI for managing and launching games from PortProton, Steam, and Epic Games Store (development build)
|
||||
@@ -15,21 +14,15 @@ License: GPL-3.0
|
||||
URL: https://git.linux-gaming.ru/Boria138/PortProtonQt
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: meson >= 0.61.2
|
||||
BuildRequires: ninja-build
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-build
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
BuildRequires: python3dist(setuptools)
|
||||
BuildRequires: git
|
||||
BuildRequires: systemd-rpm-macros
|
||||
|
||||
%description
|
||||
%{summary}
|
||||
Obsoletes: python3-%{pypi_name}-git < %{version}-%{release}
|
||||
Provides: python3-%{pypi_name}-git = %{version}-%{release}
|
||||
|
||||
%package -n python3-%{pypi_name}-git
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||
Requires: python3-babel
|
||||
Requires: python3-evdev
|
||||
Requires: python3-icoextract
|
||||
@@ -48,33 +41,32 @@ Requires: python3-rapidfuzz
|
||||
Requires: python3-libarchive-c
|
||||
Requires: perl-Image-ExifTool
|
||||
Requires: xdg-utils
|
||||
Requires: qt6-qtsvg
|
||||
Requires: cabextract
|
||||
Requires: gzip
|
||||
Requires: unzip
|
||||
Requires: curl
|
||||
Requires: unrar
|
||||
|
||||
%description -n python3-%{pypi_name}-git
|
||||
%description
|
||||
This application provides a sleek, intuitive graphical interface for managing and launching games from PortProton, Steam, and Epic Games Store. It consolidates your game libraries into a single, user-friendly hub for seamless navigation and organization. Its lightweight structure and cross-platform support deliver a cohesive gaming experience, eliminating the need for multiple launchers. Unique PortProton integration enhances Linux gaming, enabling effortless play of Windows-based titles with minimal setup.
|
||||
|
||||
%{?python_disable_dependency_generator}
|
||||
|
||||
%prep
|
||||
git clone https://git.linux-gaming.ru/Boria138/PortProtonQt.git
|
||||
|
||||
%build
|
||||
cd %{oname}
|
||||
%pyproject_wheel
|
||||
%meson -Dpython_libdir=%{python3_sitelib} -Dudevdir=%{_udevrulesdir}
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
cd %{oname}
|
||||
%pyproject_install
|
||||
%pyproject_save_files %{pypi_name}
|
||||
cp -r build-aux/share %{buildroot}/usr/
|
||||
cp -r build-aux/lib %{buildroot}/usr/
|
||||
%meson_install
|
||||
%find_lang %{pypi_name}
|
||||
|
||||
%files -n python3-%{pypi_name}-git -f %{pyproject_files}
|
||||
%files -f %{oname}/%{pypi_name}.lang
|
||||
%{_bindir}/%{pypi_name}
|
||||
%{python3_sitelib}/%{pypi_name}/
|
||||
%{_datadir}/icons/hicolor/scalable/apps/ru.linux_gaming.PortProtonQt.svg
|
||||
%{_metainfodir}/ru.linux_gaming.PortProtonQt.metainfo.xml
|
||||
%{_udevrulesdir}/60-portprotonqt.rules
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
%global pypi_name portprotonqt
|
||||
%global pypi_version 0.1.9
|
||||
%global pypi_version 0.1.10
|
||||
%global oname PortProtonQt
|
||||
%global _python_no_extras_requires 1
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Name: %{pypi_name}
|
||||
Version: %{pypi_version}
|
||||
Release: 1%{?dist}
|
||||
Summary: Modern GUI for managing and launching games from PortProton, Steam, and Epic Games Store
|
||||
@@ -12,21 +11,15 @@ License: GPL-3.0
|
||||
URL: https://git.linux-gaming.ru/Boria138/PortProtonQt
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: meson >= 0.61.2
|
||||
BuildRequires: ninja-build
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-build
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
BuildRequires: python3dist(setuptools)
|
||||
BuildRequires: git
|
||||
BuildRequires: systemd-rpm-macros
|
||||
|
||||
%description
|
||||
%{summary}
|
||||
Obsoletes: python3-%{pypi_name} < %{version}-%{release}
|
||||
Provides: python3-%{pypi_name} = %{version}-%{release}
|
||||
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||
Requires: python3-babel
|
||||
Requires: python3-evdev
|
||||
Requires: python3-icoextract
|
||||
@@ -45,17 +38,16 @@ Requires: python3-rapidfuzz
|
||||
Requires: python3-libarchive-c
|
||||
Requires: perl-Image-ExifTool
|
||||
Requires: xdg-utils
|
||||
Requires: qt6-qtsvg
|
||||
Requires: cabextract
|
||||
Requires: gzip
|
||||
Requires: unzip
|
||||
Requires: curl
|
||||
Requires: unrar
|
||||
|
||||
%description -n python3-%{pypi_name}
|
||||
%description
|
||||
This application provides a sleek, intuitive graphical interface for managing and launching games from PortProton, Steam, and Epic Games Store. It consolidates your game libraries into a single, user-friendly hub for seamless navigation and organization. Its lightweight structure and cross-platform support deliver a cohesive gaming experience, eliminating the need for multiple launchers. Unique PortProton integration enhances Linux gaming, enabling effortless play of Windows-based titles with minimal setup.
|
||||
|
||||
%{?python_disable_dependency_generator}
|
||||
|
||||
%prep
|
||||
git clone https://git.linux-gaming.ru/Boria138/PortProtonQt
|
||||
cd %{oname}
|
||||
@@ -63,17 +55,17 @@ git checkout v%{pypi_version}
|
||||
|
||||
%build
|
||||
cd %{oname}
|
||||
%pyproject_wheel
|
||||
%meson -Dpython_libdir=%{python3_sitelib} -Dudevdir=%{_udevrulesdir}
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
cd %{oname}
|
||||
%pyproject_install
|
||||
%pyproject_save_files %{pypi_name}
|
||||
cp -r build-aux/share %{buildroot}/usr/
|
||||
cp -r build-aux/lib %{buildroot}/usr/
|
||||
%meson_install
|
||||
%find_lang %{pypi_name}
|
||||
|
||||
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
||||
%files -f %{oname}/%{pypi_name}.lang
|
||||
%{_bindir}/%{pypi_name}
|
||||
%{python3_sitelib}/%{pypi_name}/
|
||||
%{_datadir}/icons/hicolor/scalable/apps/ru.linux_gaming.PortProtonQt.svg
|
||||
%{_metainfodir}/ru.linux_gaming.PortProtonQt.metainfo.xml
|
||||
%{_udevrulesdir}/60-portprotonqt.rules
|
||||
|
||||
9
build-aux/portprotonqt
Normal file
9
build-aux/portprotonqt
Normal file
@@ -0,0 +1,9 @@
|
||||
#!@PYTHON@
|
||||
|
||||
import sys
|
||||
|
||||
from portprotonqt.app import main
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
@@ -13,6 +13,7 @@ APPIMAGE_RECIPE = BASE_DIR / "build-aux" / "AppImageBuilder.yml"
|
||||
ARCH_PKGBUILD = BASE_DIR / "build-aux" / "PKGBUILD"
|
||||
FEDORA_SPEC = BASE_DIR / "build-aux" / "fedora.spec"
|
||||
PYPROJECT = BASE_DIR / "pyproject.toml"
|
||||
MESON_BUILD = BASE_DIR / "meson.build"
|
||||
APP_PY = BASE_DIR / "portprotonqt" / "app.py"
|
||||
GITEA_WORKFLOW = BASE_DIR / ".gitea" / "workflows" / "build.yml"
|
||||
CHANGELOG = BASE_DIR / "CHANGELOG.md"
|
||||
@@ -69,6 +70,19 @@ def bump_pyproject(path: Path, old: str, new: str) -> bool:
|
||||
path.write_text(new_text, encoding='utf-8')
|
||||
return bool(count)
|
||||
|
||||
def bump_meson(path: Path, old: str, new: str) -> bool:
|
||||
"""
|
||||
Update version in meson.build
|
||||
"""
|
||||
if not path.exists():
|
||||
return False
|
||||
text = path.read_text(encoding='utf-8')
|
||||
pattern = re.compile(r"(version:\s*)'" + re.escape(old) + r"'")
|
||||
new_text, count = pattern.subn(lambda m: m.group(1) + f"'{new}'", text)
|
||||
if count:
|
||||
path.write_text(new_text, encoding='utf-8')
|
||||
return bool(count)
|
||||
|
||||
def bump_app_py(path: Path, old: str, new: str) -> bool:
|
||||
"""
|
||||
Update __app_version__ in app.py
|
||||
@@ -121,6 +135,7 @@ def main():
|
||||
(ARCH_PKGBUILD, bump_arch),
|
||||
(FEDORA_SPEC, bump_fedora),
|
||||
(PYPROJECT, bump_pyproject),
|
||||
(MESON_BUILD, bump_meson),
|
||||
(APP_PY, bump_app_py),
|
||||
(GITEA_WORKFLOW, bump_workflow),
|
||||
(CHANGELOG, bump_changelog)
|
||||
|
||||
@@ -21,9 +21,9 @@ Current translation status:
|
||||
|
||||
| Locale | Progress | Translated |
|
||||
| :----- | -------: | ---------: |
|
||||
| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 of 375 |
|
||||
| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 of 375 |
|
||||
| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 375 of 375 |
|
||||
| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 of 376 |
|
||||
| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 of 376 |
|
||||
| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 376 of 376 |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
|
||||
| Локаль | Прогресс | Переведено |
|
||||
| :----- | -------: | ---------: |
|
||||
| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 из 375 |
|
||||
| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 из 375 |
|
||||
| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 375 из 375 |
|
||||
| [de_DE](./de_DE/LC_MESSAGES/messages.po) | 0% | 0 из 376 |
|
||||
| [es_ES](./es_ES/LC_MESSAGES/messages.po) | 0% | 0 из 376 |
|
||||
| [ru_RU](./ru_RU/LC_MESSAGES/messages.po) | 100% | 376 из 376 |
|
||||
|
||||
---
|
||||
|
||||
|
||||
83
meson.build
Normal file
83
meson.build
Normal file
@@ -0,0 +1,83 @@
|
||||
project('portprotonqt',
|
||||
version: '0.1.10',
|
||||
meson_version: '>= 0.61.2',
|
||||
license: 'GPL-3.0',
|
||||
)
|
||||
|
||||
# Project directories
|
||||
prefix = get_option('prefix')
|
||||
datadir = prefix / get_option('datadir')
|
||||
bindir = prefix / get_option('bindir')
|
||||
|
||||
# Python module for site-packages path
|
||||
python = import('python')
|
||||
python3 = python.find_installation('python3')
|
||||
pythondir = join_paths(prefix, python3.get_path('purelib'))
|
||||
|
||||
python_libdir = get_option('python_libdir')
|
||||
if python_libdir == ''
|
||||
python_installdir = pythondir
|
||||
else
|
||||
python_installdir = python_libdir
|
||||
endif
|
||||
|
||||
pkgdatadir = python_installdir / meson.project_name()
|
||||
|
||||
conf = configuration_data()
|
||||
conf.set('PYTHON', python.find_installation('python3').full_path())
|
||||
|
||||
# Install Python package
|
||||
subdir('portprotonqt')
|
||||
|
||||
# Install entry point script with proper name to avoid conflict in build directory
|
||||
configured_portprotonqt = configure_file(
|
||||
input: 'build-aux/portprotonqt',
|
||||
output: 'portprotonqt-script',
|
||||
configuration: conf,
|
||||
)
|
||||
|
||||
# Install the configured script with the correct name
|
||||
install_data(configured_portprotonqt,
|
||||
install_dir: bindir,
|
||||
install_mode: 'rwxr-xr-x',
|
||||
rename: 'portprotonqt')
|
||||
|
||||
# Install desktop file
|
||||
install_data(
|
||||
'build-aux/share/applications/ru.linux_gaming.PortProtonQt.desktop',
|
||||
install_dir: datadir / 'applications',
|
||||
)
|
||||
|
||||
# Install icon
|
||||
install_data(
|
||||
'build-aux/share/icons/hicolor/scalable/apps/ru.linux_gaming.PortProtonQt.svg',
|
||||
install_dir: datadir / 'icons/hicolor/scalable/apps',
|
||||
)
|
||||
|
||||
# Install metainfo
|
||||
install_data(
|
||||
'build-aux/share/metainfo/ru.linux_gaming.PortProtonQt.metainfo.xml',
|
||||
install_dir: datadir / 'metainfo',
|
||||
)
|
||||
|
||||
# Install bash completion
|
||||
install_data(
|
||||
'build-aux/share/bash-completion/completions/portprotonqt',
|
||||
install_dir: datadir / 'bash-completion/completions',
|
||||
)
|
||||
|
||||
# Install udev rules
|
||||
udevdir = get_option('udevdir')
|
||||
if udevdir == ''
|
||||
udev = dependency('udev', required: false)
|
||||
if udev.found()
|
||||
udevdir = udev.get_variable(pkgconfig: 'udevdir') / 'rules.d'
|
||||
else
|
||||
udevdir = prefix / get_option('libdir') / 'udev/rules.d'
|
||||
endif
|
||||
endif
|
||||
|
||||
install_data(
|
||||
'build-aux/lib/udev/rules.d/60-portprotonqt.rules',
|
||||
install_dir: udevdir,
|
||||
)
|
||||
11
meson_options.txt
Normal file
11
meson_options.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
option('udevdir',
|
||||
type: 'string',
|
||||
value: '',
|
||||
description: 'Directory for udev rules (auto-detected if empty)',
|
||||
)
|
||||
|
||||
option('python_libdir',
|
||||
type: 'string',
|
||||
value: '',
|
||||
description: 'Python site-packages directory (auto-detected if empty)',
|
||||
)
|
||||
@@ -556,8 +556,11 @@ class DetailPageAnimations:
|
||||
if detail_page and not detail_page.isHidden():
|
||||
detail_page.setGraphicsEffect(cast(Any, original_effect))
|
||||
except RuntimeError:
|
||||
logger.debug("Original effect already deleted")
|
||||
cleanup_callback()
|
||||
logger.debug("Detail page or effect already deleted")
|
||||
try:
|
||||
cleanup_callback()
|
||||
except RuntimeError:
|
||||
logger.debug("Error during cleanup callback")
|
||||
|
||||
# Check if animation is still valid before starting
|
||||
if animation and not detail_page.isHidden():
|
||||
@@ -594,10 +597,10 @@ class DetailPageAnimations:
|
||||
animation.setEasingCurve(easing_curve)
|
||||
|
||||
def slide_cleanup():
|
||||
# Check if page is still valid before cleanup
|
||||
if not detail_page or detail_page.isHidden():
|
||||
logger.debug("Detail page already cleaned up")
|
||||
cleanup_callback()
|
||||
try:
|
||||
cleanup_callback()
|
||||
except RuntimeError:
|
||||
logger.debug("Error during slide cleanup callback")
|
||||
|
||||
# Check if animation is still valid before starting
|
||||
if animation and not detail_page.isHidden():
|
||||
@@ -647,20 +650,28 @@ class DetailPageAnimations:
|
||||
return
|
||||
|
||||
def bounce_cleanup():
|
||||
# Check if page is still valid before cleanup
|
||||
if not detail_page or detail_page.isHidden():
|
||||
logger.debug("Detail page already cleaned up")
|
||||
cleanup_callback()
|
||||
try:
|
||||
cleanup_callback()
|
||||
except RuntimeError:
|
||||
logger.debug("Error during bounce cleanup callback")
|
||||
|
||||
group_anim.start(QAbstractAnimation.DeletionPolicy.DeleteWhenStopped)
|
||||
self.animations[detail_page] = group_anim
|
||||
group_anim.finished.connect(bounce_cleanup)
|
||||
except RuntimeError:
|
||||
# Widget was already deleted, which is expected after deleteLater()
|
||||
logger.debug("Detail page already deleted during animation setup")
|
||||
cleanup_callback()
|
||||
try:
|
||||
cleanup_callback()
|
||||
except RuntimeError:
|
||||
pass
|
||||
except Exception as e:
|
||||
logger.error(f"Error in animate_detail_page_exit: {e}", exc_info=True)
|
||||
if detail_page in self.animations:
|
||||
self.animations.pop(detail_page, None)
|
||||
cleanup_callback()
|
||||
try:
|
||||
if detail_page in self.animations:
|
||||
self.animations.pop(detail_page, None)
|
||||
except RuntimeError:
|
||||
pass
|
||||
try:
|
||||
cleanup_callback()
|
||||
except RuntimeError:
|
||||
pass
|
||||
|
||||
@@ -17,7 +17,7 @@ from portprotonqt.cli import parse_args
|
||||
|
||||
__app_id__ = "ru.linux_gaming.PortProtonQt"
|
||||
__app_name__ = "PortProtonQt"
|
||||
__app_version__ = "0.1.9"
|
||||
__app_version__ = "0.1.10"
|
||||
|
||||
def get_version():
|
||||
try:
|
||||
|
||||
@@ -863,10 +863,12 @@ class DetailPageManager:
|
||||
logger.warning("Detail page not valid, bypassing animation and cleaning up directly")
|
||||
self._exit_animation_in_progress = False
|
||||
cleanup()
|
||||
except RuntimeError:
|
||||
logger.debug("Page deleted before animation could start")
|
||||
self._exit_animation_in_progress = False
|
||||
except Exception as e:
|
||||
logger.error(f"Error starting exit animation: {e}", exc_info=True)
|
||||
self._exit_animation_in_progress = False
|
||||
cleanup() # Fallback to cleanup if animation fails
|
||||
|
||||
def open_portproton_forum_topic(self, name):
|
||||
result = self.portproton_api.get_forum_topic_slug(name)
|
||||
|
||||
@@ -971,15 +971,69 @@ class ProtonManager(QDialog):
|
||||
if os.path.exists(filepath):
|
||||
total_size += os.path.getsize(filepath)
|
||||
|
||||
# Convert to human readable format
|
||||
for unit in ['B', 'KB', 'MB', 'GB']:
|
||||
if total_size < 1024.0:
|
||||
return f"{total_size:.1f} {unit}"
|
||||
total_size /= 1024.0
|
||||
return f"{total_size:.1f} TB"
|
||||
# Convert to human readable format (binary units)
|
||||
if total_size == 0:
|
||||
return "0 B"
|
||||
elif total_size < 1024:
|
||||
return f"{total_size}.0 B"
|
||||
elif total_size < 1024 * 1024:
|
||||
return f"{int(total_size / 1024)}.{int((total_size / 1024 * 10) % 10)} KiB"
|
||||
elif total_size < 1024 * 1024 * 1024:
|
||||
return f"{int(total_size / (1024 * 1024))}.{int((total_size / (1024 * 1024) * 10) % 10)} MiB"
|
||||
elif total_size < 1024 * 1024 * 1024 * 1024:
|
||||
return f"{int(total_size / (1024 * 1024 * 1024))}.{int((total_size / (1024 * 1024 * 1024) * 10) % 10)} GiB"
|
||||
else:
|
||||
return f"{int(total_size / (1024 * 1024 * 1024 * 1024))}.{int((total_size / (1024 * 1024 * 1024 * 1024) * 10) % 10)} TiB"
|
||||
except Exception:
|
||||
return _("Unknown")
|
||||
|
||||
def convert_size_to_bytes(self, size_str):
|
||||
"""Convert human-readable size string to bytes"""
|
||||
if not size_str or size_str == _("Unknown"):
|
||||
return 0
|
||||
|
||||
# Remove any extra text and extract the number and unit
|
||||
size_str = size_str.strip()
|
||||
|
||||
# Handle different units
|
||||
if size_str.endswith("TiB"):
|
||||
num = float(size_str[:-3].strip())
|
||||
return int(num * 1024 * 1024 * 1024 * 1024)
|
||||
elif size_str.endswith("GiB"):
|
||||
num = float(size_str[:-3].strip())
|
||||
return int(num * 1024 * 1024 * 1024)
|
||||
elif size_str.endswith("MiB"):
|
||||
num = float(size_str[:-3].strip())
|
||||
return int(num * 1024 * 1024)
|
||||
elif size_str.endswith("KiB"):
|
||||
num = float(size_str[:-3].strip())
|
||||
return int(num * 1024)
|
||||
elif size_str.endswith("B"):
|
||||
num = float(size_str[:-1].strip())
|
||||
return int(num)
|
||||
else:
|
||||
# If format is unknown, return 0
|
||||
return 0
|
||||
|
||||
def format_bytes(self, bytes_value):
|
||||
"""Format bytes to human-readable string"""
|
||||
if bytes_value == 0:
|
||||
return "0 B"
|
||||
elif bytes_value < 1024:
|
||||
return f"{bytes_value} B"
|
||||
elif bytes_value < 1024 * 1024:
|
||||
kb_value = bytes_value / 1024
|
||||
return f"{kb_value:.1f} KiB"
|
||||
elif bytes_value < 1024 * 1024 * 1024:
|
||||
mb_value = bytes_value / (1024 * 1024)
|
||||
return f"{mb_value:.1f} MiB"
|
||||
elif bytes_value < 1024 * 1024 * 1024 * 1024:
|
||||
gb_value = bytes_value / (1024 * 1024 * 1024)
|
||||
return f"{gb_value:.1f} GiB"
|
||||
else:
|
||||
tb_value = bytes_value / (1024 * 1024 * 1024 * 1024)
|
||||
return f"{tb_value:.1f} TiB"
|
||||
|
||||
def on_cell_clicked(self, row):
|
||||
"""Обработка клика по ячейке - переключение флажка при клике по любой ячейке в строке"""
|
||||
tab = self.tab_widget.currentWidget()
|
||||
@@ -1033,6 +1087,7 @@ class ProtonManager(QDialog):
|
||||
table = current_tab.findChild(QTableWidget)
|
||||
if table:
|
||||
selected_count = 0
|
||||
total_size = 0
|
||||
|
||||
for row in range(table.rowCount()):
|
||||
checkbox_widget = table.cellWidget(row, 0)
|
||||
@@ -1041,6 +1096,14 @@ class ProtonManager(QDialog):
|
||||
if checkbox and checkbox.isChecked():
|
||||
selected_count += 1
|
||||
|
||||
# Get the size for the selected item
|
||||
size_item = table.item(row, 2) # Size column
|
||||
if size_item:
|
||||
size_text = size_item.text()
|
||||
size_bytes = self.convert_size_to_bytes(size_text)
|
||||
if size_bytes:
|
||||
total_size += size_bytes
|
||||
|
||||
if selected_count > 0:
|
||||
selection_text = _('Selected {} assets:\n').format(selected_count)
|
||||
|
||||
@@ -1061,6 +1124,10 @@ class ProtonManager(QDialog):
|
||||
selection_text += f"{item_number}. {version_name}\n"
|
||||
item_number += 1
|
||||
|
||||
# Add total size to the selection text
|
||||
total_size_text = self.format_bytes(total_size)
|
||||
selection_text += _("\nTotal size to delete: {}\n").format(total_size_text)
|
||||
|
||||
self.download_btn.setText(_('Delete Selected'))
|
||||
self.download_btn.setEnabled(True)
|
||||
else:
|
||||
@@ -1078,9 +1145,49 @@ class ProtonManager(QDialog):
|
||||
if self.selected_assets:
|
||||
selection_text = _('Selected {} assets:\n').format(len(self.selected_assets))
|
||||
|
||||
total_size = 0
|
||||
|
||||
for i, asset_data in enumerate(self.selected_assets.values(), 1):
|
||||
selection_text += f"{i}. {asset_data['asset_name']}\n"
|
||||
|
||||
# Get size from JSON entry if available
|
||||
# We need to search through all tabs to find the matching entry
|
||||
for tab_index in range(self.tab_widget.count()):
|
||||
tab = self.tab_widget.widget(tab_index)
|
||||
table = tab.findChild(QTableWidget)
|
||||
if table and self.tab_widget.tabText(tab_index) != _("Installed"):
|
||||
# Search for the item in the table to get its size
|
||||
for row in range(table.rowCount()):
|
||||
table_item = table.item(row, 1) # Name column
|
||||
if table_item:
|
||||
# Extract just the name without extensions for comparison
|
||||
table_item_name = table_item.text()
|
||||
# Remove common extensions for comparison
|
||||
for ext in ['.tar.xz', '.tar.gz', '.zip']:
|
||||
if table_item_name.lower().endswith(ext):
|
||||
table_item_name = table_item_name[:-len(ext)]
|
||||
break
|
||||
|
||||
asset_name_for_comparison = asset_data['asset_name']
|
||||
for ext in ['.tar.xz', '.tar.gz', '.zip']:
|
||||
if asset_name_for_comparison.lower().endswith(ext):
|
||||
asset_name_for_comparison = asset_name_for_comparison[:-len(ext)]
|
||||
break
|
||||
|
||||
if table_item_name == asset_name_for_comparison:
|
||||
user_data = table_item.data(Qt.ItemDataRole.UserRole)
|
||||
if user_data and 'json_entry' in user_data:
|
||||
json_entry = user_data['json_entry']
|
||||
size_text = json_entry.get('size_human', 'Unknown')
|
||||
size_bytes = self.convert_size_to_bytes(size_text)
|
||||
if size_bytes:
|
||||
total_size += size_bytes
|
||||
break
|
||||
|
||||
# Add total size to the selection text
|
||||
total_size_text = self.format_bytes(total_size)
|
||||
selection_text += _("\nTotal size to download: {}\n").format(total_size_text)
|
||||
|
||||
self.selection_text.setPlainText(selection_text)
|
||||
self.download_btn.setText(_('Download Selected'))
|
||||
self.download_btn.setEnabled(True)
|
||||
|
||||
@@ -71,9 +71,11 @@ def load_pixmap_async(cover: str, width: int, height: int, callback: Callable[[Q
|
||||
pixmap = QPixmap(local_path)
|
||||
# Check if the pixmap loaded successfully
|
||||
if pixmap.isNull():
|
||||
logger.warning(f"Failed to load image from {local_path}")
|
||||
finish_with(pixmap)
|
||||
return
|
||||
logger.warning(f"Failed to load image from {local_path}, removing corrupted file")
|
||||
os.remove(local_path)
|
||||
else:
|
||||
finish_with(pixmap)
|
||||
return
|
||||
|
||||
def on_downloaded(result: str | None):
|
||||
pixmap = QPixmap()
|
||||
@@ -111,9 +113,11 @@ def load_pixmap_async(cover: str, width: int, height: int, callback: Callable[[Q
|
||||
pixmap = QPixmap(local_path)
|
||||
# Check if the pixmap loaded successfully
|
||||
if pixmap.isNull():
|
||||
logger.warning(f"Failed to load image from {local_path}")
|
||||
finish_with(pixmap)
|
||||
return
|
||||
logger.warning(f"Failed to load image from {local_path}, removing corrupted file")
|
||||
os.remove(local_path)
|
||||
else:
|
||||
finish_with(pixmap)
|
||||
return
|
||||
|
||||
def on_downloaded(result: str | None):
|
||||
pixmap = QPixmap()
|
||||
@@ -148,9 +152,11 @@ def load_pixmap_async(cover: str, width: int, height: int, callback: Callable[[Q
|
||||
pixmap = QPixmap(local_path)
|
||||
# Check if the pixmap loaded successfully
|
||||
if pixmap.isNull():
|
||||
logger.warning(f"Failed to load image from {local_path}")
|
||||
finish_with(pixmap)
|
||||
return
|
||||
logger.warning(f"Failed to load image from {local_path}, removing corrupted file")
|
||||
os.remove(local_path)
|
||||
else:
|
||||
finish_with(pixmap)
|
||||
return
|
||||
|
||||
def on_downloaded(result: str | None):
|
||||
pixmap = QPixmap()
|
||||
@@ -181,8 +187,13 @@ def load_pixmap_async(cover: str, width: int, height: int, callback: Callable[[Q
|
||||
# Check if the pixmap loaded successfully
|
||||
if pixmap.isNull():
|
||||
logger.warning(f"Failed to load image from {cover}")
|
||||
finish_with(pixmap)
|
||||
return
|
||||
# Remove corrupted file only if it's in the cache directory
|
||||
if cover.startswith(image_folder):
|
||||
logger.warning(f"Removing corrupted cached file {cover}")
|
||||
os.remove(cover)
|
||||
else:
|
||||
finish_with(pixmap)
|
||||
return
|
||||
|
||||
placeholder_path = theme_manager.get_theme_image("placeholder", current_theme_name)
|
||||
pixmap = QPixmap()
|
||||
|
||||
Binary file not shown.
@@ -9,7 +9,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2026-01-04 00:12+0500\n"
|
||||
"POT-Creation-Date: 2026-01-12 20:59+0500\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: de_DE\n"
|
||||
@@ -256,55 +256,6 @@ msgstr ""
|
||||
msgid "Select All"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Wine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Selected WINE:"
|
||||
msgstr ""
|
||||
|
||||
msgid "No WINE selected"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Selected"
|
||||
msgstr ""
|
||||
|
||||
msgid "Clear All"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Selected {} WINE:\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "No Selection"
|
||||
msgstr ""
|
||||
|
||||
msgid "Please select at least one WINE to delete."
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Are you sure you want to delete the following WINE versions?\n"
|
||||
"\n"
|
||||
"{}"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Failed to delete WINE '{}': {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Some Deletions Failed"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Some WINE versions could not be deleted:\n"
|
||||
"\n"
|
||||
"{}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Selected WINE versions deleted successfully."
|
||||
msgstr ""
|
||||
|
||||
msgid "Back"
|
||||
msgstr ""
|
||||
|
||||
@@ -381,6 +332,12 @@ msgstr ""
|
||||
msgid "Search"
|
||||
msgstr ""
|
||||
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
msgid "Clear All"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Launching {0}"
|
||||
msgstr ""
|
||||
@@ -422,9 +379,6 @@ msgstr ""
|
||||
msgid "Cover Preview:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invalid image"
|
||||
msgstr ""
|
||||
|
||||
@@ -545,7 +499,7 @@ msgstr ""
|
||||
msgid "Pending"
|
||||
msgstr ""
|
||||
|
||||
msgid "Get other Wine"
|
||||
msgid "Manage Wine versions"
|
||||
msgstr ""
|
||||
|
||||
msgid "Selected assets:"
|
||||
@@ -560,25 +514,84 @@ msgstr ""
|
||||
msgid "Download Selected"
|
||||
msgstr ""
|
||||
|
||||
msgid "Asset Name"
|
||||
msgid "Installed"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Error loading wine data: {error}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Version Name"
|
||||
msgstr ""
|
||||
|
||||
msgid "Size"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unknown"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "{display_name} (installed)"
|
||||
msgstr ""
|
||||
|
||||
msgid "No Wine/Proton versions installed"
|
||||
msgstr ""
|
||||
|
||||
msgid "Select to remove this version"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Selected {} assets:\n"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"\n"
|
||||
"Total size to delete: {}\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Selected"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"\n"
|
||||
"Total size to download: {}\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Downloading in Progress"
|
||||
msgstr ""
|
||||
|
||||
msgid "Cannot clear selection while extraction is in progress."
|
||||
msgstr ""
|
||||
|
||||
msgid "No Selection"
|
||||
msgstr ""
|
||||
|
||||
msgid "Please select at least one archive to download."
|
||||
msgstr ""
|
||||
|
||||
msgid "Please wait for current downloading to complete."
|
||||
msgstr ""
|
||||
|
||||
msgid "Please select at least one version to delete."
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Are you sure you want to delete {} selected version(s)?\n"
|
||||
"\n"
|
||||
"This action cannot be undone."
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Failed to remove version at {}: {}"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Successfully removed {} version(s)."
|
||||
msgstr ""
|
||||
|
||||
msgid "Downloading Complete"
|
||||
msgstr ""
|
||||
|
||||
@@ -716,16 +729,13 @@ msgstr ""
|
||||
msgid "Load Prefix Backup"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Compatibility Tool"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Prefix"
|
||||
msgstr ""
|
||||
|
||||
msgid "Clear Prefix"
|
||||
msgstr ""
|
||||
|
||||
msgid "Download other WINE"
|
||||
msgid "Manage WINE versions"
|
||||
msgstr ""
|
||||
|
||||
msgid "Launching tool..."
|
||||
@@ -905,9 +915,6 @@ msgstr ""
|
||||
msgid "No link"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unknown"
|
||||
msgstr ""
|
||||
|
||||
msgid "Name:"
|
||||
msgstr ""
|
||||
|
||||
|
||||
Binary file not shown.
@@ -9,7 +9,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2026-01-04 00:12+0500\n"
|
||||
"POT-Creation-Date: 2026-01-12 20:59+0500\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: es_ES\n"
|
||||
@@ -256,55 +256,6 @@ msgstr ""
|
||||
msgid "Select All"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Wine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Selected WINE:"
|
||||
msgstr ""
|
||||
|
||||
msgid "No WINE selected"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Selected"
|
||||
msgstr ""
|
||||
|
||||
msgid "Clear All"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Selected {} WINE:\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "No Selection"
|
||||
msgstr ""
|
||||
|
||||
msgid "Please select at least one WINE to delete."
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Are you sure you want to delete the following WINE versions?\n"
|
||||
"\n"
|
||||
"{}"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Failed to delete WINE '{}': {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Some Deletions Failed"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Some WINE versions could not be deleted:\n"
|
||||
"\n"
|
||||
"{}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Selected WINE versions deleted successfully."
|
||||
msgstr ""
|
||||
|
||||
msgid "Back"
|
||||
msgstr ""
|
||||
|
||||
@@ -381,6 +332,12 @@ msgstr ""
|
||||
msgid "Search"
|
||||
msgstr ""
|
||||
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
msgid "Clear All"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Launching {0}"
|
||||
msgstr ""
|
||||
@@ -422,9 +379,6 @@ msgstr ""
|
||||
msgid "Cover Preview:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invalid image"
|
||||
msgstr ""
|
||||
|
||||
@@ -545,7 +499,7 @@ msgstr ""
|
||||
msgid "Pending"
|
||||
msgstr ""
|
||||
|
||||
msgid "Get other Wine"
|
||||
msgid "Manage Wine versions"
|
||||
msgstr ""
|
||||
|
||||
msgid "Selected assets:"
|
||||
@@ -560,25 +514,84 @@ msgstr ""
|
||||
msgid "Download Selected"
|
||||
msgstr ""
|
||||
|
||||
msgid "Asset Name"
|
||||
msgid "Installed"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Error loading wine data: {error}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Version Name"
|
||||
msgstr ""
|
||||
|
||||
msgid "Size"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unknown"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "{display_name} (installed)"
|
||||
msgstr ""
|
||||
|
||||
msgid "No Wine/Proton versions installed"
|
||||
msgstr ""
|
||||
|
||||
msgid "Select to remove this version"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Selected {} assets:\n"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"\n"
|
||||
"Total size to delete: {}\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Selected"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"\n"
|
||||
"Total size to download: {}\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Downloading in Progress"
|
||||
msgstr ""
|
||||
|
||||
msgid "Cannot clear selection while extraction is in progress."
|
||||
msgstr ""
|
||||
|
||||
msgid "No Selection"
|
||||
msgstr ""
|
||||
|
||||
msgid "Please select at least one archive to download."
|
||||
msgstr ""
|
||||
|
||||
msgid "Please wait for current downloading to complete."
|
||||
msgstr ""
|
||||
|
||||
msgid "Please select at least one version to delete."
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Are you sure you want to delete {} selected version(s)?\n"
|
||||
"\n"
|
||||
"This action cannot be undone."
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Failed to remove version at {}: {}"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Successfully removed {} version(s)."
|
||||
msgstr ""
|
||||
|
||||
msgid "Downloading Complete"
|
||||
msgstr ""
|
||||
|
||||
@@ -716,16 +729,13 @@ msgstr ""
|
||||
msgid "Load Prefix Backup"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Compatibility Tool"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Prefix"
|
||||
msgstr ""
|
||||
|
||||
msgid "Clear Prefix"
|
||||
msgstr ""
|
||||
|
||||
msgid "Download other WINE"
|
||||
msgid "Manage WINE versions"
|
||||
msgstr ""
|
||||
|
||||
msgid "Launching tool..."
|
||||
@@ -905,9 +915,6 @@ msgstr ""
|
||||
msgid "No link"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unknown"
|
||||
msgstr ""
|
||||
|
||||
msgid "Name:"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PortProtonQt 0.1.1\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2026-01-04 00:12+0500\n"
|
||||
"POT-Creation-Date: 2026-01-12 20:59+0500\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@@ -254,55 +254,6 @@ msgstr ""
|
||||
msgid "Select All"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Wine"
|
||||
msgstr ""
|
||||
|
||||
msgid "Selected WINE:"
|
||||
msgstr ""
|
||||
|
||||
msgid "No WINE selected"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Selected"
|
||||
msgstr ""
|
||||
|
||||
msgid "Clear All"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Selected {} WINE:\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "No Selection"
|
||||
msgstr ""
|
||||
|
||||
msgid "Please select at least one WINE to delete."
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Are you sure you want to delete the following WINE versions?\n"
|
||||
"\n"
|
||||
"{}"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Failed to delete WINE '{}': {}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Some Deletions Failed"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Some WINE versions could not be deleted:\n"
|
||||
"\n"
|
||||
"{}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Selected WINE versions deleted successfully."
|
||||
msgstr ""
|
||||
|
||||
msgid "Back"
|
||||
msgstr ""
|
||||
|
||||
@@ -379,6 +330,12 @@ msgstr ""
|
||||
msgid "Search"
|
||||
msgstr ""
|
||||
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
msgid "Clear All"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Launching {0}"
|
||||
msgstr ""
|
||||
@@ -420,9 +377,6 @@ msgstr ""
|
||||
msgid "Cover Preview:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Apply"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invalid image"
|
||||
msgstr ""
|
||||
|
||||
@@ -543,7 +497,7 @@ msgstr ""
|
||||
msgid "Pending"
|
||||
msgstr ""
|
||||
|
||||
msgid "Get other Wine"
|
||||
msgid "Manage Wine versions"
|
||||
msgstr ""
|
||||
|
||||
msgid "Selected assets:"
|
||||
@@ -558,25 +512,84 @@ msgstr ""
|
||||
msgid "Download Selected"
|
||||
msgstr ""
|
||||
|
||||
msgid "Asset Name"
|
||||
msgid "Installed"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Error loading wine data: {error}"
|
||||
msgstr ""
|
||||
|
||||
msgid "Version Name"
|
||||
msgstr ""
|
||||
|
||||
msgid "Size"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unknown"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "{display_name} (installed)"
|
||||
msgstr ""
|
||||
|
||||
msgid "No Wine/Proton versions installed"
|
||||
msgstr ""
|
||||
|
||||
msgid "Select to remove this version"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Selected {} assets:\n"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"\n"
|
||||
"Total size to delete: {}\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Selected"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"\n"
|
||||
"Total size to download: {}\n"
|
||||
msgstr ""
|
||||
|
||||
msgid "Downloading in Progress"
|
||||
msgstr ""
|
||||
|
||||
msgid "Cannot clear selection while extraction is in progress."
|
||||
msgstr ""
|
||||
|
||||
msgid "No Selection"
|
||||
msgstr ""
|
||||
|
||||
msgid "Please select at least one archive to download."
|
||||
msgstr ""
|
||||
|
||||
msgid "Please wait for current downloading to complete."
|
||||
msgstr ""
|
||||
|
||||
msgid "Please select at least one version to delete."
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Are you sure you want to delete {} selected version(s)?\n"
|
||||
"\n"
|
||||
"This action cannot be undone."
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Failed to remove version at {}: {}"
|
||||
msgstr ""
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Successfully removed {} version(s)."
|
||||
msgstr ""
|
||||
|
||||
msgid "Downloading Complete"
|
||||
msgstr ""
|
||||
|
||||
@@ -714,16 +727,13 @@ msgstr ""
|
||||
msgid "Load Prefix Backup"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Compatibility Tool"
|
||||
msgstr ""
|
||||
|
||||
msgid "Delete Prefix"
|
||||
msgstr ""
|
||||
|
||||
msgid "Clear Prefix"
|
||||
msgstr ""
|
||||
|
||||
msgid "Download other WINE"
|
||||
msgid "Manage WINE versions"
|
||||
msgstr ""
|
||||
|
||||
msgid "Launching tool..."
|
||||
@@ -903,9 +913,6 @@ msgstr ""
|
||||
msgid "No link"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unknown"
|
||||
msgstr ""
|
||||
|
||||
msgid "Name:"
|
||||
msgstr ""
|
||||
|
||||
|
||||
Binary file not shown.
@@ -9,8 +9,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2026-01-04 00:12+0500\n"
|
||||
"PO-Revision-Date: 2026-01-03 20:32+0500\n"
|
||||
"POT-Creation-Date: 2026-01-12 20:59+0500\n"
|
||||
"PO-Revision-Date: 2026-01-12 20:59+0500\n"
|
||||
"Last-Translator: \n"
|
||||
"Language: ru_RU\n"
|
||||
"Language-Team: ru_RU <LL@li.org>\n"
|
||||
@@ -263,61 +263,6 @@ msgstr "Удалить"
|
||||
msgid "Select All"
|
||||
msgstr "Выбрать всё"
|
||||
|
||||
msgid "Delete Wine"
|
||||
msgstr "Удалить WINE"
|
||||
|
||||
msgid "Selected WINE:"
|
||||
msgstr "Выбранные WINE:"
|
||||
|
||||
msgid "No WINE selected"
|
||||
msgstr "WINE не выбраны"
|
||||
|
||||
msgid "Delete Selected"
|
||||
msgstr "Удалить выбранное"
|
||||
|
||||
msgid "Clear All"
|
||||
msgstr "Очистить выбранное"
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Selected {} WINE:\n"
|
||||
msgstr "Выбранно {} WINE:\n"
|
||||
|
||||
msgid "No Selection"
|
||||
msgstr "Не выбрано"
|
||||
|
||||
msgid "Please select at least one WINE to delete."
|
||||
msgstr "Пожалуйста выберите хотя бы один WINE для удаления."
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Are you sure you want to delete the following WINE versions?\n"
|
||||
"\n"
|
||||
"{}"
|
||||
msgstr ""
|
||||
"Вы уверены, что хотите удалить следующие версии WINE?\n"
|
||||
"\n"
|
||||
"{}"
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Failed to delete WINE '{}': {}"
|
||||
msgstr "Не удалось удалить WINE '{}': {}"
|
||||
|
||||
msgid "Some Deletions Failed"
|
||||
msgstr "Некоторые удаления не удалось выполнить"
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Some WINE versions could not be deleted:\n"
|
||||
"\n"
|
||||
"{}"
|
||||
msgstr ""
|
||||
"Некоторые версии WINE не удалось удалить:\n"
|
||||
"\n"
|
||||
"{}"
|
||||
|
||||
msgid "Selected WINE versions deleted successfully."
|
||||
msgstr "Выбранные версии WINE успешно удалены."
|
||||
|
||||
msgid "Back"
|
||||
msgstr "Назад"
|
||||
|
||||
@@ -394,6 +339,12 @@ msgstr "Сохранить"
|
||||
msgid "Search"
|
||||
msgstr "Поиск"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr "Применить"
|
||||
|
||||
msgid "Clear All"
|
||||
msgstr "Очистить выбранное"
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Launching {0}"
|
||||
msgstr "Запуск {0}"
|
||||
@@ -435,9 +386,6 @@ msgstr "Введите локальный путь или URL обложки"
|
||||
msgid "Cover Preview:"
|
||||
msgstr "Предпросмотр обложки:"
|
||||
|
||||
msgid "Apply"
|
||||
msgstr "Применить"
|
||||
|
||||
msgid "Invalid image"
|
||||
msgstr "Недопустимое изображение"
|
||||
|
||||
@@ -558,8 +506,8 @@ msgstr "Бронза"
|
||||
msgid "Pending"
|
||||
msgstr "В ожидании"
|
||||
|
||||
msgid "Get other Wine"
|
||||
msgstr "Загрузка WINE"
|
||||
msgid "Manage Wine versions"
|
||||
msgstr "Управление версиями WINE"
|
||||
|
||||
msgid "Selected assets:"
|
||||
msgstr "Выбранные WINE:"
|
||||
@@ -573,25 +521,91 @@ msgstr "Скачивание: "
|
||||
msgid "Download Selected"
|
||||
msgstr "Скачать выбранное"
|
||||
|
||||
msgid "Asset Name"
|
||||
msgstr "Наименование WINE"
|
||||
msgid "Installed"
|
||||
msgstr "Установленные"
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Error loading wine data: {error}"
|
||||
msgstr "Ошибка загрузки WINE: {error}"
|
||||
|
||||
msgid "Version Name"
|
||||
msgstr "Версия WINE"
|
||||
|
||||
msgid "Size"
|
||||
msgstr "Размер"
|
||||
|
||||
msgid "Unknown"
|
||||
msgstr "Неизвестен"
|
||||
|
||||
#, python-brace-format
|
||||
msgid "{display_name} (installed)"
|
||||
msgstr "{display_name} (установлен)"
|
||||
|
||||
msgid "No Wine/Proton versions installed"
|
||||
msgstr "Отсутствуют установленные WINE/Proton"
|
||||
|
||||
msgid "Select to remove this version"
|
||||
msgstr "Выберите, чтобы удалить WINE"
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Selected {} assets:\n"
|
||||
msgstr "Выбранно {} WINE:\n"
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"\n"
|
||||
"Total size to delete: {}\n"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"Общий размер на удаление: {}\n"
|
||||
|
||||
msgid "Delete Selected"
|
||||
msgstr "Удалить выбранное"
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"\n"
|
||||
"Total size to download: {}\n"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"Общий размер на загрузку: {}\n"
|
||||
|
||||
msgid "Downloading in Progress"
|
||||
msgstr "Скачивание"
|
||||
|
||||
msgid "Cannot clear selection while extraction is in progress."
|
||||
msgstr "Невозможно очистить выделение во время распаковки."
|
||||
|
||||
msgid "No Selection"
|
||||
msgstr "Не выбрано"
|
||||
|
||||
msgid "Please select at least one archive to download."
|
||||
msgstr "Пожалуйста выберите хотя бы один WINE для скачивания."
|
||||
|
||||
msgid "Please wait for current downloading to complete."
|
||||
msgstr "Пожалуйста подождите завершения скачивания."
|
||||
|
||||
msgid "Please select at least one version to delete."
|
||||
msgstr "Пожалуйста выберите хотя бы один WINE для удаления."
|
||||
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Are you sure you want to delete {} selected version(s)?\n"
|
||||
"\n"
|
||||
"This action cannot be undone."
|
||||
msgstr ""
|
||||
"Вы уверены, что хотите удалить {} выбранные WINE?\n"
|
||||
"\n"
|
||||
"Это действие нельзя отменить."
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Failed to remove version at {}: {}"
|
||||
msgstr "Не удалось удалить WINE '{}': {}"
|
||||
|
||||
#, python-brace-format
|
||||
msgid "Successfully removed {} version(s)."
|
||||
msgstr "Успешно удалено {} WINE."
|
||||
|
||||
msgid "Downloading Complete"
|
||||
msgstr "Скачивание завершено"
|
||||
|
||||
@@ -729,17 +743,14 @@ msgstr "Создать резервную копию префикса"
|
||||
msgid "Load Prefix Backup"
|
||||
msgstr "Загрузить резервную копию префикса"
|
||||
|
||||
msgid "Delete Compatibility Tool"
|
||||
msgstr "Удалить WINE"
|
||||
|
||||
msgid "Delete Prefix"
|
||||
msgstr "Удалить Префикс"
|
||||
|
||||
msgid "Clear Prefix"
|
||||
msgstr "Очистить Префикс"
|
||||
|
||||
msgid "Download other WINE"
|
||||
msgstr "Скачать другие WINE"
|
||||
msgid "Manage WINE versions"
|
||||
msgstr "Управление версиями WINE"
|
||||
|
||||
msgid "Launching tool..."
|
||||
msgstr "Запуск инструмента..."
|
||||
@@ -920,9 +931,6 @@ msgstr "Применить тему"
|
||||
msgid "No link"
|
||||
msgstr "Нет ссылки"
|
||||
|
||||
msgid "Unknown"
|
||||
msgstr "Неизвестен"
|
||||
|
||||
msgid "Name:"
|
||||
msgstr "Название:"
|
||||
|
||||
|
||||
@@ -33,11 +33,21 @@ LOCALE_MAP = {
|
||||
'el': 'greek',
|
||||
}
|
||||
|
||||
translate = gettext.translation(
|
||||
domain="messages",
|
||||
localedir = Path(__file__).parent / "locales",
|
||||
fallback=True,
|
||||
)
|
||||
# Try system locale directory first, fallback to local for development
|
||||
_system_localedir = Path("/usr/share/locale")
|
||||
_local_localedir = Path(__file__).parent / "locales"
|
||||
|
||||
try:
|
||||
translate = gettext.translation(
|
||||
domain="portprotonqt",
|
||||
localedir=_system_localedir,
|
||||
)
|
||||
except FileNotFoundError:
|
||||
translate = gettext.translation(
|
||||
domain="messages",
|
||||
localedir=_local_localedir,
|
||||
fallback=True,
|
||||
)
|
||||
_ = translate.gettext
|
||||
|
||||
def get_system_locale():
|
||||
|
||||
60
portprotonqt/meson.build
Normal file
60
portprotonqt/meson.build
Normal file
@@ -0,0 +1,60 @@
|
||||
# Install Python source files
|
||||
install_data(
|
||||
'__init__.py',
|
||||
'animations.py',
|
||||
'app.py',
|
||||
'cli.py',
|
||||
'config_utils.py',
|
||||
'context_menu_manager.py',
|
||||
'custom_widgets.py',
|
||||
'detail_pages.py',
|
||||
'dialogs.py',
|
||||
'downloader.py',
|
||||
'egs_api.py',
|
||||
'game_card.py',
|
||||
'game_library_manager.py',
|
||||
'get_wine_module.py',
|
||||
'howlongtobeat_api.py',
|
||||
'image_utils.py',
|
||||
'input_manager.py',
|
||||
'keyboard_layouts.py',
|
||||
'localization.py',
|
||||
'logger.py',
|
||||
'main_window.py',
|
||||
'portproton_api.py',
|
||||
'preloader.py',
|
||||
'search_utils.py',
|
||||
'settings_manager.py',
|
||||
'steam_api.py',
|
||||
'system_overlay.py',
|
||||
'theme_manager.py',
|
||||
'theme_security.py',
|
||||
'time_utils.py',
|
||||
'tray_manager.py',
|
||||
'version_utils.py',
|
||||
'virtual_keyboard.py',
|
||||
install_dir: pkgdatadir,
|
||||
)
|
||||
|
||||
# Install themes
|
||||
install_subdir(
|
||||
'themes',
|
||||
install_dir: pkgdatadir,
|
||||
exclude_directories: ['__pycache__'],
|
||||
exclude_files: ['*.pyc'],
|
||||
)
|
||||
|
||||
# Install locales to standard location
|
||||
localedir = get_option('prefix') / get_option('localedir')
|
||||
locale_map = {
|
||||
'de': 'de_DE',
|
||||
'es': 'es_ES',
|
||||
'ru': 'ru_RU',
|
||||
}
|
||||
foreach short_lang, src_lang : locale_map
|
||||
install_data(
|
||||
'locales' / src_lang / 'LC_MESSAGES' / 'messages.mo',
|
||||
install_dir: localedir / short_lang / 'LC_MESSAGES',
|
||||
rename: 'portprotonqt.mo',
|
||||
)
|
||||
endforeach
|
||||
@@ -94,8 +94,13 @@ def parse_playtime_file(file_path):
|
||||
if len(parts) < 3:
|
||||
continue
|
||||
exe_path = parts[0]
|
||||
seconds = int(parts[2])
|
||||
playtime_data[exe_path] = seconds
|
||||
# Find playtime: first numeric value after exe_path
|
||||
# Format: <exe_path> <hash> <playtime_seconds> <platform> ...
|
||||
# Hash is 64 hex chars, playtime is digits only
|
||||
for i in range(1, len(parts)):
|
||||
if parts[i].isdigit():
|
||||
playtime_data[exe_path] = int(parts[i])
|
||||
break
|
||||
return playtime_data
|
||||
|
||||
def format_playtime(seconds):
|
||||
|
||||
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "portprotonqt"
|
||||
version = "0.1.9"
|
||||
version = "0.1.10"
|
||||
description = "A project to rewrite PortProton (PortWINE) using PySide"
|
||||
readme = "README.md"
|
||||
license = { text = "GPL-3.0" }
|
||||
|
||||
Reference in New Issue
Block a user