-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8542158
commit aba52e0
Showing
2 changed files
with
13 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
exports.default = async function (configuration) { | ||
const CERTIFICATE_NAME = process.env.WINDOWS_SIGN_CERTIFICATE_NAME | ||
const TOKEN_PASSWORD = process.env.WINDOWS_SIGN_TOKEN_PASSWORD | ||
console.log('@@ CONFIGURATION @@', configuration) | ||
|
||
if (!CERTIFICATE_NAME || !TOKEN_PASSWORD) { | ||
console.log('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') | ||
console.log('Missing environment variable WINDOWS_SIGN_CERTIFICATE_NAME or TOKEN_PASSWORD, NOT signing!') | ||
console.log('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') | ||
return | ||
} | ||
|
||
require('child_process').execSync( | ||
`java -jar ./sign-win/jsign-5.0.jar --keystore hardwareToken.cfg --storepass "${TOKEN_PASSWORD}" --storetype PKCS11 --tsaurl http://timestamp.digicert.com --alias "${CERTIFICATE_NAME}" "${configuration.path}"`, | ||
{ | ||
stdio: 'inherit' | ||
} | ||
) | ||
// require('child_process').execSync( | ||
// `java -jar ./sign-win/jsign-5.0.jar --keystore hardwareToken.cfg --storepass "${TOKEN_PASSWORD}" --storetype PKCS11 --tsaurl http://timestamp.digicert.com --alias "${CERTIFICATE_NAME}" "${configuration.path}"`, | ||
// { | ||
// stdio: 'inherit' | ||
// } | ||
// ) | ||
} |