1
0
This commit is contained in:
2022-08-07 22:49:09 +02:00
commit 0c333fcf0c
17 changed files with 729 additions and 0 deletions

16
tools/install.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
version=$1
echo "Create required directories"
mkdir -p ~/.local/share/java/cloud_flight_tray/
echo "Download cloud-flight-tray version $version to ~/.local/share/java/cloud_flight_tray/cloud-flight-tray.jar"
wget -qO ~/.local/share/java/cloud_flight_tray/cloud-flight-tray.jar http://192.168.10.4:8100/releases/de/77zzcx7/cloud-flight-tray/"$version"/cloud-flight-tray-"$version".jar
echo "Install service to ~/.config/systemd/user/cloud-flight-tray.service"
cp "template-cloud-flight-tray.service" ~/.config/systemd/user/cloud-flight-tray.service
echo "Reload and restart service"
systemctl --user daemon-reload
systemctl --user restart cloud-flight-tray

View File

@@ -0,0 +1,9 @@
[Unit]
Description=Cloud Flight tray - A tray service for the HyperX Cloud Flight headset
[Service]
Type=simple
ExecStart=java -jar %h/.local/share/java/cloud_flight_tray/cloud-flight-tray.jar
[Install]
WantedBy=multi-user.target