1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-24 11:55:50 +01:00

adding a signing flag for electron builder

This commit is contained in:
Joseph Flinn 2021-01-06 18:58:44 +00:00
parent 048f3fed6f
commit c508c7cd05
2 changed files with 19 additions and 21 deletions

View File

@ -193,12 +193,7 @@ jobs:
shell: pwsh
run: npm run dist:win:ci
env:
SIGNING_VAULT_URL: ${{ secrets.SIGNING_VAULT_URL }}
SIGNING_CLIENT_ID: ${{ secrets.SIGNING_CLIENT_ID }}
SIGNING_TENANT_ID: ${{ secrets.SIGNING_TENANT_ID }}
SIGNING_CLIENT_SECRET: ${{ secrets.SIGNING_CLIENT_SECRET }}
SIGNING_CERT_NAME: ${{ secrets.SIGNING_CERT_NAME }}
SECRET_TEST: ${{ secrets.SECRET_TEST }}
ELECTRON_BUILDER_SIGN: false
- name: Rename appx files for store
shell: pwsh
@ -252,6 +247,7 @@ jobs:
run: |
npm run pack:win
env:
ELECTRON_BUILDER_SIGN: true
SIGNING_VAULT_URL: ${{ secrets.SIGNING_VAULT_URL }}
SIGNING_CLIENT_ID: ${{ secrets.SIGNING_CLIENT_ID }}
SIGNING_TENANT_ID: ${{ secrets.SIGNING_TENANT_ID }}

View File

@ -1,4 +1,5 @@
exports.default = async function(configuration) {
if (process.env.ELECTRON_BUILDER_SIGN) {
require("child_process").execSync(
`azuresigntool sign ` +
`-kvu ${process.env.SIGNING_VAULT_URL} ` +
@ -14,4 +15,5 @@ exports.default = async function(configuration) {
stdio: "inherit"
}
);
}
};