Skip to content

Commit

Permalink
Added description to bash scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
szczyglis-dev committed Aug 25, 2024
1 parent c9e0ef0 commit 8aa11a2
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
:: This script is used to build the app using pyinstaller
call venv\Scripts\activate
call pyinstaller windows.spec
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

# This script is used to build the app using pyinstaller
source ./venv/bin/activate
python -m build
twine check dist/*
Expand Down
1 change: 1 addition & 0 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# This script is used to recursive remove the __pycache__ directories
TARGET_DIR="./src" # clear '__pycache__'

find "$TARGET_DIR" -type d -name "__pycache__" | while read -r dir
Expand Down
1 change: 1 addition & 0 deletions install.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:: This script is used to install the app dependencies and run the app using the virtual environment
call python -m venv venv
call venv\Scripts\activate
call pip install -r requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

# This script is used to install the app dependencies and run the app using the virtual environment
python -m venv ./venv
pip install -r requirements.txt
python3 run.py "$@"
2 changes: 1 addition & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# This script is used to run the tests using the virtual environment
source ./venv/bin/activate
pytest -vv
1 change: 1 addition & 0 deletions run.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
:: This script is used to run the app using the virtual environment
call venv\Scripts\activate
call python run.py %*
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# This script is used to run the app using the virtual environment
source ./venv/bin/activate
python3 run.py "$@"
1 change: 1 addition & 0 deletions shortcut.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
:: This script is used to run the app using the virtual environment
@echo off
cd /d "%~dp0"
call venv\Scripts\activate
Expand Down
2 changes: 1 addition & 1 deletion shortcut.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

# This script is used to run the app using the virtual environment
cd "$(dirname "$0")"
source ./venv/bin/activate
python3 run.py "$@"
1 change: 1 addition & 0 deletions snaprun.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

# This script is used to run the app in the snap environment
# export QTWEBENGINE_DISABLE_GPU=1
# export QTWEBENGINE_CHROMIUM_FLAGS="--enable-logging --log-level=0 --v=1"

Expand Down

0 comments on commit 8aa11a2

Please sign in to comment.