-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
3,356 additions
and
3,356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
*.swp | ||
|
||
pids | ||
logs | ||
results | ||
tmp | ||
|
||
# Coverage reports | ||
coverage | ||
|
||
# API keys and secrets | ||
.env | ||
|
||
# Dependency directory | ||
node_modules | ||
bower_components | ||
.pnpm-store | ||
|
||
# Editors | ||
.idea | ||
*.iml | ||
|
||
# OS metadata | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Ignore built ts files | ||
dist/ | ||
|
||
__pycache__/ | ||
|
||
/.yalc | ||
yalc.lock | ||
|
||
.vscode/settings.json | ||
|
||
# Ignore output folder | ||
|
||
backend/out | ||
|
||
# Make sure to ignore any instance of the loader's decky_plugin.py | ||
decky_plugin.py | ||
|
||
# Ignore decky CLI for building plugins | ||
out | ||
out/* | ||
cli/ | ||
cli/* | ||
cli/decky | ||
lib-cov | ||
*.seed | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
*.swp | ||
|
||
pids | ||
logs | ||
results | ||
tmp | ||
|
||
# Coverage reports | ||
coverage | ||
|
||
# API keys and secrets | ||
.env | ||
|
||
# Dependency directory | ||
node_modules | ||
bower_components | ||
.pnpm-store | ||
|
||
# Editors | ||
.idea | ||
*.iml | ||
|
||
# OS metadata | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Ignore built ts files | ||
dist/ | ||
|
||
__pycache__/ | ||
|
||
/.yalc | ||
yalc.lock | ||
|
||
.vscode/settings.json | ||
|
||
# Ignore output folder | ||
|
||
backend/out | ||
|
||
# Make sure to ignore any instance of the loader's decky_plugin.py | ||
decky_plugin.py | ||
|
||
# Ignore decky CLI for building plugins | ||
out | ||
out/* | ||
cli/ | ||
cli/* | ||
cli/decky |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/usr/bin/env bash | ||
CLI_LOCATION="$(pwd)/cli" | ||
echo "Building plugin in $(pwd)" | ||
printf "Please input sudo password to proceed.\n" | ||
|
||
# read -s sudopass | ||
|
||
# printf "\n" | ||
|
||
echo $sudopass | sudo $CLI_LOCATION/decky plugin build $(pwd) | ||
#!/usr/bin/env bash | ||
CLI_LOCATION="$(pwd)/cli" | ||
echo "Building plugin in $(pwd)" | ||
printf "Please input sudo password to proceed.\n" | ||
|
||
# read -s sudopass | ||
|
||
# printf "\n" | ||
|
||
echo $sudopass | sudo $CLI_LOCATION/decky plugin build $(pwd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/usr/bin/env bash | ||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )"; | ||
# printf "${SCRIPT_DIR}\n" | ||
# printf "$(dirname $0)\n" | ||
if ! [[ -e "${SCRIPT_DIR}/settings.json" ]]; then | ||
printf '.vscode/settings.json does not exist. Creating it with default settings. Exiting afterwards. Run your task again.\n\n' | ||
cp "${SCRIPT_DIR}/defsettings.json" "${SCRIPT_DIR}/settings.json" | ||
exit 1 | ||
else | ||
printf '.vscode/settings.json does exist. Congrats.\n' | ||
printf 'Make sure to change settings.json to match your deck.\n' | ||
fi | ||
#!/usr/bin/env bash | ||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )"; | ||
# printf "${SCRIPT_DIR}\n" | ||
# printf "$(dirname $0)\n" | ||
if ! [[ -e "${SCRIPT_DIR}/settings.json" ]]; then | ||
printf '.vscode/settings.json does not exist. Creating it with default settings. Exiting afterwards. Run your task again.\n\n' | ||
cp "${SCRIPT_DIR}/defsettings.json" "${SCRIPT_DIR}/settings.json" | ||
exit 1 | ||
else | ||
printf '.vscode/settings.json does exist. Congrats.\n' | ||
printf 'Make sure to change settings.json to match your deck.\n' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"deckip" : "steamdeck.local", | ||
"deckport" : "22", | ||
"deckuser" : "deck", | ||
"deckpass" : "ssap", | ||
"deckkey" : "-i ${env:HOME}/.ssh/id_rsa", | ||
"deckdir" : "/home/deck", | ||
"pluginname": "Example Plugin", | ||
"python.analysis.extraPaths": [ | ||
"./py_modules" | ||
] | ||
} | ||
{ | ||
"deckip" : "steamdeck.local", | ||
"deckport" : "22", | ||
"deckuser" : "deck", | ||
"deckpass" : "ssap", | ||
"deckkey" : "-i ${env:HOME}/.ssh/id_rsa", | ||
"deckdir" : "/home/deck", | ||
"pluginname": "Example Plugin", | ||
"python.analysis.extraPaths": [ | ||
"./py_modules" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
#!/usr/bin/env bash | ||
PNPM_INSTALLED="$(which pnpm)" | ||
DOCKER_INSTALLED="$(which docker)" | ||
CLI_INSTALLED="$(pwd)/cli/decky" | ||
|
||
# echo "$PNPM_INSTALLED" | ||
# echo "$DOCKER_INSTALLED" | ||
# echo "$CLI_INSTALLED" | ||
|
||
echo "If you are using alpine linux, do not expect any support." | ||
if [[ "$PNPM_INSTALLED" =~ "which" ]]; then | ||
echo "pnpm is not currently installed, you can install it via your distro's package managment system or via a script that will attempt to do a manual install based on your system. If you wish to proceed with installing via the script then answer "no" (capitals do not matter) and proceed with the rest of the script. Otherwise, just hit enter to proceed and use the script." | ||
read run_pnpm_script | ||
if [[ "$run_pnpm_script" =~ "n" ]]; then | ||
echo "You have chose to install pnpm via npm or your distros package manager. Please make sure to do so before attempting to build your plugin." | ||
else | ||
CURL_INSTALLED="$(which curl)" | ||
WGET_INSTALLED="$(which wget)" | ||
if [[ "$CURL_INSTALLED" =~ "which" ]]; then | ||
printf "curl not found, attempting with wget.\n" | ||
if [[ "$WGET_INSTALLED" =~ "which" ]]; then | ||
printf "wget not found, please install wget or curl.\n" | ||
printf "Could not install pnpm as curl and wget were not found.\n" | ||
else | ||
wget -qO- https://get.pnpm.io/install.sh | sh - | ||
fi | ||
else | ||
curl -fsSL https://get.pnpm.io/install.sh | sh - | ||
fi | ||
fi | ||
fi | ||
|
||
if [[ "$DOCKER_INSTALLED" =~ "which" ]]; then | ||
echo "Docker is not currently installed, in order build plugins with a backend you will need to have Docker installed. Please install Docker via the preferred method for your distribution." | ||
fi | ||
|
||
if ! test -f "$CLI_INSTALLED"; then | ||
echo "The Decky CLI tool (binary file is just called "decky") is used to build your plugin as a zip file which you can then install on your Steam Deck to perform testing. We highly recommend you install it. Hitting enter now will run the script to install Decky CLI and extract it to a folder called cli in the current plugin directory. You can also type 'no' and hit enter to skip this but keep in mind you will not have a usable plugin without building it." | ||
read run_cli_script | ||
if [[ "$run_cli_script" =~ "n" ]]; then | ||
echo "You have chosen to not install the Decky CLI tool to build your plugins. Please install this tool to build and test your plugin before submitting it to the Plugin Database." | ||
else | ||
mkdir $(pwd)/cli | ||
curl -L -o $(pwd)/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky" | ||
chmod +x $(pwd)/cli/decky | ||
echo "Decky CLI tool is now installed and you can build plugins into easy zip files using the "Build Zip" Task in vscodium." | ||
fi | ||
fi | ||
#!/usr/bin/env bash | ||
PNPM_INSTALLED="$(which pnpm)" | ||
DOCKER_INSTALLED="$(which docker)" | ||
CLI_INSTALLED="$(pwd)/cli/decky" | ||
|
||
# echo "$PNPM_INSTALLED" | ||
# echo "$DOCKER_INSTALLED" | ||
# echo "$CLI_INSTALLED" | ||
|
||
echo "If you are using alpine linux, do not expect any support." | ||
if [[ "$PNPM_INSTALLED" =~ "which" ]]; then | ||
echo "pnpm is not currently installed, you can install it via your distro's package managment system or via a script that will attempt to do a manual install based on your system. If you wish to proceed with installing via the script then answer "no" (capitals do not matter) and proceed with the rest of the script. Otherwise, just hit enter to proceed and use the script." | ||
read run_pnpm_script | ||
if [[ "$run_pnpm_script" =~ "n" ]]; then | ||
echo "You have chose to install pnpm via npm or your distros package manager. Please make sure to do so before attempting to build your plugin." | ||
else | ||
CURL_INSTALLED="$(which curl)" | ||
WGET_INSTALLED="$(which wget)" | ||
if [[ "$CURL_INSTALLED" =~ "which" ]]; then | ||
printf "curl not found, attempting with wget.\n" | ||
if [[ "$WGET_INSTALLED" =~ "which" ]]; then | ||
printf "wget not found, please install wget or curl.\n" | ||
printf "Could not install pnpm as curl and wget were not found.\n" | ||
else | ||
wget -qO- https://get.pnpm.io/install.sh | sh - | ||
fi | ||
else | ||
curl -fsSL https://get.pnpm.io/install.sh | sh - | ||
fi | ||
fi | ||
fi | ||
|
||
if [[ "$DOCKER_INSTALLED" =~ "which" ]]; then | ||
echo "Docker is not currently installed, in order build plugins with a backend you will need to have Docker installed. Please install Docker via the preferred method for your distribution." | ||
fi | ||
|
||
if ! test -f "$CLI_INSTALLED"; then | ||
echo "The Decky CLI tool (binary file is just called "decky") is used to build your plugin as a zip file which you can then install on your Steam Deck to perform testing. We highly recommend you install it. Hitting enter now will run the script to install Decky CLI and extract it to a folder called cli in the current plugin directory. You can also type 'no' and hit enter to skip this but keep in mind you will not have a usable plugin without building it." | ||
read run_cli_script | ||
if [[ "$run_cli_script" =~ "n" ]]; then | ||
echo "You have chosen to not install the Decky CLI tool to build your plugins. Please install this tool to build and test your plugin before submitting it to the Plugin Database." | ||
else | ||
mkdir $(pwd)/cli | ||
curl -L -o $(pwd)/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky" | ||
chmod +x $(pwd)/cli/decky | ||
echo "Decky CLI tool is now installed and you can build plugins into easy zip files using the "Build Zip" Task in vscodium." | ||
fi | ||
fi |
Oops, something went wrong.