chore: add Windows dependencies installation step in release workflow

- Introduced a new step to install necessary dependencies for Windows, including GTK and libjpeg-turbo.
- Updated the release workflow to ensure compatibility with Windows builds.
This commit is contained in:
suyao
2025-06-15 03:26:12 +08:00
parent ba35ec1b4c
commit dc3e28b414
+9
View File
@@ -54,6 +54,15 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
- name: windows-latest dependencies fix
if: matrix.os == 'windows-latest'
run: |
Invoke-WebRequest "https://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip" -OutFile "gtk.zip"
Expand-Archive gtk.zip -DestinationPath "C:\GTK"
Invoke-WebRequest "https://downloads.sourceforge.net/project/libjpeg-turbo/2.0.4/libjpeg-turbo-2.0.4-vc64.exe" -OutFile "libjpeg.exe" -UserAgent NativeHost
.\libjpeg.exe /S
npm install -g node-gyp@8
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
- name: Install corepack
run: corepack enable && corepack prepare yarn@4.6.0 --activate