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
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build a Windows portable zip on Linux (no .exe — user runs install script on Windows).
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
||||
STAGING="$ROOT/dist/Scribd-PDF-Downloader-Windows-Portable"
|
||||
ZIP="$ROOT/dist/Scribd-PDF-Downloader-Windows-Portable.zip"
|
||||
|
||||
rm -rf "$STAGING" "$ZIP"
|
||||
mkdir -p "$STAGING/scribd_downloader"
|
||||
|
||||
cp "$ROOT/gui.py" "$ROOT/main.py" "$ROOT/config.ini" "$ROOT/requirements.txt" "$STAGING/"
|
||||
cp -r "$ROOT/scribd_downloader/." "$STAGING/scribd_downloader/"
|
||||
cp "$ROOT/build/ci/windows-portable/Install Scribd Downloader.bat" "$STAGING/"
|
||||
cp "$ROOT/build/ci/windows-portable/README-Windows.txt" "$STAGING/"
|
||||
|
||||
cd "$ROOT/dist"
|
||||
zip -r "$(basename "$ZIP")" "$(basename "$STAGING")"
|
||||
echo "Created $ZIP"
|
||||
Reference in new issue
Block a user