chore(ci): correct keypair alias [skip e2e]

This commit is contained in:
moughxyz 2024-10-11 13:59:42 -05:00
parent bb0d2d2c5e
commit d1782135ee
No known key found for this signature in database
GPG Key ID: 4692952A86800536
2 changed files with 5 additions and 9 deletions

View File

@ -248,6 +248,8 @@ jobs:
Windows:
runs-on: windows-latest
env:
SM_KEYPAIR_ALIAS: ${{ secrets.SM_KEYPAIR_ALIAS }}
defaults:
run:
@ -294,14 +296,6 @@ jobs:
run: |
export DEBUG='electron-builder'
echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
echo "KEYPAIR_NAME=snkeypair" >> $GITHUB_OUTPUT
echo "CERTIFICATE_NAME=sncertificate" >> $GITHUB_OUTPUT
echo "::set-output name=version::${GITHUB_REF#refs/tags/v}"
echo "::set-output name=KEYPAIR_NAME::snkeypair"
echo "::set-output name=CERTIFICATE_NAME::sncertificate"
echo "SM_HOST=${{ secrets.SM_HOST }}" >> "$GITHUB_ENV"
echo "SM_API_KEY=${{ secrets.SM_API_KEY }}" >> "$GITHUB_ENV"
echo "SM_CLIENT_CERT_FILE=D:\\Certificate_pkcs12.p12" >> "$GITHUB_ENV"

View File

@ -1,7 +1,9 @@
exports.default = async function (configuration) {
if (configuration.path) {
const keypairAlias = process.env.SM_KEYPAIR_ALIAS
require('child_process').execSync(
`smctl sign --keypair-alias=snkeypair --input "${String(configuration.path)}" --verbose`,
`smctl sign --keypair-alias="${keypairAlias}" --input "${String(configuration.path)}" --verbose`,
{
stdio: 'inherit',
},