WIP: Moving to cpack in order to unify installers across all platforms

This commit is contained in:
ABeltramo
2022-04-23 10:48:05 +01:00
parent 13c2dce3f1
commit c4977b5393
6 changed files with 112 additions and 304 deletions

9
assets/linux-deb/preinst Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
#Store backup for old config files to prevent it from being overwritten
if [ -f /etc/sunshine/sunshine.conf ]; then
cp /etc/sunshine/sunshine.conf /etc/sunshine/sunshine.conf.old
fi
if [ -f /etc/sunshine/apps_linux.json ]; then
cp /etc/sunshine/apps_linux.json /etc/sunshine/apps_linux.json.old
fi