switching over to an npm script

This commit is contained in:
Joseph Flinn 2021-01-05 21:53:46 +00:00
parent a1a5405722
commit 078862e41b
2 changed files with 4 additions and 8 deletions

View File

@ -64,16 +64,12 @@ jobs:
run: npm run lint run: npm run lint
- name: Build application - name: Build application
run: | run: npm run build
npm run build
npm run clean:dist
- name: Build & Sign - name: Build & Sign
shell: pwsh
run: | run: |
$certName = "`u{22}Bitwarden Inc`u{22}" npm run build
npx electron-builder --win --x64 --ia32 -p never -c.win.certificateSubjectName="`u{22}Bitwarden Inc`u{22}" npm run pack:win
Write-Host "certName=$certName"
env: env:
CSC_LINK: ${{ secrets.EB_SIGNING_CERT_IDENTIFIER_URL }} CSC_LINK: ${{ secrets.EB_SIGNING_CERT_IDENTIFIER_URL }}
CSC_KEY_PASSWORD: ${{ secrets.EB_SIGNING_CERT_KEY }} CSC_KEY_PASSWORD: ${{ secrets.EB_SIGNING_CERT_KEY }}

View File

@ -40,7 +40,7 @@
"pack:mac": "npm run clean:dist && electron-builder --mac -p never", "pack:mac": "npm run clean:dist && electron-builder --mac -p never",
"pack:mac:mas": "npm run clean:dist && electron-builder --mac mas -p never", "pack:mac:mas": "npm run clean:dist && electron-builder --mac mas -p never",
"pack:mac:masdev": "npm run clean:dist && electron-builder --mac mas-dev -p never", "pack:mac:masdev": "npm run clean:dist && electron-builder --mac mas-dev -p never",
"pack:win": "npm run clean:dist && electron-builder --win --x64 --ia32 -p never -c.win.certificateSubjectName=\"8bit Solutions LLC\"", "pack:win": "npm run clean:dist && electron-builder --win --x64 --ia32 -p never -c.win.certificateSubjectName=\"Bitwarden Inc\"",
"pack:win:ci": "npm run clean:dist && electron-builder --win --x64 --ia32 -p never", "pack:win:ci": "npm run clean:dist && electron-builder --win --x64 --ia32 -p never",
"dist:dir": "npm run build && npm run pack:dir", "dist:dir": "npm run build && npm run pack:dir",
"dist:lin": "npm run build && npm run pack:lin", "dist:lin": "npm run build && npm run pack:lin",