mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-12 00:23:48 +03:00
Prevent errors from being printed on first install
This commit is contained in:
6
dist/install_nightly.sh
vendored
6
dist/install_nightly.sh
vendored
@@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Installing Steam Deck Plugin Loader nightly..."
|
||||
|
||||
HOMEBREW_FOLDER=/home/deck/homebrew
|
||||
|
||||
# Create folder structure
|
||||
@@ -16,8 +18,8 @@ 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
|
||||
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]
|
||||
|
||||
10
dist/install_release.sh
vendored
10
dist/install_release.sh
vendored
@@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Installing Steam Deck Plugin Loader release..."
|
||||
|
||||
HOMEBREW_FOLDER=/home/deck/homebrew
|
||||
|
||||
# Create folder structure
|
||||
@@ -7,13 +9,13 @@ rm -rf ${HOMEBREW_FOLDER}/services
|
||||
mkdir -p ${HOMEBREW_FOLDER}/services
|
||||
mkdir -p ${HOMEBREW_FOLDER}/plugins
|
||||
|
||||
# Download latest nightly build and install it
|
||||
# Download latest release and install it
|
||||
curl -L https://github.com/SteamDeckHomebrew/PluginLoader/releases/latest/download/PluginLoader --output ${HOMEBREW_FOLDER}/services/PluginLoader
|
||||
chmod +x ${HOMEBREW_FOLDER}/services/PluginLoader
|
||||
|
||||
systemctl --user stop plugin_loader
|
||||
systemctl --user disable plugin_loader
|
||||
rm /home/deck/.config/systemd/user/plugin_loader.service
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user