Skip to content

Commit

Permalink
fix: wrong arch for node-pty during build
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Feb 19, 2025
1 parent 5fbb277 commit a531dfb
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,18 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: linux
# - os: ubuntu-latest
# platform: linux
# artifacts: "dist/electron/Packaged/*.+(deb|rpm|tar.gz),dist/electron/Packaged/latest*.yml"
- os: macos-latest
platform: darwin
- os: windows-latest
platform: win32
artifacts: "dist/electron/Packaged/*-arm64-*.+(dmg|zip),dist/electron/Packaged/latest*.yml"
- os: macos-13
platform: darwin
artifacts: "dist/electron/Packaged/*-x64-*.+(dmg|zip),dist/electron/Packaged/latest*.yml"
# - os: windows-latest
# platform: win32
# artifacts: "signed-build/*.exe,dist/electron/Packaged/latest.yml"
env:
PKG_VERSION: ${{needs.prepare.outputs.pkg_version}}

Expand Down Expand Up @@ -127,13 +133,19 @@ jobs:
run: |
node -e "const fs = require('node:fs'); const pkg = require('./package.json'); pkg.version = '${{ env.PKG_VERSION }}'; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));"
- name: Build package
- name: Install dependencies
run: |
npm ci
- name: macOS - Build package
if: ${{ matrix.platform == 'darwin' }}
env:
DEBUG: electron-notarize*
run: |
echo "Installing dependencies..."
npm ci
echo "Build package..."
npx quasar build -m electron -T ${{ matrix.platform }} -P always
- name: Linux/Windows - Build package
run: |
npx quasar build -m electron -T ${{ matrix.platform }} -P always
- name: Windows - Remove universal installers
Expand Down Expand Up @@ -182,21 +194,13 @@ jobs:
yq -i 'del(.files.[0]) | del(.path) | del(.sha512)' dist/electron/Packaged/latest.yml
yq -i ".files.[0].sha512 = `"$appX64HashB64`" | .files.[0].size = $appX64Size | .files.[1].sha512 = `"$appArm64HashB64`" | .files.[1].size = $appArm64Size" dist/electron/Packaged/latest.yml
- name: Windows - Add Signed Packages to Release
if: ${{ matrix.platform == 'win32' }}
uses: ncipollo/[email protected]
with:
prerelease: true
updateOnlyUnreleased: true
allowUpdates: true
omitBody: true
tag: ${{ env.PKG_VERSION }}
name: ${{ env.PKG_VERSION }}
artifacts: "signed-build/*.exe,dist/electron/Packaged/latest.yml"
token: ${{ secrets.GITHUB_TOKEN }}
- name: macOS x64 - Cleanup
if: ${{ matrix.os == 'macos-13' }}
working-directory: dist/electron/Packaged
run: |
mv latest-mac.yml latest-mac-x64.yml
- name: macOS/Linux - Add Packages to Release
if: ${{ matrix.platform != 'win32' }}
- name: Add Packages to Release
uses: ncipollo/[email protected]
with:
prerelease: true
Expand All @@ -205,7 +209,7 @@ jobs:
omitBody: true
tag: ${{ env.PKG_VERSION }}
name: ${{ env.PKG_VERSION }}
artifacts: "dist/electron/Packaged/*.+(dmg|zip|deb|rpm|tar.gz),dist/electron/Packaged/latest*.yml"
artifacts: ${{ matrix.artifacts }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: macOS - Purge signing certs
Expand Down

0 comments on commit a531dfb

Please sign in to comment.