From bd2a832d5f1c5907ef62019af40f8e01f52c2df4 Mon Sep 17 00:00:00 2001 From: Ruben Date: Fri, 14 Feb 2025 00:12:14 +0100 Subject: [PATCH] Update BuildWin32.yml --- .github/workflows/BuildWin32.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/BuildWin32.yml b/.github/workflows/BuildWin32.yml index 53a426c9e..72712990e 100644 --- a/.github/workflows/BuildWin32.yml +++ b/.github/workflows/BuildWin32.yml @@ -27,25 +27,25 @@ jobs: - name: Get version from Directory.Build.props id: get-version run: pwsh -File "${{ github.workspace }}/Build/Get-VersionInfo.ps1" - + # Step 4 (x64): Publish x64 version - name: Publish x64 version run: | - pwsh -File "${{ github.workspace }}\Build\Build Avalonia.Win32.ps1" -Platform "x64" -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-x64" + pwsh -File "${{ github.workspace }}\Build\Build Avalonia.Win32.ps1" -Platform "x64" -outputPath "${{ github.workspace }}\Build\PicView-v${{ steps.get-version.outputs.version }}-win-x64" shell: pwsh # Step 5 (x64): Rename files with double hyphens to single hyphen - name: Rename files with double hyphens (x64) run: | - Get-ChildItem -Path "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-x64" -Recurse -Filter "*--*" | Rename-Item -NewName { $_.Name -replace '--', '-' } + Get-ChildItem -Path "${{ github.workspace }}\Build\PicView-v${{ steps.get-version.outputs.version }}-win-x64" -Recurse -Filter "*--*" | Rename-Item -NewName { $_.Name -replace '--', '-' } shell: pwsh # Step 6 (x64): Upload the x64 zip file as an artifact - name: Upload the x64 artifact uses: actions/upload-artifact@v4 with: - name: PicView-v${{steps.get-version.outputs.version}}-win-x64 - path: ${{ github.workspace }}/Build/PicView-v${{steps.get-version.outputs.version}}-win-x64/ + name: PicView-v${{ steps.get-version.outputs.version }}-win-x64 + path: ${{ github.workspace }}/Build/PicView-v${{ steps.get-version.outputs.version }}-win-x64/ retention-days: 14 # Step 7 (x64): Compile .ISS to .EXE Installer for x64 @@ -53,34 +53,34 @@ jobs: uses: Minionguyjpro/Inno-Setup-Action@v1.2.5 with: path: .\Build\install.iss - options: /O+ /DMyAppVersion=${{steps.get-version.outputs.file-version}} /DMyAppOutputDir=${{ github.workspace }}\Build\install /DMyFileSource=${{ github.workspace }}\Build\PicView-v${{steps.[...] + 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 # Step 8 (x64): Upload the Inno Setup Installer for x64 as an artifact - name: Upload Inno Setup Installer (x64) uses: actions/upload-artifact@v4 with: - name: PicView-${{steps.get-version.outputs.version}}-installer-x64 - path: ${{ github.workspace }}\Build\install\Setup-PicView-v${{steps.get-version.outputs.version}}-win-x64.exe + name: PicView-${{ steps.get-version.outputs.version }}-installer-x64 + path: ${{ github.workspace }}\Build\install\Setup-PicView-v${{ steps.get-version.outputs.version }}-win-x64.exe retention-days: 14 # Step 9 (arm64): Publish arm64 version - name: Publish arm64 version run: | - pwsh -File "${{ github.workspace }}\Build\Build Avalonia.Win32.ps1" -Platform "arm64" -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-arm64" + pwsh -File "${{ github.workspace }}\Build\Build Avalonia.Win32.ps1" -Platform "arm64" -outputPath "${{ github.workspace }}\Build\PicView-v${{ steps.get-version.outputs.version }}-win-arm64" shell: pwsh # Step 10 (arm64): Rename files with double hyphens to single hyphen - name: Rename files with double hyphens (arm64) run: | - Get-ChildItem -Path "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-arm64" -Recurse -Filter "*--*" | Rename-Item -NewName { $_.Name -replace '--', '-' } + Get-ChildItem -Path "${{ github.workspace }}\Build\PicView-v${{ steps.get-version.outputs.version }}-win-arm64" -Recurse -Filter "*--*" | Rename-Item -NewName { $_.Name -replace '--', '-' } shell: pwsh # Step 11 (arm64): Upload the arm64 zip file as an artifact - name: Upload the arm64 artifact uses: actions/upload-artifact@v4 with: - name: PicView-v${{steps.get-version.outputs.version}}-win-arm64 - path: ${{ github.workspace }}/Build/PicView-v${{steps.get-version.outputs.version}}-win-arm64/ + name: PicView-v${{ steps.get-version.outputs.version }}-win-arm64 + path: ${{ github.workspace }}/Build/PicView-v${{ steps.get-version.outputs.version }}-win-arm64/ retention-days: 14 # Step 12 (arm64): Compile .ISS to .EXE Installer for arm64 @@ -88,12 +88,12 @@ jobs: uses: Minionguyjpro/Inno-Setup-Action@v1.2.5 with: path: .\Build\install.iss - options: /O+ /DMyAppVersion=${{steps.get-version.outputs.file-version}} /DMyAppOutputDir=${{ github.workspace }}\Build\install /DMyFileSource=${{ github.workspace }}\Build\PicView-v${{steps.[...] + 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 # Step 13 (arm64): Upload the Inno Setup Installer for arm64 as an artifact - name: Upload Inno Setup Installer (arm64) uses: actions/upload-artifact@v4 with: - name: PicView-${{steps.get-version.outputs.version}}-installer-arm64 - path: ${{ github.workspace }}\Build\install\Setup-PicView-v${{steps.get-version.outputs.version}}-win-arm64.exe - retention-days: 14 \ No newline at end of file + name: PicView-${{ steps.get-version.outputs.version }}-installer-arm64 + path: ${{ github.workspace }}\Build\install\Setup-PicView-v${{ steps.get-version.outputs.version }}-win-arm64.exe + retention-days: 14