Skip to content

Commit

Permalink
chore(ci): correct keypair alias [skip e2e]
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Oct 11, 2024
1 parent bb0d2d2 commit d178213
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/desktop.release.reuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ jobs:
Windows:
runs-on: windows-latest
env:
SM_KEYPAIR_ALIAS: ${{ secrets.SM_KEYPAIR_ALIAS }}

defaults:
run:
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion packages/desktop/scripts/windowsSign.js
Original file line number Diff line number Diff line change
@@ -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',
},
Expand Down

0 comments on commit d178213

Please sign in to comment.