Added python depdency install, fixed use-case phrasing

This commit is contained in:
TrainDoctor
2022-06-20 18:56:22 -07:00
parent 3e250dd180
commit 47ca3ece4a
2 changed files with 18 additions and 5 deletions

View File

@@ -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'

View File

@@ -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'