From 094926f8497121c99b2eeba7e9a8e581378a867a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 16 Jan 2024 19:53:47 +0000 Subject: [PATCH] Fix release symlinks --- .github/workflows/build_and_deploy.yaml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_and_deploy.yaml b/.github/workflows/build_and_deploy.yaml index f8412da..3da6130 100644 --- a/.github/workflows/build_and_deploy.yaml +++ b/.github/workflows/build_and_deploy.yaml @@ -164,20 +164,26 @@ jobs: # Windows for arch in x64 ia32 arm64 do - pushd packages.element.io/install/win32/$arch - [ -d "win-$arch" ] && ln -s "$(find . -type f -iname "*.exe" | xargs -0 -n1 -- basename)" "Element Setup.exe" - popd + if [ -d "win-$arch" ]; then + pushd packages.element.io/install/win32/$arch + ln -s "$(find . -type f -iname "*.exe" | xargs -0 -n1 -- basename)" "Element Setup.exe" + popd + fi done # macOS - pushd packages.element.io/install/macos - [ -d macos ] && ln -s "$(find . -type f -iname "*.dmg" | xargs -0 -n1 -- basename)" "Element.dmg" - popd + if [ -d macos ]; then + pushd packages.element.io/install/macos + ln -s "$(find . -type f -iname "*.dmg" | xargs -0 -n1 -- basename)" "Element.dmg" + popd + fi # Linux - pushd packages.element.io/install/glibc-x86-64 - [ -d linux-amd64-sqlcipher-static ] && ln -s "$(find . -type f -iname "*.tar.gz" | xargs -0 -n1 -- basename)" "element-desktop.tar.gz" - popd + if [ -d linux-amd64-sqlcipher-static ]; then + pushd packages.element.io/install/glibc-x86-64 + ln -s "$(find . -type f -iname "*.tar.gz" | xargs -0 -n1 -- basename)" "element-desktop.tar.gz" + popd + fi - name: Deploy artifacts run: |