mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-04 04:53:58 +03:00
Fix build process to include src folder for internal imports and adjust Dockerfile to copy src correctly
This commit is contained in:
@@ -80,9 +80,9 @@ jobs:
|
||||
Move-Item "$WORKSPACE/dist/windows/aria2_temp/aria2-1.37.0-win-64bit-build1/aria2c.exe" "$WORKSPACE/dist/windows/bin/aria2c.exe"
|
||||
|
||||
# Build .exe using PyInstaller
|
||||
# Use --collect-all ytpld to ensure all submodules and data in the ytpld package are included
|
||||
# Use --add-data to include the src folder so internal imports (like 'import cli') work
|
||||
pip install pyinstaller
|
||||
pyinstaller --onefile --name "yt-playlist-downloader" --workpath "$WORKSPACE/build" --specpath "$WORKSPACE" --distpath "$WORKSPACE/dist" --collect-all "ytpld" "$WORKSPACE/yt-playlist-main.py"
|
||||
pyinstaller --onefile --name "yt-playlist-downloader" --workpath "$WORKSPACE/build" --specpath "$WORKSPACE" --distpath "$WORKSPACE/dist" --add-data "$WORKSPACE/src;src" "$WORKSPACE/yt-playlist-main.py"
|
||||
Move-Item "$WORKSPACE/dist/yt-playlist-downloader.exe" "$WORKSPACE/dist/windows/yt-playlist-downloader.exe"
|
||||
|
||||
# Cleanup & Archive
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ WORKDIR /app
|
||||
|
||||
# Copy application code (package) and bootstrap
|
||||
COPY yt-playlist-main.py /app/
|
||||
COPY src/ /app/ytpld/
|
||||
COPY src/ /app/
|
||||
COPY config/ /app/config/
|
||||
|
||||
# Copy helper binaries from the build context (which includes extracted artifacts)
|
||||
|
||||
Reference in New Issue
Block a user