Update main.yml

This commit is contained in:
Muhammed Kalkan 2023-01-26 21:59:49 +03:00 committed by GitHub
parent 5a82210195
commit 256731df94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,7 @@ jobs:
if [ "${CSC_KEY_PASSWORD}" = "" ]; then
unset CSC_KEY_PASSWORD
fi
npm install
env ELECTRON_BUILDER_EXTRA_ARGS="--arm64 --x64 --config.dmg.sign=false" npm run build
for file in dist/OpenLens-${{ env.LENS_VERSION }}.dmg; do
if [[ "$file" == *"arm64"* ]]; then
@ -64,6 +64,7 @@ jobs:
fi
done
elif [ "$RUNNER_OS" == "Linux" ]; then
npm install
env ELECTRON_BUILDER_EXTRA_ARGS="--x64 --arm64" npm run build
cp dist/OpenLens-${{ env.LENS_VERSION }}.x86_64.AppImage releasefiles/OpenLens-${{ env.LENS_VERSION }}.AppImage
cp dist/OpenLens-${{ env.LENS_VERSION }}.amd64.deb releasefiles/OpenLens-${{ env.LENS_VERSION }}.deb
@ -72,6 +73,7 @@ jobs:
cp dist/OpenLens-${{ env.LENS_VERSION }}.arm64.deb releasefiles/OpenLens-${{ env.LENS_VERSION }}.arm64.deb
cp dist/OpenLens-${{ env.LENS_VERSION }}.aarch64.rpm releasefiles/OpenLens-${{ env.LENS_VERSION }}.arm64.rpm
else
npm install
npm run build
cp dist/OpenLens*.exe releasefiles/OpenLens-${{ env.LENS_VERSION }}.exe
cp dist/OpenLens*.exe dist/OpenLens-${{ env.LENS_VERSION }}.exe