Add Docker+Wine Windows cross-build from Linux CI
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
2e36b189cf
commit
56f1f058ae
8 files changed
+184
-24
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user