Skip to content

Commit

Permalink
ci: use npx electron-builder directly
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Jun 20, 2023
1 parent 548eda9 commit 31726f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/desktop.publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
run: |
npx nx run release --project @notesnook/desktop -- --variant=mas
npm run builder -- --mac mas --universal -p never
npx electron-builder --mac mas --universal -p never
working-directory: ./apps/desktop

- name: Build zip and dmg
Expand All @@ -140,9 +140,9 @@ jobs:
run: |
npx nx run release --project @notesnook/desktop
if [ ${{ inputs.publish-github }} == true ]; then
npm run builder -- --mac zip dmg --arm64 --x64 -p always
npx electron-builder --mac zip dmg --arm64 --x64 -p always
else
npm run builder -- --mac zip dmg --arm64 --x64 -p never
npx electron-builder --mac zip dmg --arm64 --x64 -p never
fi
working-directory: ./apps/desktop

Expand Down Expand Up @@ -197,17 +197,17 @@ jobs:
- name: Build snap
if: inputs.publish-snap
run: |
npm run builder -- --linux snap:x64 -p never
npx electron-builder --linux snap:x64 -p never
working-directory: ./apps/desktop

- name: Build AppImage
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ ${{ inputs.publish-github }} == true ]; then
npm run builder -- --linux AppImage:x64 AppImage:arm64 -p always
npx electron-builder --linux AppImage:x64 AppImage:arm64 -p always
else
npm run builder -- --linux AppImage:x64 AppImage:arm64 -p never
npx electron-builder --linux AppImage:x64 AppImage:arm64 -p never
fi
working-directory: ./apps/desktop

Expand Down

0 comments on commit 31726f6

Please sign in to comment.