[CI] Cleanup packaging dependencies
This commit is contained in:
parent
ad27a278fd
commit
9d4ca77ef7
|
@ -45,30 +45,35 @@ jobs:
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Prepare pip
|
||||||
|
run: python -m pip install --upgrade pip wheel
|
||||||
|
|
||||||
|
- name: Install GTK
|
||||||
run: |
|
run: |
|
||||||
$WebClient = New-Object System.Net.WebClient
|
$WebClient = New-Object System.Net.WebClient
|
||||||
$WebClient.DownloadFile("https://github.com/deluge-torrent/gvsbuild-release/releases/download/latest/gvsbuild-py${{ matrix.python }}-vs16-${{ matrix.arch }}.zip","C:\GTK.zip")
|
$WebClient.DownloadFile("https://github.com/deluge-torrent/gvsbuild-release/releases/download/latest/gvsbuild-py${{ matrix.python }}-vs16-${{ matrix.arch }}.zip","C:\GTK.zip")
|
||||||
7z x C:\GTK.zip -oc:\GTK
|
7z x C:\GTK.zip -oc:\GTK
|
||||||
$env:Path = "C:\GTK\release;C:\GTK\release\bin;C:\GTK\release\lib;$env:Path"
|
echo "C:\GTK\release\lib" | Out-File -FilePath $env:GITHUB_PATH -Append
|
||||||
python -m pip install --upgrade pip wheel
|
echo "C:\GTK\release\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
|
||||||
$pycairopath = Get-Childitem –Path "C:\GTK\release\python\" -Include pycairo*.whl -File -Recurse -ErrorAction SilentlyContinue | select -expand FullName
|
echo "C:\GTK\release" | Out-File -FilePath $env:GITHUB_PATH -Append
|
||||||
$PyGObjectpath = Get-Childitem –Path "C:\GTK\release\python\" -Include PyGObject*.whl -File -Recurse -ErrorAction SilentlyContinue | select -expand FullName
|
|
||||||
pip install $pycairopath
|
- name: Install Python dependencies
|
||||||
pip install $PyGObjectpath
|
run: >
|
||||||
pip install https://github.com/doadin/twisted/releases/download/latest/Twisted-21.7.0.post0-py3-none-any.whl
|
python -m pip install --find-links="C:\GTK\release\python" pycairo PyGObject
|
||||||
python -m pip install libtorrent==${{ matrix.libtorrent }}
|
|
||||||
pip install -r requirements.txt
|
python -m pip install
|
||||||
pip install pyinstaller
|
https://github.com/doadin/twisted/releases/download/latest/Twisted-21.7.0.post0-py3-none-any.whl
|
||||||
|
libtorrent==${{ matrix.libtorrent }}
|
||||||
|
pyinstaller
|
||||||
|
-r requirements.txt
|
||||||
|
|
||||||
- name: Install Deluge
|
- name: Install Deluge
|
||||||
run: |
|
run: |
|
||||||
pip install .
|
python -m pip install .
|
||||||
python setup.py install_scripts
|
python setup.py install_scripts
|
||||||
|
|
||||||
- name: Freeze Deluge
|
- name: Freeze Deluge
|
||||||
run: |
|
run: |
|
||||||
$env:Path = "C:\GTK\release;C:\GTK\release\bin;C:\GTK\release\lib;$env:Path"
|
|
||||||
pyinstaller --clean $env:GITHUB_WORKSPACE\packaging\win\delugewin.spec --distpath $env:GITHUB_WORKSPACE\packaging\win\freeze
|
pyinstaller --clean $env:GITHUB_WORKSPACE\packaging\win\delugewin.spec --distpath $env:GITHUB_WORKSPACE\packaging\win\freeze
|
||||||
|
|
||||||
- name: Fix OpenSSL For Libtorrent
|
- name: Fix OpenSSL For Libtorrent
|
||||||
|
|
Loading…
Reference in New Issue