Skip to content

Commit 6c12536

Browse files
author
Bud
authored
Action tweak
1 parent 266b4a0 commit 6c12536

1 file changed

Lines changed: 39 additions & 4 deletions

File tree

.github/workflows/Submit-To-SignPath.yml

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,46 @@ jobs:
8989
with:
9090
name: Signed-Driver-${{ matrix.configuration }}-${{ matrix.platform }}
9191
path: |
92-
SignedArtifacts\MttVDD.dll
93-
SignedArtifacts\MttVDD.inf
94-
SignedArtifacts\mttvdd.cat
95-
SignedArtifacts\vdd_settings.xml
92+
${{ vars.SIGNPATH_OUTPUT_DIR }}\MttVDD.dll
93+
${{ vars.SIGNPATH_OUTPUT_DIR }}\MttVDD.inf
94+
${{ vars.SIGNPATH_OUTPUT_DIR }}\mttvdd.cat
95+
${{ vars.SIGNPATH_OUTPUT_DIR }}\vdd_settings.xml
9696
97+
- name: Prepare Setup Repository
98+
run: |
99+
git clone https://${{ secrets.READ_REPO }}@github.com/VirtualDisplay/vdd-innosetupscript.git inno-setup
100+
101+
- name: Prepare Setup
102+
run: |
103+
copy "${{ vars.SIGNPATH_OUTPUT_DIR }}\*" inno-setup\input\
104+
$platform = "${{ matrix.platform }}"
105+
if ($platform -eq 'ARM64') {
106+
(Get-Content "inno-setup\Setup.iss") |
107+
ForEach-Object { $_ -replace 'x64compatible', 'arm64' } |
108+
Set-Content "inno-setup\Setup.iss"
109+
110+
(Get-Content "inno-setup\Setup.iss") |
111+
ForEach-Object { $_ -replace '-x64', '-arm64' } |
112+
Set-Content "inno-setup\Setup.iss"
113+
114+
(Get-Content "inno-setup\Setup.iss") |
115+
ForEach-Object { $_ -replace '1.0.0', '${{ env.RELEASE_TAG }}' } |
116+
Set-Content "inno-setup\Setup.iss"
117+
}
118+
119+
- name: Compile Installer
120+
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
121+
with:
122+
path: inno-setup\Setup.iss
123+
options: /O+
124+
125+
- name: Upload Installer as artifact
126+
uses: actions/upload-artifact@v4
127+
with:
128+
name: Installer-${{ matrix.configuration }}-${{ matrix.platform }}
129+
path: inno-setup\output\*.exe
130+
131+
97132
celebrate:
98133
runs-on: ubuntu-latest
99134
steps:

0 commit comments

Comments
 (0)