Skip to content

Commit 7de8443

Browse files
committed
fix: check workspace root target directory for Tauri bundles
1 parent 8ccd547 commit 7de8443

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/desktop-release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,16 @@ jobs:
6666
shell: bash
6767
run: |
6868
mkdir -p bundle-artifacts
69-
# Find and copy all installer files
69+
# Find and copy all installer files from workspace root target (Tauri outputs here in workspaces)
70+
find target -type f \( -name "*.dmg" -o -name "*.msi" -o -name "*.deb" -o -name "*.rpm" -o -name "*.AppImage" \) -exec cp {} bundle-artifacts/ \;
71+
# Also check keyless-desktop/src-tauri/target (fallback)
7072
find keyless-desktop/src-tauri/target -type f \( -name "*.dmg" -o -name "*.msi" -o -name "*.deb" -o -name "*.rpm" -o -name "*.AppImage" \) -exec cp {} bundle-artifacts/ \;
71-
# Also try the expected bundle directory structure
72-
if [ -d "keyless-desktop/src-tauri/target/${{ matrix.target }}/release/bundle" ]; then
73-
cp -r keyless-desktop/src-tauri/target/${{ matrix.target }}/release/bundle/* bundle-artifacts/ 2>/dev/null || true
73+
# Check specific bundle directories
74+
if [ -d "target/${{ matrix.target }}/release/bundle" ]; then
75+
find target/${{ matrix.target }}/release/bundle -type f \( -name "*.dmg" -o -name "*.msi" -o -name "*.deb" -o -name "*.rpm" -o -name "*.AppImage" \) -exec cp {} bundle-artifacts/ \;
7476
fi
75-
if [ -d "keyless-desktop/src-tauri/target/release/bundle" ]; then
76-
cp -r keyless-desktop/src-tauri/target/release/bundle/* bundle-artifacts/ 2>/dev/null || true
77+
if [ -d "target/release/bundle" ]; then
78+
find target/release/bundle -type f \( -name "*.dmg" -o -name "*.msi" -o -name "*.deb" -o -name "*.rpm" -o -name "*.AppImage" \) -exec cp {} bundle-artifacts/ \;
7779
fi
7880
ls -lh bundle-artifacts/ || echo "No bundle artifacts found"
7981

0 commit comments

Comments
 (0)