From e75dc3c57ba6441c7834340486c04c4bb47dee78 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 3 May 2023 22:11:02 +0200 Subject: [PATCH] Add a workaround for installing `ytmdesktop` --- scripts/Arch/Collections/personal.sh | 18 ++++++++---------- scripts/Arch/Software/ytmdesktop/install.sh | 12 ++++++++++++ 2 files changed, 20 insertions(+), 10 deletions(-) create mode 100755 scripts/Arch/Software/ytmdesktop/install.sh diff --git a/scripts/Arch/Collections/personal.sh b/scripts/Arch/Collections/personal.sh index 782cfee4..95d88615 100755 --- a/scripts/Arch/Collections/personal.sh +++ b/scripts/Arch/Collections/personal.sh @@ -81,10 +81,15 @@ yay --noconfirm -Syu \ discord \ openasar-git; -# Media -yay --noconfirm -Syu electron13-bin; +# Python yay --noconfirm -Syu \ - ytmdesktop; + python \ + python-pip \ + pyenv \ + python-pipenv; + +# Media +. "../Software/ytmdesktop/install.sh"; # Coding yay --noconfirm -Syu \ @@ -98,13 +103,6 @@ yay --noconfirm -Syu \ yay --noconfirm -Syu nodejs-n; sudo n install latest; -# Python -yay --noconfirm -Syu \ - python \ - python-pip \ - pyenv \ - python-pipenv; - # Docker . "../Software/docker/install.sh"; diff --git a/scripts/Arch/Software/ytmdesktop/install.sh b/scripts/Arch/Software/ytmdesktop/install.sh new file mode 100755 index 00000000..13aa191f --- /dev/null +++ b/scripts/Arch/Software/ytmdesktop/install.sh @@ -0,0 +1,12 @@ +#!/bin/bash +contextRoot="$(mktemp -d)"; +pushd "$contextRoot" > /dev/null; + +yay --noconfirm -Syu electron13-bin; + +yes | pipenv run --python 3.10 -- \ + yay --noconfirm -Syu \ + ytmdesktop; + +popd "$contextRoot"; +rm -rf "$contextRoot";