forked from Boria138/PortProtonQt
chore(build): added Debian
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@@ -8,6 +8,36 @@ env:
|
||||
PACKAGE: "portprotonqt"
|
||||
|
||||
jobs:
|
||||
build-deb:
|
||||
name: Build Debian Package
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y build-essential git python3-dev python3-pip python3-wheel debhelper dh-python \
|
||||
devscripts python3-all bash-completion python3-setuptools
|
||||
|
||||
- name: Checkout repo
|
||||
uses: https://gitea.com/actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
|
||||
|
||||
- name: Build Debian package
|
||||
run: |
|
||||
# Copy the debian directory to the root for proper packaging
|
||||
cp -r build-aux/debian .
|
||||
|
||||
# Build the package
|
||||
dpkg-buildpackage -us -uc -b
|
||||
|
||||
mv ../*.deb .
|
||||
|
||||
- name: Upload Debian package
|
||||
uses: https://gitea.com/actions/gitea-upload-artifact@v4
|
||||
with:
|
||||
name: PortProtonQt-Debian
|
||||
path: "*.deb"
|
||||
|
||||
build-appimage:
|
||||
name: Build AppImage
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
@@ -147,9 +147,37 @@ jobs:
|
||||
name: PortProtonQt-RPM-Fedora-${{ matrix.fedora_version }}
|
||||
path: /home/rpmbuild/RPMS/**/*.rpm
|
||||
|
||||
build-deb:
|
||||
name: Build Debian Package
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y build-essential git python3-dev python3-pip python3-wheel debhelper dh-python \
|
||||
devscripts python3-all bash-completion python3-setuptools
|
||||
|
||||
- name: Checkout repo
|
||||
uses: https://gitea.com/actions/checkout@v4
|
||||
|
||||
- name: Build Debian package
|
||||
run: |
|
||||
# Copy the debian directory to the root for proper packaging
|
||||
cp -r build-aux/debian .
|
||||
|
||||
# Build the package
|
||||
dpkg-buildpackage -us -uc -b
|
||||
|
||||
- name: Upload Debian package
|
||||
uses: https://gitea.com/actions/gitea-upload-artifact@v4
|
||||
with:
|
||||
name: PortProtonQt-Debian
|
||||
path: "*.deb"
|
||||
|
||||
release:
|
||||
name: Create and Publish Release
|
||||
needs: [build-appimage, build-arch, build-fedora]
|
||||
needs: [build-appimage, build-arch, build-fedora, build-deb]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: https://gitea.com/actions/checkout@v4
|
||||
|
||||
@@ -16,7 +16,7 @@ source .venv/bin/activate
|
||||
|
||||
### Установка (release)
|
||||
|
||||
Выберите подходящий пакет для вашей системы или AppImage.
|
||||
Выберите подходящий пакет для вашей системы (deb, rpm, arch) или AppImage.
|
||||
|
||||
Запуск производится по команде portprotonqt или по ярлыку в меню
|
||||
|
||||
|
||||
5
build-aux/debian/changelog
Normal file
5
build-aux/debian/changelog
Normal file
@@ -0,0 +1,5 @@
|
||||
portprotonqt (0.1.9-1) unstable; urgency=medium
|
||||
|
||||
* Initial release for Debian packaging
|
||||
|
||||
-- Boris Yumankulov <boria138@altlinux.org> Wed, 03 Dec 2025 12:00:00 +0000
|
||||
44
build-aux/debian/control
Normal file
44
build-aux/debian/control
Normal file
@@ -0,0 +1,44 @@
|
||||
Source: portprotonqt
|
||||
Section: python
|
||||
Priority: optional
|
||||
Maintainer: Boris Yumankulov <boria138@altlinux.org>
|
||||
Build-Depends: debhelper-compat (= 13),
|
||||
dh-python,
|
||||
python3-all,
|
||||
python3-setuptools,
|
||||
python3-pip
|
||||
Standards-Version: 4.6.0
|
||||
Homepage: https://git.linux-gaming.ru/Boria138/PortProtonQt
|
||||
Rules-Requires-Root: no
|
||||
X-Python3-Version: >= 3.10
|
||||
|
||||
Package: portprotonqt
|
||||
Architecture: all
|
||||
Depends: ${python3:Depends}, ${misc:Depends},
|
||||
python3-babel,
|
||||
python3-beautifulsoup4,
|
||||
python3-evdev,
|
||||
python3-icoextract,
|
||||
python3-numpy,
|
||||
python3-orjson,
|
||||
python3-pillow,
|
||||
python3-psutil,
|
||||
python3-pyside6,
|
||||
python3-pyudev,
|
||||
python3-rapidfuzz,
|
||||
python3-requests,
|
||||
python3-tqdm,
|
||||
python3-vdf,
|
||||
python3-websocket-client,
|
||||
perl-image-exiftool,
|
||||
xdg-utils,
|
||||
cabextract,
|
||||
curl,
|
||||
gzip,
|
||||
unzip,
|
||||
unrar
|
||||
Description: Modern GUI for managing and launching games from PortProton, Steam, and Epic Games Store
|
||||
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.
|
||||
24
build-aux/debian/copyright
Normal file
24
build-aux/debian/copyright
Normal file
@@ -0,0 +1,24 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: PortProtonQt
|
||||
Source: https://git.linux-gaming.ru/Boria138/PortProtonQt
|
||||
|
||||
Files: *
|
||||
Copyright: 2023-2025 Boria138, BlackSnaker, Mikhail Tergoev(Castro-Fidel)
|
||||
License: GPL-3.0+
|
||||
|
||||
License: GPL-3.0+
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
.
|
||||
On Debian systems, the complete text of the GPL-3.0+ license
|
||||
can be found in /usr/share/common-licenses/GPL-3.
|
||||
25
build-aux/debian/rules
Executable file
25
build-aux/debian/rules
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@ --with python3
|
||||
|
||||
override_dh_auto_build:
|
||||
python3 -m pip install --user --no-deps --ignore-installed .
|
||||
|
||||
override_dh_auto_install:
|
||||
# Install Python modules
|
||||
python3 -m pip install --no-deps --ignore-installed --prefix=$(CURDIR)/debian/portprotonqt/usr .
|
||||
|
||||
# Install desktop files and icons
|
||||
install -d $(CURDIR)/debian/portprotonqt/usr/share/applications
|
||||
install -m 644 $(CURDIR)/../build-aux/share/applications/ru.linux_gaming.PortProtonQt.desktop \
|
||||
$(CURDIR)/debian/portprotonqt/usr/share/applications/
|
||||
|
||||
install -d $(CURDIR)/debian/portprotonqt/usr/share/icons/hicolor/scalable/apps
|
||||
install -m 644 $(CURDIR)/../build-aux/share/icons/hicolor/scalable/apps/ru.linux_gaming.PortProtonQt.svg \
|
||||
$(CURDIR)/debian/portprotonqt/usr/share/icons/hicolor/scalable/apps/
|
||||
|
||||
# Install metainfo file
|
||||
install -d $(CURDIR)/debian/portprotonqt/usr/share/metainfo
|
||||
install -m 644 $(CURDIR)/../build-aux/share/metainfo/ru.linux_gaming.PortProtonQt.metainfo.xml \
|
||||
$(CURDIR)/debian/portprotonqt/usr/share/metainfo/
|
||||
1
build-aux/debian/source/format
Normal file
1
build-aux/debian/source/format
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
||||
7
build-aux/debian/source/options
Normal file
7
build-aux/debian/source/options
Normal file
@@ -0,0 +1,7 @@
|
||||
extend-diff-ignore = "^[^/]*[.]egg-info/"
|
||||
compression = "gzip"
|
||||
tar-ignore = "dev-scripts"
|
||||
tar-ignore = ".*"
|
||||
tar-ignore = "__pycache__"
|
||||
tar-ignore = "build-aux"
|
||||
tar-ignore = "data"
|
||||
@@ -0,0 +1,2 @@
|
||||
"""PortProtonQt - A project to rewrite PortProton (PortWINE) using PySide."""
|
||||
__version__ = "0.1.9"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[build-system]
|
||||
requires = ["setuptools >= 77.0.3"]
|
||||
requires = ["setuptools >= 77.0.3", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
@@ -46,12 +46,13 @@ dependencies = [
|
||||
[project.scripts]
|
||||
portprotonqt = "portprotonqt.app:main"
|
||||
|
||||
[tool.setuptools]
|
||||
packages = ["portprotonqt"]
|
||||
include-package-data = true
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
"portprotonqt" = ["themes/**/*", "locales/**/*"]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
exclude = ["build-aux", "dev-scripts", "documentation", "data"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"E", # pycodestyle errors
|
||||
|
||||
Reference in New Issue
Block a user