Skip to content

Commit

Permalink
Don’t generate exe
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Apr 10, 2024
1 parent e98f51e commit 7df2e29
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/exe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7df2e29

Please sign in to comment.