1818 with :
1919 dotnet-version : ' 9.x'
2020
21-
2221 # Step 3: Get version from Directory.Build.props using PowerShell
2322 - name : Get version from Directory.Build.props
2423 id : get-version
@@ -30,11 +29,17 @@ jobs:
3029 pwsh -File "${{ github.workspace }}\Build\Build Avalonia.Win32.ps1" -Platform "x64" -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-x64"
3130 shell : pwsh
3231
33- # Step 5 (x64): Compile .ISS to .EXE Installer for x64
32+ # Step 5: Delete all PDB files from x64 output directory
33+ - name : Remove all PDB files (x64)
34+ run : |
35+ Get-ChildItem -Path "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-x64" -Filter *.pdb -Recurse | Remove-Item -Force -ErrorAction SilentlyContinue
36+ shell : pwsh
37+
38+ # Step 6 (x64): Compile .ISS to .EXE Installer for x64
3439 - name : Compile .ISS to .EXE Installer (x64)
3540 run : |
3641 New-Item -Path "${{ github.workspace }}\Build\install" -ItemType Directory -Force
37-
42+
3843 & 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' `
3944 /O+ `
4045 /DMyAppVersion="${{steps.get-version.outputs.version}}" `
@@ -46,18 +51,23 @@ jobs:
4651 /DVersionInfoVersion="${{steps.get-version.outputs.clean-version}}" `
4752 "${{ github.workspace }}\Build\install.iss"
4853 shell : pwsh
49-
50- # Step 6 (arm64): Publish arm64 version
54+
55+ # Step 7 (arm64): Publish arm64 version
5156 - name : Publish arm64 version
5257 run : |
5358 pwsh -File "${{ github.workspace }}\Build\Build Avalonia.Win32.ps1" -Platform "arm64" -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-arm64"
5459 shell : pwsh
5560
61+ # Step 8: Delete all PDB files from arm64 output directory
62+ - name : Remove all PDB files (arm64)
63+ run : |
64+ Get-ChildItem -Path "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-arm64" -Filter *.pdb -Recurse | Remove-Item -Force -ErrorAction SilentlyContinue
65+ shell : pwsh
5666
57- # Step 7 (arm64): Compile .ISS to .EXE Installer for arm64
67+ # Step 9 (arm64): Compile .ISS to .EXE Installer for arm64
5868 - name : Compile .ISS to .EXE Installer (arm64)
5969 run : |
60-
70+
6171 & 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' `
6272 /O+ `
6373 /DMyAppVersion="${{steps.get-version.outputs.version}}" `
6979 /DVersionInfoVersion="${{steps.get-version.outputs.clean-version}}" `
7080 "${{ github.workspace }}\Build\install.iss"
7181 shell : pwsh
72-
73- # Step 8 : Upload unsigned artifact
82+
83+ # Step 10 : Upload unsigned artifact
7484 - name : upload-unsigned-artifact
7585 id : upload-unsigned-artifact
7686 uses : actions/upload-artifact@v4
8393 ${{ github.workspace }}\Build\\PicView-v${{steps.get-version.outputs.version}}-win-arm64\
8494 ${{ github.workspace }}\Build\install\PicView-v${{steps.get-version.outputs.version}}-win-arm64.exe
8595 retention-days : 1
86-
87- # Step 9 : Sign the binaries
96+
97+ # Step 11 : Sign the binaries
8898 - name : Sign files
8999 uses : signpath/github-action-submit-signing-request@v1
90100 with :
@@ -96,10 +106,10 @@ jobs:
96106 wait-for-completion : true
97107 output-artifact-directory : ' PicView-${{steps.get-version.outputs.version}}-signed'
98108
99- # Step 10 : Upload signed binaries
109+ # Step 12 : Upload signed binaries
100110 - name : upload-signed-artifact
101111 uses : actions/upload-artifact@v4
102112 with :
103113 name : " PicView-${{steps.get-version.outputs.version}}-signed"
104114 path : " PicView-${{steps.get-version.outputs.version}}-signed"
105- if-no-files-found : error
115+ if-no-files-found : error
0 commit comments