summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authormarios <marios8543@gmail.com>2022-04-13 21:50:18 +0300
committerGitHub <noreply@github.com>2022-04-13 21:50:18 +0300
commit6250fafa6e35277d3f30cb23b11193da18adee6c (patch)
treed2b466c7afaa2a80d3c04f59a27eb2cfca1036a0 /dist
parentefa5dc61c758b9cb55052f85b58131c3d1771e06 (diff)
downloaddecky-loader-6250fafa6e35277d3f30cb23b11193da18adee6c.tar.gz
decky-loader-6250fafa6e35277d3f30cb23b11193da18adee6c.zip
Fix release script
Diffstat (limited to 'dist')
-rw-r--r--dist/install_release.sh27
1 files changed, 8 insertions, 19 deletions
diff --git a/dist/install_release.sh b/dist/install_release.sh
index c4106fb8..88ec8232 100644
--- a/dist/install_release.sh
+++ b/dist/install_release.sh
@@ -1,10 +1,5 @@
#!/bin/sh
-if [ "$(whoami)" != "root" ]; then
- su -c "$0 $*"
- exit
-fi
-
echo "Installing Steam Deck Plugin Loader release..."
HOMEBREW_FOLDER=/home/deck/homebrew
@@ -18,26 +13,20 @@ mkdir -p ${HOMEBREW_FOLDER}/plugins
curl -L https://github.com/SteamDeckHomebrew/PluginLoader/releases/latest/download/PluginLoader --output ${HOMEBREW_FOLDER}/services/PluginLoader
chmod +x ${HOMEBREW_FOLDER}/services/PluginLoader
-systemctl stop plugin_loader 2> /dev/null
-systemctl disable plugin_loader 2> /dev/null
-rm -f /etc/systemd/system/plugin_loader.service
-cat > /etc/systemd/system/plugin_loader.service <<- EOM
+systemctl --user stop plugin_loader 2> /dev/null
+systemctl --user disable plugin_loader 2> /dev/null
+rm -f /home/deck/.config/systemd/user/plugin_loader.service
+cat > /home/deck/.config/systemd/user/plugin_loader.service <<- EOM
[Unit]
Description=SteamDeck Plugin Loader
-
[Service]
Type=simple
-User=root
-Restart=always
-
ExecStart=/home/deck/homebrew/services/PluginLoader
WorkingDirectory=/home/deck/homebrew/services
-
Environment=PLUGIN_PATH=/home/deck/homebrew/plugins
-
[Install]
-WantedBy=multi-user.target
+WantedBy=default.target
EOM
-systemctl daemon-reload
-systemctl start plugin_loader
-systemctl enable plugin_loader \ No newline at end of file
+systemctl --user daemon-reload
+systemctl --user start plugin_loader
+systemctl --user enable plugin_loader