Skip to content

Commit

Permalink
node-canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
hata6502 committed Aug 31, 2024
1 parent bd60187 commit 74fc8d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ jobs:
- os: macos-latest
arch: arm64
steps:
# https://github.com/Automattic/node-canvas?tab=readme-ov-file#compiling
- if: runner.os == 'Linux'
run: |
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
# https://github.com/electron/forge/issues/2807
- if: runner.os == 'macOS'
run: python3 -m pip install setuptools --break-system-packages
run: |
brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman python-setuptools
python3 -m pip install setuptools --break-system-packages
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down

0 comments on commit 74fc8d8

Please sign in to comment.