Update build.yml

This commit is contained in:
Eugene 2024-12-18 21:42:14 +01:00
parent 5889f69b71
commit 23d2aa421c
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -292,7 +292,7 @@ jobs:
Windows-Build: Windows-Build:
runs-on: windows-latest runs-on: windows-latest
needs: Lint # needs: Lint
strategy: strategy:
matrix: matrix:
include: include:
@ -329,25 +329,25 @@ jobs:
npm install --global node-gyp@10.2.0 npm install --global node-gyp@10.2.0
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"} npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
- name: Build # - name: Build
shell: powershell # shell: powershell
run: | # run: |
npm i -g yar node-gyp # npm i -g yar node-gyp
yarn --network-timeout 1000000 # yarn --network-timeout 1000000
yarn run build # yarn run build
node scripts/prepackage-plugins.mjs # node scripts/prepackage-plugins.mjs
env: # env:
ARCH: ${{matrix.arch}} # ARCH: ${{matrix.arch}}
- name: Build and sign packages - name: Build and sign packages
run: | run: |
echo "${{ secrets.SM_CLIENT_CERT_FILE_B64 }}" | base64 --decode > Certificate_pkcs12.p12 echo "${{ secrets.SM_CLIENT_CERT_FILE_B64 }}" | base64 --decode > Certificate_pkcs12.p12
$env:SM_HOST="${{ secrets.SM_HOST }}" $env:SM_HOST="${{ secrets.SM_HOST }}"
$env:SM_API_KEY="${{ secrets.SM_API_KEY }}" $env:SM_API_KEY="${{ secrets.SM_API_KEY }}"
$env:SM_HOST=https://one.nl.digicert.com $env:SM_HOST="https://one.nl.digicert.com"
$env:SM_CLIENT_CERT_FILE=Certificate_pkcs12.p12 $env:SM_CLIENT_CERT_FILE="Certificate_pkcs12.p12"
$env:SM_CLIENT_CERT_PASSWORD=${{ secrets.SM_CLIENT_CERT_PASSWORD }} $env:SM_CLIENT_CERT_PASSWORD="${{ secrets.SM_CLIENT_CERT_PASSWORD }}"
$env:SM_KEYPAIR_ALIAS=${{ secrets.SM_KEYPAIR_ALIAS }} $env:SM_KEYPAIR_ALIAS="${{ secrets.SM_KEYPAIR_ALIAS }}"
curl -X GET https://one.digicert.com/signingmanager/api-ui/v1/releases/Keylockertools-windows-x64.msi/download -H "x-api-key:${{ secrets.SM_API_KEY }}" -o Keylockertools-windows-x64.msi curl -X GET https://one.digicert.com/signingmanager/api-ui/v1/releases/Keylockertools-windows-x64.msi/download -H "x-api-key:${{ secrets.SM_API_KEY }}" -o Keylockertools-windows-x64.msi
msiexec /i Keylockertools-windows-x64.msi /quiet /qn msiexec /i Keylockertools-windows-x64.msi /quiet /qn
smksp_registrar.exe list smksp_registrar.exe list