From 894634392aabbde1e0cf907a5255748c33bc0e93 Mon Sep 17 00:00:00 2001 From: Hammy Date: Fri, 12 Feb 2021 18:57:22 +0000 Subject: [PATCH] Remove .bat --- winston_bot_setup.bat | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 winston_bot_setup.bat diff --git a/winston_bot_setup.bat b/winston_bot_setup.bat deleted file mode 100644 index 2db8228..0000000 --- a/winston_bot_setup.bat +++ /dev/null @@ -1,37 +0,0 @@ -rem Create and initialize a Python Virtual Environment -echo "Creating virtual env - .venv" -python3 -m venv .venv - -echo "starting virtualenv - .venv" -call .venv\Scripts\activate.bat - -rem Create a directory to put things in -echo "Creating 'setup' directory" -mkdir setup - -rem Move the relevant files into setup directory -echo "Moving function file(s) to setup dir" -xcopy .\twitter\* setup\ /s /i -cd .\setup - -rem Install requirements -echo "pip installing requirements from requirements file in target directory" -pip install -r ..\requirements.txt -t . - -rem Prepares the deployment package -echo "Setting up your 7zip PATH - This assumes the installation location of 7zip is in C:\Program Files\7-Zip\" -set PATH=%PATH%;C:\Program Files\7-Zip\ - -echo "Zipping package" -7z a -r ..\winston_bot.zip .\* - -rem Remove the setup directory used -echo "Removing setup directory and virtual environment" -cd .. -rd /Q /S .\setup -call .venv\Scripts\deactivate.bat -rd /Q /S .\.venv - -rem changing dirs back to dir from before -echo "Opening folder containing function package - 'package.zip'" -explorer . \ No newline at end of file