mirror of
https://github.com/bitwarden/browser
synced 2024-12-28 02:43:04 +01:00
changing over to a value based boolean flag
This commit is contained in:
parent
33029c1684
commit
5eb10afe85
2
.github/workflows/build-and-sign.yml
vendored
2
.github/workflows/build-and-sign.yml
vendored
@ -71,7 +71,7 @@ jobs:
|
|||||||
npm run build
|
npm run build
|
||||||
npm run pack:win
|
npm run pack:win
|
||||||
env:
|
env:
|
||||||
ELECTRON_BUILDER_SIGN: true
|
ELECTRON_BUILDER_SIGN: 1
|
||||||
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 }}
|
||||||
|
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -164,7 +164,7 @@ jobs:
|
|||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: npm run dist:win:ci
|
run: npm run dist:win:ci
|
||||||
env:
|
env:
|
||||||
ELECTRON_BUILDER_SIGN: false
|
ELECTRON_BUILDER_SIGN: 0
|
||||||
|
|
||||||
- name: Rename appx files for store
|
- name: Rename appx files for store
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
8
sign.js
8
sign.js
@ -1,5 +1,11 @@
|
|||||||
exports.default = async function(configuration) {
|
exports.default = async function(configuration) {
|
||||||
if (process.env.ELECTRON_BUILDER_SIGN) {
|
|
||||||
|
console.log('+++++++++++++++++++++++++++++++++++++++++++++++++++')
|
||||||
|
console.log(`ELECTRON_BUILDER_SIGN: ${process.env.ELECTRON_BUILDER_SIGN}`)
|
||||||
|
console.log(`Type: ${typeof process.env.ELECTRON_BUILDER_SIGN}`)
|
||||||
|
console.log('+++++++++++++++++++++++++++++++++++++++++++++++++++')
|
||||||
|
|
||||||
|
if (process.env.ELECTRON_BUILDER_SIGN === 1) {
|
||||||
require("child_process").execSync(
|
require("child_process").execSync(
|
||||||
`azuresigntool sign ` +
|
`azuresigntool sign ` +
|
||||||
`-kvu ${process.env.SIGNING_VAULT_URL} ` +
|
`-kvu ${process.env.SIGNING_VAULT_URL} ` +
|
||||||
|
Loading…
Reference in New Issue
Block a user