@@ -80,18 +80,19 @@ jobs:
8080 run : |
8181 shopt -s nullglob globstar
8282 installer_candidates=(
83- cross-platform/src-tauri/target/release/bundle/**/*[Ss][Ee][Tt][Uu][Pp] *.exe
84- cross-platform/src-tauri/target/release/bundle/**/*.msi
83+ cross-platform/src-tauri/target/release/bundle/nsis/ **/*.exe
84+ cross-platform/src-tauri/target/release/bundle/msi/ **/*.msi
8585 )
8686 if [ ${#installer_candidates[@]} -eq 0 ]; then
87- echo "No Windows installer-like artifacts found under cross-platform/src-tauri/target/release/bundle (expected *setup*.exe or . msi) "
87+ echo "No Windows installer artifacts found under cross-platform/src-tauri/target/release/bundle/{nsis, msi,wix} "
8888 exit 1
8989 fi
90- installer_path="${installer_candidates[0]}"
91- installer_ext="${installer_path##*.}"
92- installer_name="PinStick-${APP_VERSION}-windows.${installer_ext}"
93- cp "$installer_path" "$installer_name"
94- printf "WINDOWS_INSTALLER=%s\n" "$installer_name" >> "$GITHUB_ENV"
90+ artifact_dir="PinStick-${APP_VERSION}-windows"
91+ mkdir -p "$artifact_dir"
92+ for installer_path in "${installer_candidates[@]}"; do
93+ cp "$installer_path" "$artifact_dir/"
94+ done
95+ printf "WINDOWS_ARTIFACT_DIR=%s\n" "$artifact_dir" >> "$GITHUB_ENV"
9596
9697 - name : Collect Linux AppImage
9798 if : matrix.os == 'ubuntu-22.04'
@@ -117,7 +118,7 @@ jobs:
117118 uses : actions/upload-artifact@v4
118119 with :
119120 name : PinStick-windows
120- path : ${{ env.WINDOWS_INSTALLER }}
121+ path : ${{ env.WINDOWS_ARTIFACT_DIR }}
121122 if-no-files-found : error
122123
123124 - name : Upload Linux artifact
0 commit comments