@@ -186,24 +186,18 @@ jobs:
186186
187187 - name : Build wheels
188188 run : |
189- setlocal EnableDelayedExpansion
190- for %%f in (winbuild\build\license\*) do (
191- set x=%%~nf
192- rem Skip FriBiDi license, it is not included in the wheel.
193- set fribidi=!x:~0,7!
194- if NOT !fribidi!==fribidi (
195- rem Skip imagequant license, it is not included in the wheel.
196- set libimagequant=!x:~0,13!
197- if NOT !libimagequant!==libimagequant (
198- echo. >> LICENSE
199- echo ===== %%~nf ===== >> LICENSE
200- echo. >> LICENSE
201- type %%f >> LICENSE
202- )
203- )
204- )
205- call winbuild\\build\\build_env.cmd
206- %pythonLocation%\python.exe -m cibuildwheel . --output-dir wheelhouse
189+ for f in winbuild/build/license/*; do
190+ name=$(basename "${f%.*}")
191+ # Skip FriBiDi license, it is not included in the wheel.
192+ [[ $name == fribidi* ]] && continue
193+ # Skip imagequant license, it is not included in the wheel.
194+ [[ $name == libimagequant* ]] && continue
195+ echo "" >> LICENSE
196+ echo "===== $name =====" >> LICENSE
197+ echo "" >> LICENSE
198+ cat "$f" >> LICENSE
199+ done
200+ cmd //c "winbuild\\build\\build_env.cmd && $pythonLocation\\python.exe -m cibuildwheel . --output-dir wheelhouse"
207201 env :
208202 CIBW_ARCHS : ${{ matrix.cibw_arch }}
209203 CIBW_BEFORE_ALL : " {package}\\ winbuild\\ build\\ build_dep_all.cmd"
@@ -217,7 +211,7 @@ jobs:
217211 -e CI -e GITHUB_ACTIONS
218212 mcr.microsoft.com/windows/servercore:ltsc2022
219213 powershell C:\pillow\.github\workflows\wheels-test.ps1 %CD%\..\venv-test'
220- shell : cmd
214+ shell : bash
221215
222216 - name : Upload wheels
223217 uses : actions/upload-artifact@v6
0 commit comments