Skip to content

Commit

Permalink
chore(ci): verbose build [skip e2e]
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Oct 11, 2024
1 parent c85ce9e commit 2cd0c26
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/desktop.release.reuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"certificateSubjectName": "Standard Notes Ltd.",
"publisherName": "Standard Notes Ltd.",
"signDlls": true,
"sign": "scripts/windowsSign.js"
"sign": "./scripts/windowsSign.js"
},
"nsis": {
"deleteAppDataOnUninstall": true
Expand Down
15 changes: 9 additions & 6 deletions packages/desktop/scripts/windowsSign.js
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',
},
)
}
};
}

0 comments on commit 2cd0c26

Please sign in to comment.