CI: Linux runner builds Linux app and Windows portable zip
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
40bb5808ed
commit
2e36b189cf
8 files changed
+169
-132
No files matched your search
+26
-20
@@ -29,29 +29,34 @@ Automated builds for **Windows, macOS, and Linux** run from the repo root.
|
||||
|
||||
#### Runners (match your other repos)
|
||||
|
||||
**Build Scribd** runs three jobs in parallel:
|
||||
**Build Scribd** uses your **Linux runner** (`ubuntu-latest`) for two jobs:
|
||||
|
||||
| Job | `runs-on` label | Artifact |
|
||||
|-----|-----------------|----------|
|
||||
| Linux | `ubuntu-latest` | `Scribd-PDF-Downloader-Linux.tar.gz` |
|
||||
| Windows | `windows-latest` | `Scribd-PDF-Downloader-Windows.zip` |
|
||||
| macOS | `macos-latest` | `Scribd-PDF-Downloader-macOS.zip` |
|
||||
| Job | What you get | Notes |
|
||||
|-----|----------------|-------|
|
||||
| **Linux** | `Scribd-PDF-Downloader-Linux.tar.gz` | Full standalone app (PyInstaller + Chromium) |
|
||||
| **Windows portable** | `Scribd-PDF-Downloader-Windows-Portable.zip` | Source + `Install Scribd Downloader.bat` |
|
||||
|
||||
Your runner `b0c969454d0f` currently lists `ubuntu-latest` only. If other repos build all OSes on the same host, add the same labels there (Gitea **Admin → Actions → Runners → edit labels**, or in `act_runner` config):
|
||||
### Why not a Windows `.exe` from Linux?
|
||||
|
||||
```yaml
|
||||
# Example act_runner config (same pattern as your other repos)
|
||||
labels:
|
||||
- "ubuntu-latest:docker://node:20-bookworm"
|
||||
- "windows-latest:docker://..." # Windows container image your infra uses
|
||||
- "macos-latest:docker://..." # macOS VM or remote runner
|
||||
Playwright ships **OS-specific Chromium**. PyInstaller cannot cross-compile this app from Linux to a real Windows `.exe`. That requires either:
|
||||
|
||||
- A **Windows machine** / `windows-latest` runner, or
|
||||
- Local build: `.\build\windows\build.ps1` on your PC
|
||||
|
||||
### Windows portable zip (from Linux CI)
|
||||
|
||||
1. Download artifact **`scribd-windows-portable`**
|
||||
2. Extract on a Windows PC
|
||||
3. Run **`Install Scribd Downloader.bat`** (installs Python deps + Chromium once, then opens GUI)
|
||||
|
||||
### Linux CI artifact
|
||||
|
||||
```bash
|
||||
tar -xzf Scribd-PDF-Downloader-Linux.tar.gz
|
||||
./Scribd\ PDF\ Downloader/Scribd\ PDF\ Downloader
|
||||
```
|
||||
|
||||
Use the **exact label names** that work on your other repositories.
|
||||
|
||||
4. Open **Actions** → **Build Scribd** (runs on every push to `main` under `Scribd/`).
|
||||
|
||||
Download artifacts: `scribd-windows`, `scribd-macos`, `scribd-linux`.
|
||||
4. Open **Actions** → **Build Scribd** on push to `main`.
|
||||
|
||||
### Workflows (repo root)
|
||||
|
||||
@@ -76,9 +81,10 @@ Optional: add repo secret **`GITEA_TOKEN`** (releases scope) for `release-scribd
|
||||
|
||||
| Artifact | File |
|
||||
|----------|------|
|
||||
| `scribd-windows` | `Scribd-PDF-Downloader-Windows.zip` |
|
||||
| `scribd-macos` | `Scribd-PDF-Downloader-macOS.zip` |
|
||||
| `scribd-linux` | `Scribd-PDF-Downloader-Linux.tar.gz` |
|
||||
| `scribd-windows-portable` | `Scribd-PDF-Downloader-Windows-Portable.zip` |
|
||||
|
||||
For a full Windows `.exe`, build locally with `.\build\windows\build.ps1`.
|
||||
|
||||
> **Note:** Each archive is large (~500–900 MB) because Chromium is bundled. Hosted runners may hit artifact size limits; self-hosted runners avoid that.
|
||||
|
||||
|
||||
Reference in new issue
Block a user