From 0b8f8960080cdf2f90592f4ac361e1ba6049374b Mon Sep 17 00:00:00 2001 From: Mike Rodriguez Date: Thu, 8 May 2025 01:24:27 -0700 Subject: [PATCH] Workflow update/test. --- .github/workflows/Submit-To-SignPath.yml | 13 +++- .github/workflows/compile.yml | 86 ++++++++++++++++++++++++ .gitignore | 3 + 3 files changed, 100 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Submit-To-SignPath.yml b/.github/workflows/Submit-To-SignPath.yml index cf4a3ed..2ecdc9c 100644 --- a/.github/workflows/Submit-To-SignPath.yml +++ b/.github/workflows/Submit-To-SignPath.yml @@ -115,8 +115,17 @@ jobs: ForEach-Object { $_ -replace '-x64', '-arm64' } | Set-Content "inno-setup\Setup.iss" - if (Test-Path "inno-setup\input\Companion\VDDSysTray.exe") {Remove-Item "inno-setup\input\Companion\VDDSysTray.exe"} - copy "inno-setup\input\Companion\arm64\VDDSysTray.exe" "inno-setup\input\Companion\" + # VDDSysTray has been replaced with VDDControl + if (Test-Path "inno-setup\input\Companion\VDDControl.exe") {Remove-Item "inno-setup\input\Companion\VDDControl.exe"} + + # Check if ARM64 VDDControl exists before copying + if (Test-Path "inno-setup\input\Companion\arm64\VDDControl.exe") { + copy "inno-setup\input\Companion\arm64\VDDControl.exe" "inno-setup\input\Companion\" + Write-Host "Copied ARM64 VDDControl.exe" + } else { + Write-Host "Warning: ARM64 VDDControl.exe not found in inno-setup\input\Companion\arm64\" + dir "inno-setup\input\Companion" -Recurse + } } - name: Compile Installer diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 8322a05..e70b2b7 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -141,3 +141,89 @@ jobs: - name: Verify Built Artifacts run: dir 'Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD' + + prepare_installer: + runs-on: windows-latest + needs: build + strategy: + matrix: + configuration: [Release] + platform: [x64, ARM64] + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Download artifacts + uses: actions/download-artifact@v4 + with: + name: Built-Driver-${{ matrix.configuration }}-${{ matrix.platform }} + path: SignedArtifacts + + - name: Prepare Setup Repository + run: | + git clone https://${{ secrets.READ_REPO }}@github.com/VirtualDisplay/Virtual-Driver-Installer.git inno-setup + + - name: Prepare Setup + run: | + mkdir -p inno-setup\input + copy "SignedArtifacts\*" inno-setup\input\ + $platform = "${{ matrix.platform }}" + + # Display directory contents for debugging + Write-Host "Contents of SignedArtifacts directory:" + dir "SignedArtifacts" + + Write-Host "Contents of inno-setup\input directory after copy:" + dir "inno-setup\input" + + # Check if Companion directory exists before attempting operations + if (Test-Path "inno-setup\input\Companion") { + Write-Host "Contents of Companion directory:" + dir "inno-setup\input\Companion" -Recurse + } else { + Write-Host "Companion directory not found" + } + + # Set release tag + $releaseTag = (Get-Date).ToString('yy.MM.dd') + (Get-Content "inno-setup\Setup.iss") | + ForEach-Object { $_ -replace '1.0.0', $releaseTag } | + Set-Content "inno-setup\Setup.iss" + + # ARM64-specific handling + 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" + + # VDDSysTray has been replaced with VDDControl + if (Test-Path "inno-setup\input\Companion\VDDControl.exe") { + Remove-Item "inno-setup\input\Companion\VDDControl.exe" + Write-Host "Removed x64 VDDControl.exe" + } + + # Check if ARM64 VDDControl exists before copying + if (Test-Path "inno-setup\input\Companion\arm64\VDDControl.exe") { + copy "inno-setup\input\Companion\arm64\VDDControl.exe" "inno-setup\input\Companion\" + Write-Host "Copied ARM64 VDDControl.exe" + } else { + Write-Host "Warning: ARM64 VDDControl.exe not found in expected location" + dir "inno-setup\input\Companion" -Recurse + } + } + + - 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 diff --git a/.gitignore b/.gitignore index 1c9a181..e7845ef 100644 --- a/.gitignore +++ b/.gitignore @@ -240,3 +240,6 @@ ModelManifest.xml # FAKE - F# Make .fake/ + +**/.claude/settings.local.json +CLAUDE.md