From 9019f7622ea3df3259104a11fee636ea22a0ebf0 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Fri, 21 Nov 2025 19:30:46 +0000 Subject: [PATCH] Failure on missing tauri linux bundle --- .github/workflows/build-and-upload.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-upload.yml b/.github/workflows/build-and-upload.yml index 7eb4fa41..6b672c1d 100644 --- a/.github/workflows/build-and-upload.yml +++ b/.github/workflows/build-and-upload.yml @@ -337,6 +337,9 @@ jobs: - name: Ensure rollup native binary run: npm install @rollup/rollup-linux-x64-gnu --no-save + - name: Bundle server assets for Tauri + run: npm run bundle:server --workspace @codenomad/tauri-app + - name: Build Linux bundle (Tauri) run: npm run build --workspace @codenomad/tauri-app @@ -442,13 +445,17 @@ jobs: mkdir -p "$ARTIFACT_DIR" shopt -s nullglob globstar first_artifact=$(find "$SEARCH_ROOT" -type f \( -name "*.AppImage" -o -name "*.deb" -o -name "*.rpm" -o -name "*.tar.gz" \) | head -n1) + fallback_bin="$SEARCH_ROOT/release/codenomad-tauri" if [ -n "$first_artifact" ]; then - zip -j "$ARTIFACT_DIR/CodeNomad-Tauri-${VERSION}-linux-arm64.zip" "$first_artifact" + zip -j "$ARTIFACT_DIR/CodeNomad-Tauri-${VERSION}-linux-x64.zip" "$first_artifact" + elif [ -f "$fallback_bin" ]; then + zip -j "$ARTIFACT_DIR/CodeNomad-Tauri-${VERSION}-linux-x64.zip" "$fallback_bin" else - echo "No bundled artifact found under $SEARCH_ROOT" >&2 + echo "No bundled artifact found under $SEARCH_ROOT and no binary at $fallback_bin" >&2 exit 1 fi + - name: Upload Tauri release assets (Linux arm64) run: | set -euo pipefail