mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-26 07:08:04 +00:00
Implement the nopause option for the build script
This commit is contained in:
2
.vscode/tasks.json
vendored
2
.vscode/tasks.json
vendored
@@ -6,7 +6,7 @@
|
||||
{
|
||||
"label": "Build App",
|
||||
"type": "shell",
|
||||
"command": "build.bat",
|
||||
"command": "build.bat --nopause",
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
|
||||
10
build.bat
10
build.bat
@@ -9,7 +9,7 @@ if not exist "%dirpath%\env" (
|
||||
echo:
|
||||
echo No virtual environment found! Run setup_env.bat to set it up first.
|
||||
echo:
|
||||
pause
|
||||
if not "%~1"=="--nopause" pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
@@ -21,7 +21,7 @@ if not exist "%dirpath%\env\scripts\pyinstaller.exe" (
|
||||
echo:
|
||||
echo Failed to install PyInstaller.
|
||||
echo:
|
||||
pause
|
||||
if not "%~1"=="--nopause" pause
|
||||
exit /b 1
|
||||
)
|
||||
"%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 Failed to run pywin32_postinstall.py.
|
||||
echo:
|
||||
pause
|
||||
if not "%~1"=="--nopause" pause
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
@@ -41,11 +41,11 @@ if errorlevel 1 (
|
||||
echo:
|
||||
echo PyInstaller build failed.
|
||||
echo:
|
||||
pause
|
||||
if not "%~1"=="--nopause" pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo:
|
||||
echo Build completed successfully.
|
||||
echo:
|
||||
pause
|
||||
if not "%~1"=="--nopause" pause
|
||||
|
||||
8
build.sh
8
build.sh
@@ -7,7 +7,7 @@ if [ ! -d "$dirpath/env" ]; then
|
||||
echo
|
||||
echo "No virtual environment found! Run setup_env.sh to set it up first."
|
||||
echo
|
||||
read -p "Press any key to continue..."
|
||||
[ "$1" != "--nopause" ] && read -p "Press any key to continue..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -20,7 +20,7 @@ if [ ! -f "$dirpath/env/bin/pyinstaller" ]; then
|
||||
echo
|
||||
echo "Failed to install PyInstaller."
|
||||
echo
|
||||
read -p "Press any key to continue..."
|
||||
[ "$1" != "--nopause" ] && read -p "Press any key to continue..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
@@ -33,11 +33,11 @@ if [ $? -ne 0 ]; then
|
||||
echo
|
||||
echo "PyInstaller build failed."
|
||||
echo
|
||||
read -p "Press any key to continue..."
|
||||
[ "$1" != "--nopause" ] && read -p "Press any key to continue..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "Build completed successfully."
|
||||
echo
|
||||
read -p "Press any key to continue..."
|
||||
[ "$1" != "--nopause" ] && read -p "Press any key to continue..."
|
||||
|
||||
Reference in New Issue
Block a user