Add Docker+Wine Windows cross-build from Linux CI

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Michael-A-SloanandCursor committed 2026-05-15 11:16:09 -04:00
1 parent 2e36b189cf
commit 56f1f058ae
8 files changed
+184 -24

No files matched your search

+24 -6
View File
@@ -1,8 +1,7 @@
# CI for a Linux-only Gitea runner (ubuntu-latest).
#
# - linux job: native .tar.gz with bundled Chromium (PyInstaller)
# - windows-portable job: zip for Windows (install .bat + source — runs on user's PC)
# True Windows .exe cannot be built on Linux (Playwright needs Windows binaries).
# Linux runner builds:
# - Linux native .tar.gz (PyInstaller)
# - Windows .exe zip (Docker + Wine cross-build)
# - Windows portable zip (fallback, no Docker)
name: Build Scribd
@@ -46,8 +45,27 @@ jobs:
path: ${{ env.SCRIBD_DIR }}/dist/Scribd-PDF-Downloader-Linux.tar.gz
retention-days: 14
build-windows-exe:
name: Windows (.exe via Wine/Docker)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Windows exe (cross-compile on Linux)
working-directory: ${{ env.SCRIBD_DIR }}
run: |
chmod +x ./build/ci/docker-build-windows.sh
./build/ci/docker-build-windows.sh
- uses: actions/upload-artifact@v4
with:
name: scribd-windows
path: ${{ env.SCRIBD_DIR }}/dist/Scribd-PDF-Downloader-Windows.zip
retention-days: 14
if-no-files-found: error
build-windows-portable:
name: Windows (portable zip)
name: Windows (portable zip fallback)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
+14 -3
View File
@@ -1,5 +1,3 @@
# Release — Linux native build + Windows portable zip (Linux runner only).
name: Release Scribd
on:
@@ -36,6 +34,19 @@ jobs:
path: ${{ env.SCRIBD_DIR }}/dist/Scribd-PDF-Downloader-Linux.tar.gz
retention-days: 30
build-windows-exe:
name: Windows (.exe via Wine/Docker)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- working-directory: ${{ env.SCRIBD_DIR }}
run: chmod +x ./build/ci/docker-build-windows.sh && ./build/ci/docker-build-windows.sh
- uses: actions/upload-artifact@v4
with:
name: scribd-windows
path: ${{ env.SCRIBD_DIR }}/dist/Scribd-PDF-Downloader-Windows.zip
retention-days: 30
build-windows-portable:
name: Windows (portable zip)
runs-on: ubuntu-latest
@@ -54,7 +65,7 @@ jobs:
release:
name: Create Gitea release
needs: [build-linux, build-windows-portable]
needs: [build-linux, build-windows-exe, build-windows-portable]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4