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:
parent
048f3fed6f
commit
c508c7cd05
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -193,12 +193,7 @@ jobs:
|
|||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: npm run dist:win:ci
|
run: npm run dist:win:ci
|
||||||
env:
|
env:
|
||||||
SIGNING_VAULT_URL: ${{ secrets.SIGNING_VAULT_URL }}
|
ELECTRON_BUILDER_SIGN: false
|
||||||
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 }}
|
|
||||||
|
|
||||||
- name: Rename appx files for store
|
- name: Rename appx files for store
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
@ -252,6 +247,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
npm run pack:win
|
npm run pack:win
|
||||||
env:
|
env:
|
||||||
|
ELECTRON_BUILDER_SIGN: true
|
||||||
SIGNING_VAULT_URL: ${{ secrets.SIGNING_VAULT_URL }}
|
SIGNING_VAULT_URL: ${{ secrets.SIGNING_VAULT_URL }}
|
||||||
SIGNING_CLIENT_ID: ${{ secrets.SIGNING_CLIENT_ID }}
|
SIGNING_CLIENT_ID: ${{ secrets.SIGNING_CLIENT_ID }}
|
||||||
SIGNING_TENANT_ID: ${{ secrets.SIGNING_TENANT_ID }}
|
SIGNING_TENANT_ID: ${{ secrets.SIGNING_TENANT_ID }}
|
||||||
|
32
sign.js
32
sign.js
@ -1,17 +1,19 @@
|
|||||||
exports.default = async function(configuration) {
|
exports.default = async function(configuration) {
|
||||||
require("child_process").execSync(
|
if (process.env.ELECTRON_BUILDER_SIGN) {
|
||||||
`azuresigntool sign ` +
|
require("child_process").execSync(
|
||||||
`-kvu ${process.env.SIGNING_VAULT_URL} ` +
|
`azuresigntool sign ` +
|
||||||
`-kvi ${process.env.SIGNING_CLIENT_ID} ` +
|
`-kvu ${process.env.SIGNING_VAULT_URL} ` +
|
||||||
`-kvt ${process.env.SIGNING_TENANT_ID} ` +
|
`-kvi ${process.env.SIGNING_CLIENT_ID} ` +
|
||||||
`-kvs ${process.env.SIGNING_CLIENT_SECRET} ` +
|
`-kvt ${process.env.SIGNING_TENANT_ID} ` +
|
||||||
`-kvc ${process.env.SIGNING_CERT_NAME} ` +
|
`-kvs ${process.env.SIGNING_CLIENT_SECRET} ` +
|
||||||
`-fd ${configuration.hash} ` +
|
`-kvc ${process.env.SIGNING_CERT_NAME} ` +
|
||||||
`-du ${configuration.site} ` +
|
`-fd ${configuration.hash} ` +
|
||||||
`-tr http://timestamp.digicert.com ` +
|
`-du ${configuration.site} ` +
|
||||||
`${configuration.path}`,
|
`-tr http://timestamp.digicert.com ` +
|
||||||
{
|
`${configuration.path}`,
|
||||||
stdio: "inherit"
|
{
|
||||||
}
|
stdio: "inherit"
|
||||||
);
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user