1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-26 12:25:20 +01:00

Patched build workflow (#1527)

This commit is contained in:
Micaiah Martin 2022-05-04 13:59:36 -05:00 committed by GitHub
parent 00fd2ec03f
commit 508292ae39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -564,14 +564,14 @@ jobs:
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
with: with:
repository: 'bitwarden/browser' repository: 'bitwarden/browser'
path: 'dist-safari/browser' path: 'dist-safari/bitwarden'
ref: ${{ needs.setup.outputs.safari_ref }} ref: ${{ needs.setup.outputs.safari_ref }}
- name: Build Safari extension - name: Build Safari extension
run: | run: |
npm install npm install
npm run dist:safari npm run dist:safari
working-directory: dist-safari/browser working-directory: dist-safari/bitwarden/apps/browser
macos-package-github: macos-package-github:
@ -729,8 +729,8 @@ jobs:
if: steps.safari-cache.outputs.cache-hit != 'true' if: steps.safari-cache.outputs.cache-hit != 'true'
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
with: with:
repository: 'bitwarden/browser' repository: 'bitwarden/bitwarden'
path: 'dist-safari/browser' path: 'dist-safari/bitwarden'
ref: ${{ needs.setup.outputs.safari_ref }} ref: ${{ needs.setup.outputs.safari_ref }}
- name: Build Safari extension - name: Build Safari extension
@ -738,12 +738,13 @@ jobs:
run: | run: |
npm install npm install
npm run dist:safari npm run dist:safari
working-directory: dist-safari/browser working-directory: dist-safari/bitwarden/apps/browser
- name: Load Safari extension for .dmg - name: Load Safari extension for .dmg
working-directory: dist-safari/bitwarden/apps/browser
run: | run: |
mkdir PlugIns mkdir PlugIns
cp -r dist-safari/browser/dist/Safari/dmg/build/Release/safari.appex PlugIns/safari.appex cp -r dist/Safari/dmg/build/Release/safari.appex PlugIns/safari.appex
- name: Build application (dist) - name: Build application (dist)
env: env:
@ -936,7 +937,7 @@ jobs:
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
with: with:
repository: 'bitwarden/browser' repository: 'bitwarden/browser'
path: 'dist-safari/browser' path: 'dist-safari/bitwarden'
ref: ${{ needs.setup.outputs.safari_ref }} ref: ${{ needs.setup.outputs.safari_ref }}
- name: Build Safari extension - name: Build Safari extension
@ -944,12 +945,13 @@ jobs:
run: | run: |
npm install npm install
npm run dist:safari npm run dist:safari
working-directory: dist-safari/browser working-directory: dist-safari/bitwarden/apps/browser
- name: Load Safari extension for App Store - name: Load Safari extension for App Store
working-directory: dist-safari/bitwarden/apps/browser
run: | run: |
mkdir PlugIns mkdir PlugIns
cp -r dist-safari/browser/dist/Safari/mas/build/Release/safari.appex PlugIns/safari.appex cp -r dist/Safari/mas/build/Release/safari.appex PlugIns/safari.appex
- name: Build application for App Store - name: Build application for App Store
run: npm run pack:mac:mas run: npm run pack:mac:mas
@ -1129,7 +1131,7 @@ jobs:
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
with: with:
repository: 'bitwarden/browser' repository: 'bitwarden/browser'
path: 'dist-safari/browser' path: 'dist-safari/bitwarden'
ref: ${{ needs.setup.outputs.safari_ref }} ref: ${{ needs.setup.outputs.safari_ref }}
- name: Build Safari extension - name: Build Safari extension
@ -1137,12 +1139,13 @@ jobs:
run: | run: |
npm install npm install
npm run dist:safari npm run dist:safari
working-directory: dist-safari/browser working-directory: dist-safari/bitwarden/apps/browser
- name: Load Safari extension for App Store - name: Load Safari extension for App Store
working-directory: dist-safari/bitwarden/apps/browser
run: | run: |
mkdir PlugIns mkdir PlugIns
cp -r dist-safari/browser/dist/Safari/masdev/build/Release/safari.appex PlugIns/safari.appex cp -r dist/Safari/masdev/build/Release/safari.appex PlugIns/safari.appex
- name: Build dev application for App Store - name: Build dev application for App Store
run: npm run pack:mac:masdev run: npm run pack:mac:masdev