From 658d6c3ef2eac5d430daed0df57ce44abdf4d1ef Mon Sep 17 00:00:00 2001 From: quintenvandamme Date: Fri, 28 Jun 2024 11:31:04 +0200 Subject: [PATCH] Fix windows build --- build.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index 44c2515..816fd7f 100644 --- a/build.py +++ b/build.py @@ -116,10 +116,11 @@ def build(): build_appimage() elif OS == "win32": _run_command('pyinstaller.exe -F --add-data "./out/ffmpeg.exe:./ffmpeg/" --add-data "./data/logo/logo-64x64.png:./data/logo/" --windowed --onefile --clean --name tvdownloader --icon=data/logo/logo-256x256.ico gui/main.py') - _run_command(f'Move-Item -Path dist/tvdownloader.exe -Destination out/tvdownloader-{OS}-{ARCH}.exe') + _run_command(f'powershell -command "Move-Item -Path dist/tvdownloader.exe -Destination out/tvdownloader-{OS}-{ARCH}.exe"') _run_command('rmdir /s /q dist build tvdownloader-venv') - _run_command('del tvdownloader.spec ./out/ffmpeg.exe') - _print_stage(f"Built out/tvdownloader-{OS}-{ARCH}") + _run_command('powershell -command "Remove-Item -Path out/ffmpeg.exe"') + _run_command('powershell -command "Remove-Item -Path tvdownloader.spec"') + _print_stage(f"Built out/tvdownloader-{OS}-{ARCH}.exe") deactivate_venv()