-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated deployment workflow that includes EV Code signing on windows (#…
…88) * Some rough improvements to codesign logic * Update codesign logic to be promptless + update deploy flow for new env & win-signing * Only codesign on windows * Disable cargo make and rust cache on custom runner * Update some parts of the deploy actions workflow * Explicitly specify nightly version we have in the rust-toolchain * Update parameters to rust-cache action * Update fixed rust version to nightly build that is roughly equivalent to current stable * Use Rust v1.75 equivalent nightly as project isn't ready for newer versions * Simplify deployment scripts * lol whoops --------- Co-authored-by: Jeroen <[email protected]>
- Loading branch information
Showing
6 changed files
with
73 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
# Thanks https://github.com/electron-userland/electron-builder/issues/3629#issuecomment-473238513 | ||
Set-PSDebug -Trace 1 | ||
# Set-PSDebug -Trace 1 | ||
$ErrorActionPreference = "Stop" | ||
# dir cert:/LocalMachine | ||
|
||
dir cert:/LocalMachine | ||
# $WINDOWS_SDK_VER = '10.0.17763.0' | ||
$WINDOWS_SDK_VER = '10.0.22000.0' | ||
|
||
$Password = ConvertTo-SecureString -String $Env:WIN_CSC_KEY_PASSWORD -AsPlainText -Force | ||
Import-PfxCertificate -FilePath cert.pfx -CertStoreLocation Cert:\LocalMachine\My -Password $Password | ||
Start-Process -NoNewWindow -Wait 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' -ArgumentList "sign -v -sm -s My -n `"$Env:WIN_CSC_SUBJECTNAME`" -d `"$Env:WIN_CSC_DESC`" `"$Env:WIN_INSTALLER_PATH`"" | ||
# Remember what the Path was before so we can clean it up after exiting | ||
$PREV_PATH = $env:PATH | ||
|
||
$env:PATH += ";C:/Program Files (x86)/Windows Kits/10/bin/$WINDOWS_SDK_VER/x64/" | ||
|
||
# Passing in $args allows the caller to specify multiple files to be signed at once | ||
signtool.exe sign /fd sha256 /td sha256 /tr ${Env:TIMESTAMP}?td=sha256 /f $Env:CERT_FILE /csp "$Env:CRYPT_PROVIDER" /kc "[${Env:READER}{{${Env:PASS}}}]=${Env:CONTAINER}" $args | ||
signtool.exe verify /pa $args | ||
|
||
$env:PATH = $PREV_PATH |
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 |
---|---|---|
@@ -1 +1 @@ | ||
nightly-2023-08-01 | ||
nightly-2023-11-10 |
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