Attempt to fix accidental multi nvidia installs

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-07-13 15:11:39 +03:00 committed by GitHub
parent 4972c6af42
commit f5f10cef1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "pika-drivers" name = "pika-drivers"
version = "0.4.0" version = "0.4.2"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -15,4 +15,4 @@ install:
mkdir -p $(DESTDIR)/usr/share/applications mkdir -p $(DESTDIR)/usr/share/applications
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
cp -vf data/pika-drivers.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/ cp -vf data/pika-drivers.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/
cp -vf data/pika-drivers.desktop $(DESTDIR)/usr/share/applications/ cp -vf data/com.pika.drivers.desktop $(DESTDIR)/usr/share/applications/

View File

@ -39,5 +39,9 @@ if dpkg -s "$1"
then then
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY bash -c "apt remove $pkg -y && sudo apt autoremove -y" pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY bash -c "apt remove $pkg -y && sudo apt autoremove -y"
else else
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY bash -c "apt update -y && apt install $pkg -y" if echo $pkg | grep -i nvidia
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY bash -c "apt update -y && apt purge nvidia-driver-* -y && apt install $pkg -y && sudo apt autoremove -y"
else
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY bash -c "apt update -y && apt install $pkg -y && sudo apt autoremove -y"
fi
fi fi

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
pika-drivers (0.4.0-99pika1.lunar) lunar; urgency=medium pika-drivers (0.4.2-99pika1.lunar) lunar; urgency=medium
* initial release * initial release