summaryrefslogtreecommitdiff
path: root/dist/install_nightly.sh
diff options
context:
space:
mode:
authorWerWolv <werwolv98@gmail.com>2022-04-04 19:12:29 +0200
committerWerWolv <werwolv98@gmail.com>2022-04-04 19:12:57 +0200
commit0c58ca50fa7e0c4a37932f786c9c11020bbb4554 (patch)
tree8ebcb392992b5f49edcbceb733483f4fc88924b5 /dist/install_nightly.sh
parent4d2ab9d19c5c603bc08bbf8fe79ba9f117b70a19 (diff)
downloaddecky-loader-0c58ca50fa7e0c4a37932f786c9c11020bbb4554.tar.gz
decky-loader-0c58ca50fa7e0c4a37932f786c9c11020bbb4554.zip
Added release and nightly download scripts
Diffstat (limited to 'dist/install_nightly.sh')
-rwxr-xr-xdist/install_nightly.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/dist/install_nightly.sh b/dist/install_nightly.sh
new file mode 100755
index 00000000..26384e03
--- /dev/null
+++ b/dist/install_nightly.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+HOMEBREW_FOLDER=/home/deck/homebrew
+
+# Create folder structure
+rm -rf ${HOMEBREW_FOLDER}/services
+mkdir -p ${HOMEBREW_FOLDER}/services
+mkdir -p ${HOMEBREW_FOLDER}/plugins
+
+# Download latest nightly build and install it
+rm -rf /tmp/plugin_loader
+mkdir -p /tmp/plugin_loader
+curl -L https://nightly.link/SteamDeckHomebrew/PluginLoader/workflows/build/main/Plugin%20Loader.zip --output /tmp/plugin_loader/PluginLoader.zip
+unzip /tmp/plugin_loader/PluginLoader.zip -d /tmp/plugin_loader
+cp /tmp/plugin_loader/PluginLoader ${HOMEBREW_FOLDER}/services/PluginLoader
+rm -rf /tmp/plugin_loader
+chmod +x ${HOMEBREW_FOLDER}/services/PluginLoader
+
+systemctl --user stop plugin_loader
+systemctl --user disable plugin_loader
+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
+
+ExecStart=/home/deck/homebrew/services/PluginLoader
+WorkingDirectory=/home/deck/homebrew/services
+
+Environment=PLUGIN_PATH=/home/deck/homebrew/plugins
+
+[Install]
+WantedBy=default.target
+EOM
+systemctl --user daemon-reload
+systemctl --user start plugin_loader
+systemctl --user enable plugin_loader \ No newline at end of file