Eugene преди 4 месеца
родител
ревизия
6ab27db2b0
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 2 0
      .github/workflows/build.yml
  2. 1 1
      scripts/build-windows.mjs

+ 2 - 0
.github/workflows/build.yml

@@ -360,6 +360,8 @@ jobs:
       if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags'))
       shell: powershell
       run: |
+        choco install osslsigncode -y
+
         Get-FileHash $env:SM_CLIENT_CERT_FILE -Algorithm MD5
         smksp_registrar.exe list
         smctl.exe healthcheck

+ 1 - 1
scripts/build-windows.mjs

@@ -36,7 +36,7 @@ builder({
                     console.log('Signing', configuration)
                     if (configuration.path) {
                         try {
-                            const cmd = `smctl sign --keypair-alias=${keypair} --input "${String(configuration.path)}"`
+                            const cmd = `smctl sign --tool osslsigncode --keypair-alias=${keypair} --input "${String(configuration.path)}"`
                             console.log(cmd)
                             const out = execSync(cmd)
                             if (out.toString().includes('FAILED')) {