diff --git a/.gitea/workflows/build-nightlly.yml b/.gitea/workflows/build-nightlly.yml index e0749c0..918133e 100644 --- a/.gitea/workflows/build-nightlly.yml +++ b/.gitea/workflows/build-nightlly.yml @@ -116,7 +116,7 @@ jobs: - name: Build run: | cd /__w/portproton-repo - git clone https://github.com/Boria138/PortProtonQt.git + git clone https://git.linux-gaming.ru/Boria138/PortProtonQt.git cd /__w/portproton-repo/PortProtonQt/build-aux chown user -R .. su user -c "yes '' | makepkg --noconfirm -s -p PKGBUILD-git" diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 18fcaf8..b4322c0 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -73,7 +73,7 @@ jobs: - name: Build run: | cd /__w/portproton-repo - git clone https://github.com/Boria138/PortProtonQt.git + git clone https://git.linux-gaming.ru/Boria138/PortProtonQt.git cd /__w/portproton-repo/PortProtonQt/build-aux chown user -R .. su user -c "yes '' | makepkg --noconfirm -s" diff --git a/build-aux/PKGBUILD b/build-aux/PKGBUILD index d41adfa..3328598 100644 --- a/build-aux/PKGBUILD +++ b/build-aux/PKGBUILD @@ -3,12 +3,12 @@ pkgver=0.1.1 pkgrel=1 pkgdesc="A modern GUI for PortProton project." arch=('any') -url="https://github.com/Boria138/PortProtonQt" -license=('MIT') +url="https://git.linux-gaming.ru/Boria138/PortProtonQt" +license=('GPL-3.0') depends=('python-numpy' 'python-requests' 'python-babel' 'python-evdev' 'python-pyudev' 'python-orjson' 'python-psutil' 'python-tqdm' 'python-vdf' 'pyside6' 'icoextract' 'python-pillow' 'perl-image-exiftool' 'xdg-utils') makedepends=('python-'{'build','installer','setuptools','wheel'}) -source=("git+https://github.com/Boria138/PortProtonQt.git#tag=$pkgver") +source=("git+https://git.linux-gaming.ru/Boria138/PortProtonQt#tag=$pkgver") sha256sums=('SKIP') build() { diff --git a/build-aux/PKGBUILD-git b/build-aux/PKGBUILD-git index c7155f9..df6a054 100644 --- a/build-aux/PKGBUILD-git +++ b/build-aux/PKGBUILD-git @@ -3,12 +3,12 @@ pkgver=. pkgrel=1 pkgdesc="A modern GUI for PortProton project.(developerment build)" arch=('any') -url="https://github.com/Boria138/PortProtonQt" -license=('MIT') +url="https://git.linux-gaming.ru/Boria138/PortProtonQt" +license=('GPL-3.0') depends=('python-numpy' 'python-requests' 'python-babel' 'python-evdev' 'python-pyudev' 'python-orjson' 'python-psutil' 'python-tqdm' 'python-vdf' 'pyside6' 'icoextract' 'python-pillow' 'perl-image-exiftool' 'xdg-utils') makedepends=('python-'{'build','installer','setuptools','wheel'}) -source=("git+https://github.com/Boria138/PortProtonQt") +source=("git+https://git.linux-gaming.ru/Boria138/PortProtonQt.git") sha256sums=('SKIP') pkgver() { diff --git a/build-aux/fedora-git.spec b/build-aux/fedora-git.spec index 8ed3f50..2e8b8d6 100644 --- a/build-aux/fedora-git.spec +++ b/build-aux/fedora-git.spec @@ -10,8 +10,8 @@ Version: %{pypi_version} Release: %{rel_build} Summary: A modern GUI for PortProton project (devel build) -License: MIT -URL: https://github.com/Boria138/PortProtonQt +License: GPL-3.0 +URL: https://git.linux-gaming.ru/Boria138/PortProtonQt BuildArch: noarch BuildRequires: python3-devel @@ -49,7 +49,7 @@ PortProtonQt is a modern graphical user interface for the PortProton project, designed to simplify the management and launching of games using Wine and Proton. %prep -git clone https://github.com/Boria138/PortProtonQt +git clone https://git.linux-gaming.ru/Boria138/PortProtonQt.git %build cd %{oname} diff --git a/build-aux/fedora.spec b/build-aux/fedora.spec index 4f91b5b..8b67410 100644 --- a/build-aux/fedora.spec +++ b/build-aux/fedora.spec @@ -7,8 +7,8 @@ Version: %{pypi_version} Release: 1%{?dist} Summary: A modern GUI for PortProton project -License: MIT -URL: https://github.com/Boria138/PortProtonQt +License: GPL-3.0 +URL: https://git.linux-gaming.ru/Boria138/PortProtonQt BuildArch: noarch BuildRequires: python3-devel @@ -46,7 +46,7 @@ PortProtonQt is a modern graphical user interface for the PortProton project, designed to simplify the management and launching of games using Wine and Proton. %prep -git clone https://github.com/Boria138/PortProtonQt +git clone https://git.linux-gaming.ru/Boria138/PortProtonQt cd %{oname} git checkout %{pypi_version} diff --git a/dev-scripts/bump_ver.py b/dev-scripts/bump_ver.py index d7595b0..851fcc0 100755 --- a/dev-scripts/bump_ver.py +++ b/dev-scripts/bump_ver.py @@ -12,7 +12,6 @@ ARCH_PKGBUILD = BASE_DIR / "build-aux" / "PKGBUILD" FEDORA_SPEC = BASE_DIR / "build-aux" / "fedora.spec" PYPROJECT = BASE_DIR / "pyproject.toml" APP_PY = BASE_DIR / "portprotonqt" / "app.py" -GITHUB_WORKFLOW = BASE_DIR / ".github" / "workflows" / "build.yml" GITEA_WORKFLOW = BASE_DIR / ".gitea" / "workflows" / "build.yml" def bump_appimage(path: Path, old: str, new: str) -> bool: @@ -87,7 +86,7 @@ def bump_app_py(path: Path, old: str, new: str) -> bool: def bump_workflow(path: Path, old: str, new: str) -> bool: """ - Update VERSION in GitHub or Gitea Actions workflow + Update VERSION in Gitea Actions workflow """ if not path.exists(): return False @@ -112,7 +111,6 @@ def main(): (FEDORA_SPEC, bump_fedora), (PYPROJECT, bump_pyproject), (APP_PY, bump_app_py), - (GITHUB_WORKFLOW, bump_workflow), (GITEA_WORKFLOW, bump_workflow) ] diff --git a/dev-scripts/push-to-gitea.sh b/dev-scripts/push-to-gitea.sh index e74e056..4ebb227 100755 --- a/dev-scripts/push-to-gitea.sh +++ b/dev-scripts/push-to-gitea.sh @@ -3,20 +3,18 @@ set -e timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ") -AUTHOR_EMAIL=${INPUT_AUTHOR_EMAIL:-'gitea-actions@users.noreply.gitea.com'} -AUTHOR_NAME=${INPUT_AUTHOR_NAME:-'Gitea Actions'} -MESSAGE=${INPUT_MESSAGE:-"chore: update steam apps list ${timestamp}"} +AUTHOR_EMAIL='gitea-actions@users.noreply.gitea.com' +AUTHOR_NAME='Gitea Actions' +MESSAGE="chore: update steam apps list ${timestamp}" BRANCH=main -INPUT_DIRECTORY=${INPUT_DIRECTORY:-'.'} - -echo "Push to branch $INPUT_BRANCH" +echo "Push to branch $BRANCH" [ -z "${GITEA_TOKEN}" ] && { echo 'Missing input "gitea_token: bcde86030adcb863b8ff96f994ecf248ced607e4".' exit 1 } -cd "${INPUT_DIRECTORY}" +cd "." remote_repo="https://${GITEA_ACTOR}:${GITEA_TOKEN}@${GITEA_SERVER}/${GITEA_REPOSITORY}.git" diff --git a/portprotonqt/steam_api.py b/portprotonqt/steam_api.py index df72b03..514ba73 100644 --- a/portprotonqt/steam_api.py +++ b/portprotonqt/steam_api.py @@ -311,8 +311,7 @@ def load_steam_apps_async(callback: Callable[[list], None]): callback([]) else: app_list_url = ( - "https://raw.githubusercontent.com/Boria138/PortProtonQt/" - "refs/heads/main/data/games_appid.tar.xz" + "https://git.linux-gaming.ru/Boria138/PortProtonQt/raw/branch/main/data/games_appid.tar.xz" ) downloader.download_async(app_list_url, cache_tar, timeout=5, callback=process_tar) @@ -457,8 +456,7 @@ def load_weanticheatyet_data_async(callback: Callable[[list], None]): callback([]) else: app_list_url = ( - "https://raw.githubusercontent.com/Boria138/PortProtonQt/" - "refs/heads/main/data/anticheat_games.tar.xz" + "https://git.linux-gaming.ru/Boria138/PortProtonQt/raw/branch/main/data/anticheat_games.tar.xz" ) downloader.download_async(app_list_url, cache_tar, timeout=5, callback=process_tar)