From a4b66e204e5866755d18e01a45afe9f09abf5c4c Mon Sep 17 00:00:00 2001 From: DevilXD Date: Wed, 7 Dec 2022 09:21:40 +0100 Subject: [PATCH] Update batch scripts --- build.bat | 4 +++- run_dev.bat | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 run_dev.bat diff --git a/build.bat b/build.bat index 0274b48..0671833 100644 --- a/build.bat +++ b/build.bat @@ -1,3 +1,5 @@ @echo off cls -%CD%/env/scripts/pyinstaller build.spec +set dirpath=%~dp0 +if "%dirpath:~-1%" == "\" set dirpath=%dirpath:~0,-1% +"%dirpath%/env/scripts/pyinstaller" build.spec diff --git a/run_dev.bat b/run_dev.bat new file mode 100644 index 0000000..8652562 --- /dev/null +++ b/run_dev.bat @@ -0,0 +1,11 @@ +@echo off +cls +set dirpath=%~dp0 +if "%dirpath:~-1%" == "\" set dirpath=%dirpath:~0,-1% +set /p "choice=Start with a console? (y/n) " +if "%choice%"=="y" ( + set "exepath=%dirpath%\env\scripts\python" +) else ( + set "exepath=%dirpath%\env\scripts\pythonw" +) +start "TwitchDropsMiner" "%exepath%" "%dirpath%\main.py"