Skip to content

Commit 47b1ef7

Browse files
Copilotjoaomoreno
andcommitted
Fix Windows archive creation using 7z.exe
Replace broken Move-Item approach with 7z.exe to create the archive directly from the built files, excluding CodeSignSummary files. Fixes issue from #288869 Co-authored-by: joaomoreno <22350+joaomoreno@users.noreply.github.com>
1 parent f17fe4d commit 47b1ef7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/oss-build-fast.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -382,15 +382,12 @@ jobs:
382382
env:
383383
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
384384

385-
- name: Create archive directory
385+
- name: Create archive
386386
shell: pwsh
387387
run: |
388388
New-Item -ItemType Directory -Force -Path .build/win32-x64/archive
389-
390-
- name: Move archive
391-
shell: pwsh
392-
run: |
393-
Move-Item -Path .build/win32-x64/VSCode-win32-x64.zip -Destination .build/win32-x64/archive/VSCode-win32-x64.zip
389+
$archivePath = ".build/win32-x64/archive/VSCode-win32-x64.zip"
390+
7z.exe a -tzip $archivePath ../VSCode-win32-x64/* "-xr!CodeSignSummary*.md"
394391
395392
- name: Upload build artifact
396393
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)