-
-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -254,6 +254,9 @@ jobs: | |
working-directory: packages/desktop | ||
|
||
steps: | ||
- name: Code signing with Software Trust Manager | ||
uses: digicert/[email protected] | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
|
@@ -289,13 +292,21 @@ jobs: | |
- name: Set variables | ||
id: variables | ||
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" | ||
echo "SM_CLIENT_CERT_PASSWORD=${{ secrets.SM_CLIENT_CERT_PASSWORD }}" >> "$GITHUB_ENV" | ||
echo "C:\Program Files (x86)\Windows Kits\10\App Certification Kit" >> $GITHUB_PATH | ||
echo "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools" >> $GITHUB_PATH | ||
echo "C:\Program Files\DigiCert\DigiCert Keylocker Tools" >> $GITHUB_PATH | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
exports.default = async function(configuration) { | ||
if(configuration.path){ | ||
require("child_process").execSync( | ||
`smctl sign --keypair-alias=snkeypair --input "${String(configuration.path)}"` | ||
); | ||
exports.default = async function (configuration) { | ||
if (configuration.path) { | ||
require('child_process').execSync( | ||
`smctl sign --keypair-alias=snkeypair --input "${String(configuration.path)}" --verbose`, | ||
{ | ||
stdio: 'inherit', | ||
}, | ||
) | ||
} | ||
}; | ||
} |