add install bootstrap
Cette révision appartient à :
+11
-2
@@ -11,6 +11,11 @@ Adds a USB power control entry in the moOde UI.
|
|||||||
|
|
||||||
## 🚀 Quick Install (one command)
|
## 🚀 Quick Install (one command)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -L https://git.celjim.fr/jimmyGALLAND/moodeaudio-usb-control/raw/branch/master/src/install.sh | bash
|
||||||
|
```
|
||||||
|
or
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -L https://git.celjim.fr/jimmyGALLAND/moodeaudio-usb-control/releases/download/latest/moodeaudio-usb-control.tar.gz | tar xz && chmod +x ./install.sh && sudo ./install.sh
|
curl -L https://git.celjim.fr/jimmyGALLAND/moodeaudio-usb-control/releases/download/latest/moodeaudio-usb-control.tar.gz | tar xz && chmod +x ./install.sh && sudo ./install.sh
|
||||||
```
|
```
|
||||||
@@ -20,10 +25,14 @@ curl -L https://git.celjim.fr/jimmyGALLAND/moodeaudio-usb-control/releases/downl
|
|||||||
```bash
|
```bash
|
||||||
sudo ./uninstall.sh
|
sudo ./uninstall.sh
|
||||||
```
|
```
|
||||||
## 🧼 Version compatibility cheched
|
|
||||||
9.4.1
|
## 🧼 Version compatibility checked
|
||||||
|
|
||||||
|
10.1.2
|
||||||
|
9.4.1
|
||||||
|
|
||||||
## 📜 License
|
## 📜 License
|
||||||
|
|
||||||
This project is licensed under the GNU General Public License v3.0 (GPLv3).
|
This project is licensed under the GNU General Public License v3.0 (GPLv3).
|
||||||
|
|
||||||

|

|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
REPO_URL="https://git.celjim.fr/jimmyGALLAND/moodeaudio-usb-control/releases/download/latest/moodeaudio-usb-control.tar.gz"
|
||||||
|
|
||||||
|
TMP_DIR=$(mktemp -d)
|
||||||
|
ARCHIVE="$TMP_DIR/archive.tar.gz"
|
||||||
|
|
||||||
|
echo "== Téléchargement du plugin =="
|
||||||
|
curl -L "$REPO_URL" -o "$ARCHIVE"
|
||||||
|
|
||||||
|
echo "== Extraction =="
|
||||||
|
tar -xzf "$ARCHIVE" -C "$TMP_DIR"
|
||||||
|
|
||||||
|
if [ ! -f "$TMP_DIR/install.sh" ]; then
|
||||||
|
echo "Erreur: install.sh introuvable dans l'archive"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
chmod +x "$TMP_DIR/install.sh"
|
||||||
|
|
||||||
|
echo "== Lancement de l'installation =="
|
||||||
|
cd "$TMP_DIR"
|
||||||
|
sudo ./install.sh
|
||||||
|
|
||||||
|
echo "== Nettoyage =="
|
||||||
|
rm -rf "$TMP_DIR"
|
||||||
|
|
||||||
|
echo "== Installation terminée =="
|
||||||
Référencer dans un nouveau ticket
Bloquer un utilisateur