Skip to content

Build your personal knowledge base with Trilium Notes

Fix path checking in test workflow

linull66c05619df0a
diff --git a/.github/workflows/test-arm64-fix.yml b/.github/workflows/test-arm64-fix.yml
index 2ac2bc46ef..575b2f9b0f 100644
--- a/.github/workflows/test-arm64-fix.yml
+++ b/.github/workflows/test-arm64-fix.yml
@@ -41,35 +41,33 @@ jobs:
- name: Check better-sqlite3 in package
run: |
- echo "=== Checking built packages ==="
- find apps/desktop/out -type f | head -10
+ echo "=== Checking build directories ==="
+ ls -la apps/desktop/ || true
+ find apps/desktop -name "out" -o -name "dist" -o -name "upload" 2>/dev/null || true
- echo "\n=== Extracting and checking better-sqlite3 ==="
- cd apps/desktop/out
+ echo "\n=== Looking for built packages ==="
+ FOUND_PACKAGES=$(find apps/desktop -name "*.deb" -o -name "*.rpm" -o -name "*.tar.gz" -o -name "*.AppImage" 2>/dev/null || true)
- # Find the built package
- PACKAGE=$(find . -name "*.deb" | head -1)
- if [ -n "$PACKAGE" ]; then
- echo "Found DEB package: $PACKAGE"
- dpkg-deb -x "$PACKAGE" extracted/
+ if [ -n "$FOUND_PACKAGES" ]; then
+ echo "Found packages:"
+ echo "$FOUND_PACKAGES"
- echo "\n=== Checking target path ==="
- TARGET_PATH="extracted/opt/Trilium Notes/resources/app.asar.unpacked/node_modules/better-sqlite3/build/Release/better_sqlite3.node"
- if [ -f "$TARGET_PATH" ]; then
- echo "✅ Found better_sqlite3.node at expected path"
- echo "File info:"
- file "$TARGET_PATH"
- ls -la "$TARGET_PATH"
- else
- echo "❌ better_sqlite3.node NOT found at expected path"
- echo "Searching for better-sqlite3 files:"
- find extracted/ -name "*sqlite*" -type f
- echo "\nSearching for .node files:"
- find extracted/ -name "*.node" -type f
+ # Use first DEB package
+ PACKAGE=$(echo "$FOUND_PACKAGES" | grep "\.deb" | head -1)
+ if [ -n "$PACKAGE" ]; then
+ echo "\n=== Extracting DEB package: $PACKAGE ==="
+ mkdir -p /tmp/extracted
+ dpkg-deb -x "$PACKAGE" /tmp/extracted/
+
+ echo "\n=== Checking for better_sqlite3.node ==="
+ find /tmp/extracted -name "better_sqlite3.node" -exec file {} \; || echo "No better_sqlite3.node found"
+
+ echo "\n=== Checking all .node files ==="
+ find /tmp/extracted -name "*.node" -exec file {} \; || echo "No .node files found"
fi
else
- echo "No DEB package found, checking dist directory:"
- find ../dist -name "better_sqlite3.node" -exec file {} \; 2>/dev/null || echo "No .node files in dist"
+ echo "No packages found, checking dist directory:"
+ find apps/desktop -name "better_sqlite3.node" -exec file {} \; 2>/dev/null || echo "No .node files found"
fi
- name: Upload built package
@@ -78,5 +76,6 @@ jobs:
with:
name: trilium-arm64-linux-test
path: |
- apps/desktop/out/*
- apps/desktop/dist/*
\ No newline at end of file
+ apps/desktop/out/
+ apps/desktop/dist/
+ apps/desktop/upload/
\ No newline at end of file