feat(just): add decky prerelease option (#1425)

Co-authored-by: Aarron Lee <aarron-lee@users.noreply.github.com>
This commit is contained in:
Aarron Lee 2024-07-29 01:39:32 -04:00 committed by GitHub
parent 83cbbc0d0e
commit d901c49e03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,6 +148,7 @@ setup-decky ACTION="install":
echo "Usage: ujust setup-decky <option>"
echo " <option>: Specify the quick option to skip the prompt"
echo " Use 'install' to select Install Decky"
echo " Use 'prerelease' to select Install Decky Prerelease"
exit 0
fi
if [[ "${OPTION,,}" =~ install ]]; then
@ -159,6 +160,15 @@ setup-decky ACTION="install":
curl -L https://github.com/SteamDeckHomebrew/decky-installer/releases/latest/download/install_release.sh | sh
sudo chcon -R -t bin_t $HOME/homebrew/services/PluginLoader
fi
if [[ "${OPTION,,}" =~ prerelease ]]; then
export HOME=$(getent passwd ${SUDO_USER:-$USER} | cut -d: -f6)
if [ ! -L "/home/deck" ] && [ ! -e "/home/deck" ] && [ "$HOME" != "/home/deck" ]; then
echo "Making a /home/deck symlink to fix plugins that do not use environment variables."
sudo ln -sf "$HOME" /home/deck
fi
curl -L https://github.com/SteamDeckHomebrew/decky-installer/releases/latest/download/install_prerelease.sh | sh
sudo chcon -R -t bin_t $HOME/homebrew/services/PluginLoader
fi
# Ptyxis terminal transparency
ptyxis-transparency opacity="0.95":