@@ -131,6 +131,14 @@ jobs:
131131 ./target/${{ matrix.settings.target }}/release/vp-shim.exe
132132 if-no-files-found : error
133133
134+ - name : Upload installer binary artifact (Windows only)
135+ if : contains(matrix.settings.target, 'windows')
136+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
137+ with :
138+ name : vp-setup-${{ matrix.settings.target }}
139+ path : ./target/${{ matrix.settings.target }}/release/vp-setup.exe
140+ if-no-files-found : error
141+
134142 - name : Remove .node files before upload dist
135143 if : ${{ matrix.settings.target == 'x86_64-unknown-linux-gnu' }}
136144 run : |
@@ -241,6 +249,12 @@ jobs:
241249 path : rust-cli-artifacts
242250 pattern : vite-global-cli-*
243251
252+ - name : Download installer binaries (Windows)
253+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
254+ with :
255+ path : installer-artifacts
256+ pattern : vp-setup-*
257+
244258 - name : Move Rust CLI binaries to target directories
245259 run : |
246260 # Move each artifact's binary to the correct target directory
@@ -265,6 +279,19 @@ jobs:
265279 echo "Found binaries:"
266280 echo "$vp_files"
267281
282+ - name : Prepare installer binaries for release
283+ run : |
284+ mkdir -p installer-release
285+ for artifact_dir in installer-artifacts/vp-setup-*/; do
286+ if [ -d "$artifact_dir" ]; then
287+ dir_name=$(basename "$artifact_dir")
288+ target_name=${dir_name#vp-setup-}
289+ cp "$artifact_dir/vp-setup.exe" "installer-release/vp-setup-${target_name}.exe"
290+ fi
291+ done
292+ echo "Installer binaries:"
293+ ls -la installer-release/ || echo "No installer binaries found"
294+
268295 - name : Set npm packages version
269296 run : |
270297 sed -i 's/"version": "0.0.0"/"version": "${{ env.VERSION }}"/' packages/core/package.json
@@ -318,6 +345,8 @@ jobs:
318345 ${INSTALL_PS1}
319346 \`\`\`
320347
348+ Or download and run \`vp-setup.exe\` from the assets below.
349+
321350 View the full commit: https://github.com/${{ github.repository }}/commit/${{ github.sha }}
322351 EOF
323352
@@ -332,6 +361,8 @@ jobs:
332361 name : vite-plus v${{ env.VERSION }}
333362 tag_name : v${{ env.VERSION }}
334363 target_commitish : ${{ github.sha }}
364+ files : |
365+ installer-release/vp-setup-*.exe
335366
336367 - name : Send Discord notification
337368 if : ${{ inputs.npm_tag == 'latest' }}
0 commit comments