diff --git a/README.md b/README.md index 058adf71..977aa243 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,8 @@ Make sure you have Python 3.12, pip, and tkinter installed before running the co ```bash mkdir -p ~/bin && git clone --depth 1 https://github.com/elibroftw/music-caster.git ~/bin/music-caster -~/bin/music-caster/linux_install.sh +cd ~/bin/music-caster +./linux_install.sh ``` ## Demo diff --git a/linux_install.sh b/linux_install.sh index 09c5d23c..422eb762 100755 --- a/linux_install.sh +++ b/linux_install.sh @@ -1,10 +1,10 @@ #!/usr/bin/env bash set -ex -cd ~/bin/music-caster +# cd ~/bin/music-caster echo "(music-caster) Updating..." git fetch git reset --hard "@{u}" -PYTHON=python3.10 +PYTHON=python3 echo "(music-caster) Creating $PYTHON virtual environment" # if .venv DNE or has wrong Python version, delete old .venv and install new .venv if [ ! -d .venv ] || [ "$(.venv/bin/python -V)" != "$($PYTHON -V)" ]; then @@ -22,23 +22,23 @@ cd - mkdir -p ~/Downloads/music-caster-tmp # 32x32 -cp -rf ~/bin/music-caster/resources/icons/32x32.png ~/Downloads/music-caster-tmp +cp -rf resources/icons/32x32.png ~/Downloads/music-caster-tmp mv -f ~/Downloads/music-caster-tmp/32x32.png ~/.local/share/icons/hicolor/32x32/apps/music_caster.png # 128x128 -cp -rf ~/bin/music-caster/resources/icons/128x128.png ~/Downloads/music-caster-tmp +cp -rf resources/icons/128x128.png ~/Downloads/music-caster-tmp mv -f ~/Downloads/music-caster-tmp/128x128.png ~/.local/share/icons/hicolor/128x128/apps/music_caster.png # 256x256 -cp -rf ~/bin/music-caster/resources/icons/128x128@2x.png ~/Downloads/music-caster-tmp +cp -rf resources/icons/128x128@2x.png ~/Downloads/music-caster-tmp mv -f ~/Downloads/music-caster-tmp/128x128@2x.png ~/.local/share/icons/hicolor/256x256/apps/music_caster.png # 512x512 -cp -rf ~/bin/music-caster/resources/icons/icon.png ~/Downloads/music-caster-tmp +cp -rf resources/icons/icon.png ~/Downloads/music-caster-tmp mv -f ~/Downloads/music-caster-tmp/icon.png ~/.local/share/icons/hicolor/512x512/apps/music_caster.png rm -rf ~/Downloads/music-caster-tmp # install .desktop file echo "(music-caster) Registering as desktop application" -cp -rf ~/bin/music-caster/music_caster.desktop ~/.local/share/applications +cp -rf music_caster.desktop ~/.local/share/applications # delete old files rm -rf ~/.icons/music_caster.png