Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
ci: add error handling template windows build
Minh141120f1e178833a76
diff --git a/.github/workflows/template-tauri-build-windows-x64.yml b/.github/workflows/template-tauri-build-windows-x64.ymlindex 6fb908b3e..166ad698f 100644--- a/.github/workflows/template-tauri-build-windows-x64.yml+++ b/.github/workflows/template-tauri-build-windows-x64.yml@@ -270,10 +270,14 @@ jobs:PORTABLE_FILE_NAME="Jan_${{ inputs.new_version }}_x64-portable.exe"fi# go to ./src-tauri/target/release- cd ../../..+ cd ../..# find the actual portable exe produced by the buildPORTABLE_SRC=$(ls -1 Jan*.exe | head -n 1)+ if [ -z "$PORTABLE_SRC" ] || [ ! -f "$PORTABLE_SRC" ]; then+ echo "Error: portable exe matching 'Jan*.exe' not found in $(pwd)" >&2+ exit 1+ fi# copy to deterministic versioned filenamecp "$PORTABLE_SRC" "$PORTABLE_FILE_NAME"echo "Portable exe: $PORTABLE_SRC -> $PORTABLE_FILE_NAME"