From 67b17436e1c67cc5caf3c055f694c4aa59d261b8 Mon Sep 17 00:00:00 2001 From: itay Date: Sun, 7 Apr 2019 11:48:01 +0300 Subject: [PATCH] fix pyinstaller bat --- monkey/monkey_island/windows/build_pyinstaller.bat | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/monkey/monkey_island/windows/build_pyinstaller.bat b/monkey/monkey_island/windows/build_pyinstaller.bat index eaf771ccf..2a26079d8 100644 --- a/monkey/monkey_island/windows/build_pyinstaller.bat +++ b/monkey/monkey_island/windows/build_pyinstaller.bat @@ -1,4 +1,8 @@ pyinstaller -F --log-level=DEBUG --clean --upx-dir=.\bin monkey_island.spec -move dist\monkey_island.exe monkey_island.exe -rmdir /S /Q build -rmdir /S /Q dist +move /Y dist\monkey_island.exe monkey_island.exe +IF EXIST build ( + rmdir /S /Q build +) +IF EXIST dist ( + rmdir /S /Q dist +) \ No newline at end of file