Add Scribd PDF Downloader under Scribd/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
5d2933ea95
28 files changed
+2159
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# Sync this project into ../PDF-Downloaders/Scribd/ for Gitea push.
|
||||
# Run from project root: .\scripts\sync-to-pdf-downloaders.ps1
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$Source = Resolve-Path (Join-Path $PSScriptRoot "..")
|
||||
$RepoRoot = Join-Path (Split-Path $Source -Parent) "PDF-Downloaders"
|
||||
$Target = Join-Path $RepoRoot "Scribd"
|
||||
|
||||
Write-Host "Source: $Source"
|
||||
Write-Host "Target: $Target"
|
||||
|
||||
New-Item -ItemType Directory -Force -Path $Target | Out-Null
|
||||
|
||||
$ExcludeDirs = @(
|
||||
".venv", "venv", "dist", "build\scribd_gui",
|
||||
"temp_capture", "temp_preview", ".git", "__pycache__"
|
||||
)
|
||||
|
||||
robocopy $Source $Target /E /XD $ExcludeDirs /XF *.pdf session.json history.json `
|
||||
/NFL /NDL /NJH /NJS /nc /ns /np | Out-Null
|
||||
if ($LASTEXITCODE -ge 8) { throw "robocopy failed with code $LASTEXITCODE" }
|
||||
|
||||
Write-Host "Synced to $Target" -ForegroundColor Green
|
||||
Write-Host "Next: cd `"$RepoRoot`" and run push-to-gitea.ps1 (after Gitea login)"
|
||||
Reference in new issue
Block a user