Update install script.

This commit is contained in:
Peter Green 2023-01-08 15:50:48 +00:00
parent 1d7e544dec
commit 761351661a
2 changed files with 7 additions and 3 deletions

View File

@ -15,9 +15,9 @@ fi
# Edit desktop menu file.
# First the Execution path...
sed -i "s|Exec=/path/|Exec=/$HOME/bin/Youtube-dl-wrapper/YT-DL.sh|" $pwd/menu.desktop
sed -i "s|Exec=/path/|Exec=$HOME/bin/YT-DL/YT-DL.sh|" $pwd/menu.desktop
# Now icon path...
sed -i "s|Icon=/path/|Icon=$pwd/YouTube-DL.svg" $pwd/menu.desktop
sed -i "s|Icon=/path/|Icon=$HOME/bin/YT-DL/YouTube-DL.svg" $pwd/menu.desktop
# Check for needed directories...
if [ -d ~/bin ];
@ -32,11 +32,15 @@ fi
# copy over the files...
cp db.txt ~/bin/YT-DL
cp dbpyer.txt ~/bin/YT-DL/db.txt
cp dbytdl.txt ~/bin/YT-DL/
cp YouTube-DL.svg ~/bin/YT-DL
cp YT-DL.sh ~/bin/YT-DL
cp LICENSE ~/bin/YT-DL
cp README.md ~/bin/YT-DL
cp menu.desktop ~/bin/YT-DL
cp menu.desktop ~/.local/share/applications
cp uninstall.sh ~/bin/YT-DL
cp python-error.sh ~/bin/YT-DL
# Check for the python symlink...
if [ -f /usr/bin/python ];

0
python-error.sh Normal file → Executable file
View File