Fix release symlinks

This commit is contained in:
Michael Telatynski 2024-01-16 19:53:47 +00:00 committed by GitHub
parent 1fccadd42e
commit 094926f849
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -164,20 +164,26 @@ jobs:
# Windows # Windows
for arch in x64 ia32 arm64 for arch in x64 ia32 arm64
do do
pushd packages.element.io/install/win32/$arch if [ -d "win-$arch" ]; then
[ -d "win-$arch" ] && ln -s "$(find . -type f -iname "*.exe" | xargs -0 -n1 -- basename)" "Element Setup.exe" pushd packages.element.io/install/win32/$arch
popd ln -s "$(find . -type f -iname "*.exe" | xargs -0 -n1 -- basename)" "Element Setup.exe"
popd
fi
done done
# macOS # macOS
pushd packages.element.io/install/macos if [ -d macos ]; then
[ -d macos ] && ln -s "$(find . -type f -iname "*.dmg" | xargs -0 -n1 -- basename)" "Element.dmg" pushd packages.element.io/install/macos
popd ln -s "$(find . -type f -iname "*.dmg" | xargs -0 -n1 -- basename)" "Element.dmg"
popd
fi
# Linux # Linux
pushd packages.element.io/install/glibc-x86-64 if [ -d linux-amd64-sqlcipher-static ]; then
[ -d linux-amd64-sqlcipher-static ] && ln -s "$(find . -type f -iname "*.tar.gz" | xargs -0 -n1 -- basename)" "element-desktop.tar.gz" pushd packages.element.io/install/glibc-x86-64
popd ln -s "$(find . -type f -iname "*.tar.gz" | xargs -0 -n1 -- basename)" "element-desktop.tar.gz"
popd
fi
- name: Deploy artifacts - name: Deploy artifacts
run: | run: |