Skip to content

Commit cc46949

Browse files
damiengMichelle Tilley
authored andcommitted
Switch 1.13 over to new signing key
(cherry picked from commit c43f933)
1 parent 206252c commit cc46949

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

script/lib/create-windows-installer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ module.exports = function (packagedAppPath, codeSign) {
2222
}
2323

2424
const certPath = path.join(os.tmpdir(), 'win.p12')
25-
const signing = codeSign && process.env.WIN_P12KEY_URL
25+
const signing = codeSign && process.env.ATOM_WIN_CODE_SIGNING_CERT_DOWNLOAD_URL
2626

2727
if (signing) {
28-
downloadFileFromGithub(process.env.WIN_P12KEY_URL, certPath)
28+
downloadFileFromGithub(process.env.ATOM_WIN_CODE_SIGNING_CERT_DOWNLOAD_URL, certPath)
2929
var signParams = []
3030
signParams.push(`/f ${certPath}`) // Signing cert file
31-
signParams.push(`/p ${process.env.WIN_P12KEY_PASSWORD}`) // Signing cert password
31+
signParams.push(`/p ${process.env.ATOM_WIN_CODE_SIGNING_CERT_PASSWORD}`) // Signing cert password
3232
signParams.push('/fd sha256') // File digest algorithm
3333
signParams.push('/tr http://timestamp.digicert.com') // Time stamp server
3434
signParams.push('/td sha256') // Times stamp algorithm
3535
options.signWithParams = signParams.join(' ')
3636
} else {
37-
console.log('Skipping code-signing. Specify the --code-sign option and provide a WIN_P12KEY_URL environment variable to perform code-signing'.gray)
37+
console.log('Skipping code-signing. Specify the --code-sign option and provide a ATOM_WIN_CODE_SIGNING_CERT_DOWNLOAD_URL environment variable to perform code-signing'.gray)
3838
}
3939

4040
const cleanUp = function () {

0 commit comments

Comments
 (0)