|
@@ -21,7 +21,9 @@ jobs:
|
|
|
# Step 4 (x64): Publish x64 version
|
|
|
- name: Publish x64 version
|
|
|
run: |
|
|
|
- pwsh -File "${{ github.workspace }}\Build\Build WPF.ps1" -Platform "x64" -selfContained $true -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-x64"
|
|
|
+ $projectPath = ".\src\PicView.WPF\PicView.WPF.csproj"
|
|
|
+ $tempPath = [System.IO.Path]::GetTempPath() + "PicView"
|
|
|
+ dotnet publish $projectPath --runtime win-x64 --self-contained true --configuration Release --output $tempPath /p:PublishReadyToRun=true
|
|
|
shell: pwsh
|
|
|
|
|
|
# Step 5 (x64): Compile .ISS to .EXE Installer for x64
|
|
@@ -31,14 +33,22 @@ jobs:
|
|
|
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.get-version.outputs.version}}-win-x64 /DAppIcon=${{ github.workspace }}\src\PicView.WPF\Themes\Resources\img\icon__Q6k_icon.ico /DLicenseFile=${{ github.workspace }}\src\PicView.Core\Licenses\LICENSE.txt /DMyAppOutputName=Setup-PicView-v${{steps.get-version.outputs.version}}-win-x64
|
|
|
|
|
|
- # Step 6 (arm64): Publish arm64 version
|
|
|
+ # Step 6 change to arm64 version
|
|
|
- name: Publish arm64 version
|
|
|
run: |
|
|
|
- pwsh -File "${{ github.workspace }}\Build\Build WPF.ps1" -Platform "arm64" -selfContained $true -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-win-arm64"
|
|
|
+ pwsh -File "${{ github.workspace }}\Build\ChangeX64-ARM64.ps1"
|
|
|
+ shell: pwsh
|
|
|
+
|
|
|
+ # Step 7 (arm64): Publish x64 version
|
|
|
+ - name: Publish arm64 version
|
|
|
+ run: |
|
|
|
+ $projectPath = ".\src\PicView.WPF\PicView.WPF.csproj"
|
|
|
+ $tempPath = [System.IO.Path]::GetTempPath() + "PicView"
|
|
|
+ dotnet publish $projectPath --runtime win-x64 --self-contained true --configuration Release --output $tempPath /p:PublishReadyToRun=true
|
|
|
shell: pwsh
|
|
|
|
|
|
|
|
|
- # Step 7 (arm64): Compile .ISS to .EXE Installer for arm64
|
|
|
+ # Step 8 (arm64): Compile .ISS to .EXE Installer for arm64
|
|
|
- name: Compile .ISS to .EXE Installer (arm64)
|
|
|
uses: Minionguyjpro/[email protected]
|
|
|
with:
|
|
@@ -46,7 +56,7 @@ jobs:
|
|
|
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.WPF\Themes\Resources\img\icon__Q6k_icon.ico /DLicenseFile=${{ github.workspace }}\src\PicView.Core\Licenses\LICENSE.txt /DMyAppOutputName=Setup-PicView-v${{steps.get-version.outputs.version}}-win-arm64
|
|
|
|
|
|
|
|
|
- # Step 8: Upload unsigned artifact
|
|
|
+ # Step 9: Upload unsigned artifact
|
|
|
- name: upload-unsigned-artifact
|
|
|
id: upload-unsigned-artifact
|
|
|
uses: actions/upload-artifact@v4
|
|
@@ -60,7 +70,7 @@ jobs:
|
|
|
${{ github.workspace }}\Build\install\Setup-PicView-v${{steps.get-version.outputs.version}}-win-arm64.exe
|
|
|
retention-days: 1
|
|
|
|
|
|
- # Step 9: Sign the binaries
|
|
|
+ # Step 10: Sign the binaries
|
|
|
- name: Sign files
|
|
|
uses: signpath/github-action-submit-signing-request@v1
|
|
|
with:
|
|
@@ -72,7 +82,7 @@ jobs:
|
|
|
wait-for-completion: true
|
|
|
output-artifact-directory: 'PicView-${{steps.get-version.outputs.version}}-signed'
|
|
|
|
|
|
- # Step 10: Upload signed binaries
|
|
|
+ # Step 11: Upload signed binaries
|
|
|
- name: upload-signed-artifact
|
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|