2019-12-18 21:13:45 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
## Save current virtual environment
|
|
|
|
## activate current venv
|
|
|
|
#source ./venv/bin/activate
|
|
|
|
|
|
|
|
## pip freeze requirements
|
|
|
|
#pip freeze > requirements.txt
|
|
|
|
|
|
|
|
## deactivate current venv
|
|
|
|
#source ./venv/bin/deactivate
|
|
|
|
|
2020-03-19 11:31:10 +01:00
|
|
|
# Clone from repo
|
|
|
|
#git clone http://github.com/fabthegreat/ydl
|
|
|
|
|
2019-12-19 07:12:43 +01:00
|
|
|
# Optional
|
|
|
|
sudo apt-get install ffmpeg xterm virtualenv python3 python3-tk
|
|
|
|
|
2019-12-18 22:55:34 +01:00
|
|
|
|
|
|
|
# Enter in the newly created dir
|
2020-05-17 12:19:50 +02:00
|
|
|
#cd ydl
|
2019-12-18 22:55:34 +01:00
|
|
|
|
2019-12-18 21:13:45 +01:00
|
|
|
# Create new venv
|
2019-12-18 22:55:34 +01:00
|
|
|
virtualenv --python=/usr/bin/python3 venv
|
2019-12-18 21:13:45 +01:00
|
|
|
|
|
|
|
#activate new venv
|
2019-12-18 22:55:34 +01:00
|
|
|
source venv/bin/activate
|
2019-12-18 21:13:45 +01:00
|
|
|
|
|
|
|
# pip install
|
|
|
|
pip install -r requirements.txt
|
2019-12-18 22:55:34 +01:00
|
|
|
|
2019-12-19 21:55:59 +01:00
|
|
|
# create runGUI.sh
|
|
|
|
rm runGUI.sh
|
|
|
|
touch runGUI.sh
|
|
|
|
echo "#!/bin/bash" > runGUI.sh
|
|
|
|
echo "" >> runGUI.sh
|
|
|
|
echo cd $(pwd) >> runGUI.sh
|
|
|
|
echo "./venv/bin/python3 ./core/core.py -i" >> runGUI.sh
|
|
|
|
chmod u+x runGUI.sh
|
|
|
|
|