-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wrong arch for node-pty during build
- Loading branch information
Showing
1 changed file
with
27 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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}} | ||
|
||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|