Skip to content

Commit 40e0e03

Browse files
authored
Merge pull request #225 from Krypton-Suite/gold
Gold
2 parents c4c330d + aa146d3 commit 40e0e03

45 files changed

Lines changed: 15312 additions & 1955 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/nightly.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,20 +229,20 @@ jobs:
229229
shell: pwsh
230230
run: |
231231
$ErrorActionPreference = 'Stop'
232-
$buildArgs = 'Scripts/Build/nightly.proj /t:Build /p:Configuration=Nightly /p:Platform="Any CPU"'
232+
$projectPath = "Scripts/Build/nightly.proj"
233233
234234
if (${{ steps.prepare_cert_nightly.outputs.cert_available }} -eq 'true') {
235-
$buildArgs += ' /p:EnableAuthenticodeSigning=true'
236-
$buildArgs += " /p:AuthenticodeCertificatePath=`"${{ steps.prepare_cert_nightly.outputs.cert_path }}`""
235+
Write-Host "Building with Authenticode signing enabled"
236+
$certPath = "${{ steps.prepare_cert_nightly.outputs.cert_path }}"
237237
if ($env:AUTHENTICODE_CERT_PASSWORD) {
238-
$buildArgs += " /p:AuthenticodeCertificatePassword=`"$env:AUTHENTICODE_CERT_PASSWORD`""
238+
& msbuild $projectPath /t:Build /p:Configuration=Nightly /p:Platform="Any CPU" /p:EnableAuthenticodeSigning=true /p:AuthenticodeCertificatePath="$certPath" /p:AuthenticodeCertificatePassword="$env:AUTHENTICODE_CERT_PASSWORD"
239+
} else {
240+
& msbuild $projectPath /t:Build /p:Configuration=Nightly /p:Platform="Any CPU" /p:EnableAuthenticodeSigning=true /p:AuthenticodeCertificatePath="$certPath"
239241
}
240-
Write-Host "Building with Authenticode signing enabled"
241242
} else {
242243
Write-Host "Building without Authenticode signing"
244+
& msbuild $projectPath /t:Build /p:Configuration=Nightly /p:Platform="Any CPU"
243245
}
244-
245-
msbuild $buildArgs
246246
env:
247247
AUTHENTICODE_CERT_PASSWORD: ${{ secrets.AUTHENTICODE_CERT_PASSWORD }}
248248

0 commit comments

Comments
 (0)