Skip to content

Commit

Permalink
windows scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rpakishore committed Feb 22, 2024
1 parent 6ce2a28 commit 1197adb
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cd /d %~dp0
cd ../..
cd ..
RD /S /Q .venv

python -m venv .venv
Expand Down
33 changes: 33 additions & 0 deletions scripts/install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@echo off
setlocal

:: Step 1: Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Python is not installed. Please install Python and run this script again.
exit /b 1
)

cd /d %~dp0

:: Step 2: Download and unzip the GitHub repository
echo Downloading and extracting the GitHub repository...
curl -LJO https://github.com/rpakishore/ak_sap/archive/main.zip
tar -xf ak_sap-main.zip
del ak_sap-main.zip

:: Step 3: Navigate into the ak_sap directory
cd ak_sap-main

:: Step 4: Set up virtual environment and install dependencies
echo Setting up virtual environment and installing dependencies...
python -m venv .venv
call .venv\Scripts\activate
python -m pip install --upgrade pip
pip install flit && flit install --deps production

:: Step 5: Display success message
echo Installation completed successfully.

:: End
exit /b 0
2 changes: 1 addition & 1 deletion scripts/win/run.bat → scripts/run.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off

cd /d %~dp0
cd ..\..
cd ..

rem Check if Python is installed
python --version > nul 2>&1
Expand Down

0 comments on commit 1197adb

Please sign in to comment.