diff options
Diffstat (limited to 'contrib')
| -rwxr-xr-x | contrib/deck.sh | 14 | ||||
| -rwxr-xr-x | contrib/nodeck.sh | 9 |
2 files changed, 18 insertions, 5 deletions
diff --git a/contrib/deck.sh b/contrib/deck.sh index 009b2282..dd5308f7 100755 --- a/contrib/deck.sh +++ b/contrib/deck.sh @@ -19,7 +19,7 @@ TEMPLATEBRANCH=${9:-""} LATEST=${10:-""} ## gather options into an array -OPTIONSARRAY=("$CLONEFOLDER" $INSTALLFOLDER "$DECKIP" "$SSHPORT" "$PASSWORD" "$SSHKEYLOC" "$LOADERBRANCH" "$LIBRARYBRANCH" "$TEMPLATEBRANCH" "$LATEST") +OPTIONSARRAY=("$CLONEFOLDER" "$INSTALLFOLDER" "$DECKIP" "$SSHPORT" "$PASSWORD" "$SSHKEYLOC" "$LOADERBRANCH" "$LIBRARYBRANCH" "$TEMPLATEBRANCH" "$LATEST") ## iterate through options array to check their presence count=0 @@ -170,10 +170,10 @@ npmtransbundle() { fi } -printf "Installing Steam Deck Plugin Loader contributor (for Steam Deck)...\n" +printf "Installing Steam Deck Plugin Loader contributor/developer (for Steam Deck)...\n" printf "THIS SCRIPT ASSUMES YOU ARE RUNNING IT ON A PC, NOT THE DECK! -Not planning to contribute to PluginLoader? +Not planning to contribute to or develop for PluginLoader? If so, you should not be using this script.\n If you have a release/nightly installed this script will disable it.\n" @@ -261,6 +261,14 @@ clonefromto "https://github.com/SteamDeckHomebrew/decky-frontend-lib" ${CLONEDIR clonefromto "https://github.com/SteamDeckHomebrew/decky-plugin-template" ${CLONEDIR}/plugintemplate "$TEMPLATEBRANCH" +## install python dependencies to deck + +printf "\nInstalling python dependencies.\n" + +rsync -azp --rsh="ssh -p $SSHPORT $IDENINVOC" ${CLONEDIR}/pluginloader/requirements.txt deck@${DECKIP}:${INSTALLDIR}/pluginloader/requirements.txt + +ssh deck@${DECKIP} -p ${SSHPORT} ${IDENINVOC} "python -m ensurepip && python -m pip install --upgrade pip && python -m pip install --upgrade setuptools && python -m pip install -r $INSTALLDIR/pluginloader/requirements.txt" + ## Transpile and bundle typescript type npm &> '/dev/null' diff --git a/contrib/nodeck.sh b/contrib/nodeck.sh index 52f358b2..10e9a268 100755 --- a/contrib/nodeck.sh +++ b/contrib/nodeck.sh @@ -63,10 +63,11 @@ npmtransbundle() { fi } -printf "Installing Steam Deck Plugin Loader contributor (no Steam Deck)..." +printf "Installing Steam Deck Plugin Loader contributor/developer (no Steam Deck)..." printf "\nTHIS SCRIPT ASSUMES YOU ARE RUNNING IT ON A PC, NOT THE DECK! -If you are not planning to contribute to PluginLoader then you should not be using this script.\n" +Not planning to contribute to or develop for PluginLoader? +Then you should not be using this script.\n" printf "\nThis script requires you to have nodejs installed. (If nodejs doesn't bundle npm on your OS/distro, then npm is required as well).\n" @@ -97,6 +98,10 @@ clonefromto "https://github.com/SteamDeckHomebrew/decky-frontend-lib" ${CLONEDIR clonefromto "https://github.com/SteamDeckHomebrew/decky-plugin-template" ${CLONEDIR}/plugintemplate +## install python dependencies (maybe use venv?) + +python -m pip3 install -r ${CLONEDIR}/pluginloader/requirements.txt + ## Transpile and bundle typescript type npm &> '/dev/null' |
