Add Gitea Actions CI for Windows, macOS, and Linux builds

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Michael-A-SloanandCursor committed 2026-05-15 10:48:57 -04:00
1 parent 5d2933ea95
commit ad6e35ac4e
8 files changed
+399 -1

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
# CI build script for Windows (used by Gitea/GitHub Actions).
$ErrorActionPreference = "Stop"
Write-Host "=== CI build: Windows ===" -ForegroundColor Cyan
python -m pip install --upgrade pip
pip install -r requirements-build.txt
$env:PLAYWRIGHT_BROWSERS_PATH = "0"
playwright install chromium
pyinstaller --noconfirm --clean "build\scribd_gui.spec"
$Dist = "dist\Scribd PDF Downloader"
if (-not (Test-Path $Dist)) {
throw "Build output not found: $Dist"
}
Copy-Item "config.ini" $Dist -Force -ErrorAction SilentlyContinue
$Zip = "dist\Scribd-PDF-Downloader-Windows.zip"
if (Test-Path $Zip) { Remove-Item $Zip -Force }
Compress-Archive -Path $Dist -DestinationPath $Zip
Write-Host "Created $Zip" -ForegroundColor Green