From d4f8775f442f782b04b08f515026d64811eb185a Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 8 Feb 2022 19:29:38 +0000 Subject: [PATCH] [CI] Use working dir to shorten commands Making the workflows more readable --- .github/workflows/cd.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 9c6ce2d9d..2dbd07b61 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -87,14 +87,16 @@ jobs: python setup.py install_scripts - name: Freeze Deluge + working-directory: packaging/win run: | - pyinstaller --clean $env:GITHUB_WORKSPACE\packaging\win\delugewin.spec --distpath $env:GITHUB_WORKSPACE\packaging\win\freeze + pyinstaller --clean delugewin.spec --distpath freeze - - name: Fix OpenSSL For Libtorrent + - name: Fix OpenSSL for libtorrent x64 if: ${{ matrix.arch == 'x64' }} + working-directory: packaging/win/freeze/Deluge run: | - Copy-Item -Path $env:GITHUB_WORKSPACE\packaging\win\freeze\Deluge\libssl-1_1.dll -Destination $env:GITHUB_WORKSPACE\packaging\win\freeze\Deluge\libssl-1_1-x64.dll - Copy-Item -Path $env:GITHUB_WORKSPACE\packaging\win\freeze\Deluge\libcrypto-1_1.dll -Destination $env:GITHUB_WORKSPACE\packaging\win\freeze\Deluge\libcrypto-1_1-x64.dll + cp libssl-1_1.dll libssl-1_1-x64.dll + cp libcrypto-1_1.dll libcrypto-1_1-x64.dll - name: Make Deluge Installer working-directory: ./packaging/win