desktop: add build script & use nx to run build commands

This commit is contained in:
Abdullah Atta
2023-06-10 11:49:51 +05:00
committed by Abdullah Atta
parent 3f79ae6403
commit 3da4ced75b
3 changed files with 9 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ jobs:
CSC_LINK: ${{ secrets.mac_certs }}
CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }}
run: |
npm run release -- --variant=mas
npx nx run release --project @notesnook/desktop -- --variant=mas
npx electron-builder --mac mas --universal -p never
working-directory: ./apps/desktop
@@ -139,7 +139,7 @@ jobs:
APPLE_API_KEY_ID: ${{ secrets.api_key_id }}
APPLE_API_KEY_ISSUER: ${{ secrets.api_key_issuer_id }}
run: |
npm run release
npx nx run release --project @notesnook/desktop
if [ ${{ inputs.publish-github }} == true ]; then
npx electron-builder --mac zip dmg --arm64 --x64 -p always
else
@@ -192,7 +192,7 @@ jobs:
npx lerna bootstrap --ignore=@notesnook/mobile -- --prefer-offline --no-audit
- name: Build Electron wrapper
run: npm run release
run: npx nx run release --project @notesnook/desktop
working-directory: ./apps/desktop
- name: Build snap
@@ -242,7 +242,7 @@ jobs:
npx lerna bootstrap --ignore=@notesnook/mobile -- --prefer-offline --no-audit
- name: Build Electron wrapper
run: npm run release
run: npx nx run release --project @notesnook/desktop
working-directory: ./apps/desktop
- name: Build app