Implement the nopause option for the build script

This commit is contained in:
DevilXD committed 2025-09-12 13:41:50 +02:00
1 parent 0c8c3f5f32
commit b029428cb3
3 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
{ {
"label": "Build App", "label": "Build App",
"type": "shell", "type": "shell",
"command": "build.bat", "command": "build.bat --nopause",
"problemMatcher": [], "problemMatcher": [],
"group": { "group": {
"kind": "build", "kind": "build",
+5 -5
View File
@@ -9,7 +9,7 @@ if not exist "%dirpath%\env" (
echo: echo:
echo No virtual environment found! Run setup_env.bat to set it up first. echo No virtual environment found! Run setup_env.bat to set it up first.
echo: echo:
pause if not "%~1"=="--nopause" pause
exit /b 1 exit /b 1
) )
@@ -21,7 +21,7 @@ if not exist "%dirpath%\env\scripts\pyinstaller.exe" (
echo: echo:
echo Failed to install PyInstaller. echo Failed to install PyInstaller.
echo: echo:
pause if not "%~1"=="--nopause" pause
exit /b 1 exit /b 1
) )
"%dirpath%\env\scripts\python" "%dirpath%\env\scripts\pywin32_postinstall.py" -install -silent "%dirpath%\env\scripts\python" "%dirpath%\env\scripts\pywin32_postinstall.py" -install -silent
@@ -29,7 +29,7 @@ if not exist "%dirpath%\env\scripts\pyinstaller.exe" (
echo: echo:
echo Failed to run pywin32_postinstall.py. echo Failed to run pywin32_postinstall.py.
echo: echo:
pause if not "%~1"=="--nopause" pause
exit /b 1 exit /b 1
) )
) )
@@ -41,11 +41,11 @@ if errorlevel 1 (
echo: echo:
echo PyInstaller build failed. echo PyInstaller build failed.
echo: echo:
pause if not "%~1"=="--nopause" pause
exit /b 1 exit /b 1
) )
echo: echo:
echo Build completed successfully. echo Build completed successfully.
echo: echo:
pause if not "%~1"=="--nopause" pause
+4 -4
View File
@@ -7,7 +7,7 @@ if [ ! -d "$dirpath/env" ]; then
echo echo
echo "No virtual environment found! Run setup_env.sh to set it up first." echo "No virtual environment found! Run setup_env.sh to set it up first."
echo echo
read -p "Press any key to continue..." [ "$1" != "--nopause" ] && read -p "Press any key to continue..."
exit 1 exit 1
fi fi
@@ -20,7 +20,7 @@ if [ ! -f "$dirpath/env/bin/pyinstaller" ]; then
echo echo
echo "Failed to install PyInstaller." echo "Failed to install PyInstaller."
echo echo
read -p "Press any key to continue..." [ "$1" != "--nopause" ] && read -p "Press any key to continue..."
exit 1 exit 1
fi fi
fi fi
@@ -33,11 +33,11 @@ if [ $? -ne 0 ]; then
echo echo
echo "PyInstaller build failed." echo "PyInstaller build failed."
echo echo
read -p "Press any key to continue..." [ "$1" != "--nopause" ] && read -p "Press any key to continue..."
exit 1 exit 1
fi fi
echo echo
echo "Build completed successfully." echo "Build completed successfully."
echo echo
read -p "Press any key to continue..." [ "$1" != "--nopause" ] && read -p "Press any key to continue..."