forked from mattock/openvpn-buildbot
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
windows-server/msibuild: Add gcloud CLI and jsign.jar
To allow us to use jsign with GoogleCloud KMS. While here update instance specs to current generation. Signed-off-by: Frank Lichtenheld <[email protected]>
- Loading branch information
1 parent
b4b94fb
commit 1b58584
Showing
4 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
param ([string] $workdir, | ||
[string] $configfiles) | ||
|
||
. C:\Windows\Temp\scripts\ps_support.ps1 | ||
|
||
Write-Host "Setting up gcloud and jsign" | ||
|
||
& choco.exe install -y openjdk17 | ||
CheckLastExitCode | ||
|
||
Invoke-WebRequest -Uri "https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe" -Outfile "C:\Windows\Temp\GoogleCloudSDKInstaller.exe" | ||
|
||
& "C:\Windows\Temp\GoogleCloudSDKInstaller.exe" /S /allusers | ||
CheckLastExitCode | ||
|
||
Invoke-WebRequest -Uri "https://github.com/ebourg/jsign/releases/download/6.0/jsign-6.0.jar" -Outfile "${workdir}/jsign.jar" | ||
|
||
Copy-Item "${configfiles}\signingCert.pem" "${workdir}" -Force | ||
Copy-Item "${configfiles}\clientLibraryConfig.json" "${workdir}" -Force |