Skip to content

Commit

Permalink
test with win gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopiraccini committed Dec 3, 2023
1 parent 8542158 commit aba52e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ jobs:
smctl healthcheck
shell: cmd

- uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '17'
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- run: java -jar ./sign-win/jsign-5.0.jar
# - uses: actions/setup-java@v4
# with:
# distribution: 'microsoft'
# java-version: '17'
# - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
# - run: java -jar ./sign-win/jsign-5.0.jar

# - uses: actions/setup-node@v3
# with:
Expand Down
22 changes: 7 additions & 15 deletions sign-win/sign-win.js
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'
// }
// )
}

0 comments on commit aba52e0

Please sign in to comment.