-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
executable file
·24 lines (22 loc) · 1006 Bytes
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Dieses Script beinhaltet die einzelnen Schritte die in der Regel nötig sind
# um die Software auf den aktuellsten Stand zu bringen.
# Es ist ausdrücklich nicht Aufgabe dieses Scriptes die Git Versionskontrolle
# zu steuern! Dies ist Aufgabe des Entwicklers. Da heißt vor Aufruf des Scriptes
# muss der Softwarezweig mit z.B. `git checkout` und `git pull` auf den
# gewünschten Stand gebracht werden.
# Exit on error or variable unset
set -o errexit -o nounset
# Stop laufende Instanz
systemctl stop xmz-mod-touch-gui.service
# Bibliotheken aktualisieren
cargo update
# Bilde neues Release
cargo build --release
# Kopiere neu erstellte Binaries und Assets in das Dateisystem
cp -v ./target/release/xmz_mod_touch_gui /usr/bin/xmz-mod-touch-gui
## Erstelle Assets Verzeichnis
[ -d "/usr/share/xmz-mod-touch-gui/" ] || mkdir "/usr/share/xmz-mod-touch-gui/"
cp -v ./src/gui/gtk3/interface.glade /usr/share/xmz-mod-touch-gui/
# Starte Instanz wieder
systemctl start xmz-mod-touch-gui.service