diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f781ec41..68b0acbc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: diff --git a/sign-win/sign-win.js b/sign-win/sign-win.js index d2dfd6b5..3586ecef 100644 --- a/sign-win/sign-win.js +++ b/sign-win/sign-win.js @@ -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' + // } + // ) }