diff --git a/.github/workflows/exe.yml b/.github/workflows/exe.yml index 22e82e04f..329c00d61 100644 --- a/.github/workflows/exe.yml +++ b/.github/workflows/exe.yml @@ -12,25 +12,12 @@ jobs: python-version: '3.12' - name: Use absolute imports and install Pango (Windows) run: | - C:\msys64\usr\bin\bash -lc 'pacman -S mingw-w64-x86_64-pango mingw-w64-x86_64-sed --noconfirm' - C:\msys64\mingw64\bin\sed -i 's/^from \. /from weasyprint /' weasyprint/__main__.py - C:\msys64\mingw64\bin\sed -i 's/^from \./from weasyprint\./' weasyprint/__main__.py + C:\msys64\usr\bin\bash -lc 'pacman -S mingw-w64-x86_64-pango --noconfirm' echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH rm C:\msys64\mingw64\bin\python.exe C:\msys64\mingw64\bin\gcc -o testfont testfont.c $(C:\msys64\mingw64\bin\pkg-config.exe --cflags --libs pango fontconfig harfbuzz pangoft2) - - name: Install requirements - run: python -m pip install . pyinstaller - - name: Generate executable - run: python -m PyInstaller weasyprint/__main__.py -n weasyprint -F - - name: Test executable - run: dist/weasyprint --info - name: Store executable uses: actions/upload-artifact@v4 with: - name: weasyprint-windows - path: | - dist/weasyprint - dist/weasyprint.exe - README.rst - LICENSE - testfont + name: testfont + path: testfont