Initial
This commit is contained in:
16
tools/install.sh
Normal file
16
tools/install.sh
Normal 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
|
||||
9
tools/template-cloud-flight-tray.service
Normal file
9
tools/template-cloud-flight-tray.service
Normal 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
|
||||
Reference in New Issue
Block a user