1
- name : Build PicView Avalonia on Windows
1
+ name : Build PicView Win32
2
2
3
3
on :
4
4
push :
@@ -27,73 +27,61 @@ jobs:
27
27
- name : Get version from Directory.Build.props
28
28
id : get-version
29
29
run : pwsh -File "${{ github.workspace }}/Build/Get-VersionInfo.ps1"
30
-
30
+
31
31
# Step 4 (x64): Publish x64 version
32
32
- name : Publish x64 version
33
33
run : |
34
- pwsh -File "${{ github.workspace }}\Build\Build Avalonia.Win32.ps1" -Platform "x64" -outputPath "${{ github.workspace }}\Build\PicView-v${{ steps.get-version.outputs.version }}-win-x64"
34
+ pwsh -File "${{ github.workspace }}\Build\Build Avalonia.Win32.ps1" -Platform "x64" -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-x64"
35
35
shell : pwsh
36
36
37
- # Step 5 (x64): Rename files with double hyphens to single hyphen
38
- - name : Rename files with double hyphens (x64)
39
- run : |
40
- Get-ChildItem -Path "${{ github.workspace }}\Build\PicView-v${{ steps.get-version.outputs.version }}-win-x64" -Recurse -Filter "*--*" | Rename-Item -NewName { $_.Name -replace '--', '-' }
41
- shell : pwsh
42
-
43
- # Step 6 (x64): Upload the x64 zip file as an artifact
37
+ # Step 5 (x64): Upload the x64 zip file as an artifact
44
38
- name : Upload the x64 artifact
45
39
uses : actions/upload-artifact@v4
46
40
with :
47
- name : PicView-v${{ steps.get-version.outputs.version }}-win-x64
48
- path : ${{ github.workspace }}/Build/PicView-v${{ steps.get-version.outputs.version }}-win-x64/
41
+ name : PicView-v${{steps.get-version.outputs.version}}-win-x64
42
+ path : ${{ github.workspace }}/Build/PicView-v${{steps.get-version.outputs.version}}-win-x64/
49
43
retention-days : 14
50
44
51
- # Step 7 (x64): Compile .ISS to .EXE Installer for x64
45
+ # Step 6 (x64): Compile .ISS to .EXE Installer for x64
52
46
- name : Compile .ISS to .EXE Installer (x64)
53
47
uses :
Minionguyjpro/[email protected]
54
48
with :
55
49
path : .\Build\install.iss
56
- options : /O+ /DMyAppVersion=${{ steps.get-version.outputs.file-version }} /DMyAppOutputDir=${{ github.workspace }}\Build\install /DMyFileSource=${{ github.workspace }}\Build\PicView-v${{ steps.get-version.outputs.version }}-win-x64
50
+ options : /O+ /DMyAppVersion=${{steps.get-version.outputs.file-version}} /DMyAppOutputDir=${{ github.workspace }}\Build\install /DMyFileSource=${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-x64 /DAppIcon=${{ github.workspace }}\src\PicView.Avalonia.Win32\icon.ico /DLicenseFile=${{ github.workspace }}\src\PicView.Core\Licenses\LICENSE.txt /DMyAppOutputName=Setup-PicView-v${{steps.get-version.outputs.version }}-win-x64
57
51
58
- # Step 8 (x64): Upload the Inno Setup Installer for x64 as an artifact
52
+ # Step 7 (x64): Upload the Inno Setup Installer for x64 as an artifact
59
53
- name : Upload Inno Setup Installer (x64)
60
54
uses : actions/upload-artifact@v4
61
55
with :
62
- name : PicView-${{ steps.get-version.outputs.version }}-installer-x64
63
- path : ${{ github.workspace }}\Build\install\Setup-PicView-v${{ steps.get-version.outputs.version }}-win-x64.exe
56
+ name : PicView-${{steps.get-version.outputs.version}}-installer-x64
57
+ path : ${{ github.workspace }}\Build\install\Setup-PicView-v${{steps.get-version.outputs.version}}-win-x64.exe
64
58
retention-days : 14
65
59
66
- # Step 9 (arm64): Publish arm64 version
60
+ # Step 8 (arm64): Publish arm64 version
67
61
- name : Publish arm64 version
68
62
run : |
69
- pwsh -File "${{ github.workspace }}\Build\Build Avalonia.Win32.ps1" -Platform "arm64" -outputPath "${{ github.workspace }}\Build\PicView-v${{ steps.get-version.outputs.version }}-win-arm64"
63
+ pwsh -File "${{ github.workspace }}\Build\Build Avalonia.Win32.ps1" -Platform "arm64" -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-arm64"
70
64
shell : pwsh
71
65
72
- # Step 10 (arm64): Rename files with double hyphens to single hyphen
73
- - name : Rename files with double hyphens (arm64)
74
- run : |
75
- Get-ChildItem -Path "${{ github.workspace }}\Build\PicView-v${{ steps.get-version.outputs.version }}-win-arm64" -Recurse -Filter "*--*" | Rename-Item -NewName { $_.Name -replace '--', '-' }
76
- shell : pwsh
77
-
78
- # Step 11 (arm64): Upload the arm64 zip file as an artifact
66
+ # Step 9 (arm64): Upload the arm64 zip file as an artifact
79
67
- name : Upload the arm64 artifact
80
68
uses : actions/upload-artifact@v4
81
69
with :
82
- name : PicView-v${{ steps.get-version.outputs.version }}-win-arm64
83
- path : ${{ github.workspace }}/Build/PicView-v${{ steps.get-version.outputs.version }}-win-arm64/
70
+ name : PicView-v${{steps.get-version.outputs.version}}-win-arm64
71
+ path : ${{ github.workspace }}/Build/PicView-v${{steps.get-version.outputs.version}}-win-arm64/
84
72
retention-days : 14
85
73
86
- # Step 12 (arm64): Compile .ISS to .EXE Installer for arm64
74
+ # Step 10 (arm64): Compile .ISS to .EXE Installer for arm64
87
75
- name : Compile .ISS to .EXE Installer (arm64)
88
76
uses :
Minionguyjpro/[email protected]
89
77
with :
90
78
path : .\Build\install.iss
91
- options : /O+ /DMyAppVersion=${{ steps.get-version.outputs.file-version }} /DMyAppOutputDir=${{ github.workspace }}\Build\install /DMyFileSource=${{ github.workspace }}\Build\PicView-v${{ steps.get-version.outputs.version }}-win-arm64
79
+ options : /O+ /DMyAppVersion=${{steps.get-version.outputs.file-version}} /DMyAppOutputDir=${{ github.workspace }}\Build\install /DMyFileSource=${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-arm64 /DAppIcon=${{ github.workspace }}\src\PicView.Avalonia.Win32\icon.ico /DLicenseFile=${{ github.workspace }}\src\PicView.Core\Licenses\LICENSE.txt /DMyAppOutputName=Setup-PicView-v${{steps.get-version.outputs.version }}-win-arm64
92
80
93
- # Step 13 (arm64): Upload the Inno Setup Installer for arm64 as an artifact
81
+ # Step 11 (arm64): Upload the Inno Setup Installer for arm64 as an artifact
94
82
- name : Upload Inno Setup Installer (arm64)
95
83
uses : actions/upload-artifact@v4
96
84
with :
97
- name : PicView-${{ steps.get-version.outputs.version }}-installer-arm64
98
- path : ${{ github.workspace }}\Build\install\Setup-PicView-v${{ steps.get-version.outputs.version }}-win-arm64.exe
99
- retention-days : 14
85
+ name : PicView-${{steps.get-version.outputs.version}}-installer-arm64
86
+ path : ${{ github.workspace }}\Build\install\Setup-PicView-v${{steps.get-version.outputs.version}}-win-arm64.exe
87
+ retention-days : 14
0 commit comments