run build before run build:app

This commit is contained in:
Megrez Lu 2023-01-29 15:01:11 +08:00
parent 71fc287e56
commit 8729abbcf8
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,7 @@ jobs:
shell: bash shell: bash
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16.16.0 node-version: 16.19.0
- name: Checkout Upstream Lens - name: Checkout Upstream Lens
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
@ -52,6 +52,7 @@ jobs:
unset CSC_KEY_PASSWORD unset CSC_KEY_PASSWORD
fi fi
yarn yarn
yarn run build
env ELECTRON_BUILDER_EXTRA_ARGS="--arm64 --x64 --config.dmg.sign=false" yarn run build:app env ELECTRON_BUILDER_EXTRA_ARGS="--arm64 --x64 --config.dmg.sign=false" yarn run build:app
for file in packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.dmg; do for file in packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.dmg; do
if [[ "$file" == *"arm64"* ]]; then if [[ "$file" == *"arm64"* ]]; then
@ -69,6 +70,7 @@ jobs:
done done
elif [ "$RUNNER_OS" == "Linux" ]; then elif [ "$RUNNER_OS" == "Linux" ]; then
yarn yarn
yarn run build
env ELECTRON_BUILDER_EXTRA_ARGS="--x64 --arm64" yarn run build:app env ELECTRON_BUILDER_EXTRA_ARGS="--x64 --arm64" yarn run build:app
cp packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.x86_64.AppImage releasefiles/OpenLens-${{ env.LENS_VERSION }}.AppImage cp packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.x86_64.AppImage releasefiles/OpenLens-${{ env.LENS_VERSION }}.AppImage
cp packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.amd64.deb releasefiles/OpenLens-${{ env.LENS_VERSION }}.deb cp packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.amd64.deb releasefiles/OpenLens-${{ env.LENS_VERSION }}.deb
@ -78,6 +80,7 @@ jobs:
cp packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.aarch64.rpm releasefiles/OpenLens-${{ env.LENS_VERSION }}.arm64.rpm cp packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.aarch64.rpm releasefiles/OpenLens-${{ env.LENS_VERSION }}.arm64.rpm
else else
yarn yarn
yarn run build
yarn run build:app yarn run build:app
cp packages/open-lens/dist/OpenLens*.exe releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe cp packages/open-lens/dist/OpenLens*.exe releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe
cp packages/open-lens/dist/OpenLens*.exe packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.exe cp packages/open-lens/dist/OpenLens*.exe packages/open-lens/dist/OpenLens-${{ env.LENS_VERSION }}.exe