Skip to content

Commit a6b59b0

Browse files
authored
Merge pull request #8 from soulteary/ci/fix-build
ci: fix Windows
2 parents 5a6deae + 78184f8 commit a6b59b0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,23 @@ jobs:
8585
run: |
8686
wails build -clean -nsis -webview2 embed
8787
88+
- name: Show build files (Windows)
89+
if: runner.os == 'Windows'
90+
shell: powershell
91+
run: |
92+
Get-ChildItem ./build/bin -Recurse -Force
93+
8894
- name: Rename Windows Installer
8995
if: runner.os == 'Windows'
9096
working-directory: ./build/bin
9197
shell: powershell
9298
run: |
93-
Rename-Item -Path "*-installer.exe" -NewName "${{ env.BUILD_NAME }}.exe"
99+
$installer = Get-ChildItem "*-installer.exe" | Select-Object -First 1
100+
if ($null -eq $installer) {
101+
Write-Error "Installer not found!"
102+
exit 1
103+
}
104+
Rename-Item -Path $installer.FullName -NewName "${{ env.BUILD_NAME }}.exe"
94105
95106
- name: Install nfpm (Linux)
96107
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)