diff --git a/.github/workflows/Submit-To-SignPath.yml b/.github/workflows/Submit-To-SignPath.yml index 8370449..4da5276 100644 --- a/.github/workflows/Submit-To-SignPath.yml +++ b/.github/workflows/Submit-To-SignPath.yml @@ -89,11 +89,46 @@ jobs: with: name: Signed-Driver-${{ matrix.configuration }}-${{ matrix.platform }} path: | - SignedArtifacts\MttVDD.dll - SignedArtifacts\MttVDD.inf - SignedArtifacts\mttvdd.cat - SignedArtifacts\vdd_settings.xml + ${{ vars.SIGNPATH_OUTPUT_DIR }}\MttVDD.dll + ${{ vars.SIGNPATH_OUTPUT_DIR }}\MttVDD.inf + ${{ vars.SIGNPATH_OUTPUT_DIR }}\mttvdd.cat + ${{ vars.SIGNPATH_OUTPUT_DIR }}\vdd_settings.xml + - name: Prepare Setup Repository + run: | + git clone https://${{ secrets.READ_REPO }}@github.com/VirtualDisplay/vdd-innosetupscript.git inno-setup + + - name: Prepare Setup + run: | + copy "${{ vars.SIGNPATH_OUTPUT_DIR }}\*" inno-setup\input\ + $platform = "${{ matrix.platform }}" + if ($platform -eq 'ARM64') { + (Get-Content "inno-setup\Setup.iss") | + ForEach-Object { $_ -replace 'x64compatible', 'arm64' } | + Set-Content "inno-setup\Setup.iss" + + (Get-Content "inno-setup\Setup.iss") | + ForEach-Object { $_ -replace '-x64', '-arm64' } | + Set-Content "inno-setup\Setup.iss" + + (Get-Content "inno-setup\Setup.iss") | + ForEach-Object { $_ -replace '1.0.0', '${{ env.RELEASE_TAG }}' } | + Set-Content "inno-setup\Setup.iss" + } + + - name: Compile Installer + uses: Minionguyjpro/Inno-Setup-Action@v1.2.2 + with: + path: inno-setup\Setup.iss + options: /O+ + + - name: Upload Installer as artifact + uses: actions/upload-artifact@v4 + with: + name: Installer-${{ matrix.configuration }}-${{ matrix.platform }} + path: inno-setup\output\*.exe + + celebrate: runs-on: ubuntu-latest steps: