Skip to content

Commit 491a76b

Browse files
committed
Generate Windows installer and portable ZIP artifacts
1 parent 595c58c commit 491a76b

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/build-windows.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,25 @@ jobs:
2626
- name: Build Windows NSIS installer
2727
run: npm run electron:build:win:nsis
2828

29-
- name: Build Windows portable package
30-
run: npm run electron:build:win:portable
29+
- name: Rename Windows installer
30+
shell: pwsh
31+
run: |
32+
$installer = Get-ChildItem release -Filter "*_x64.exe" | Select-Object -First 1
33+
Rename-Item $installer.FullName "sysai-assistant_1.4.0-beta_windows-x64-installer.exe"
34+
35+
- name: Build Windows unpacked portable directory
36+
run: npm run electron:build:win:dir
37+
38+
- name: Create Windows portable ZIP
39+
shell: pwsh
40+
run: |
41+
Compress-Archive -Path release\win-unpacked\* -DestinationPath release\sysai-assistant_1.4.0-beta_windows-x64-portable.zip -Force
3142
3243
- name: Upload Windows artifacts
3344
uses: actions/upload-artifact@v4
3445
with:
3546
name: sysai-windows-release
3647
path: |
37-
release/*.exe
38-
release/*.zip
48+
release/*windows-x64-installer.exe
49+
release/*windows-x64-portable.zip
3950
release/*.yml

0 commit comments

Comments
 (0)