chore: scaffold Mudfish VPN decky plugin
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
349e44000e
commit
e60873b75a
13 files changed
+187
No files matched your search
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build the frontend and install the plugin on the Steam Deck, then restart Decky.
|
||||
# Needs passwordless sudo for the deck user (development only).
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
DECK="${DECK:-deck@192.168.1.50}"
|
||||
pnpm build
|
||||
tar --exclude='__pycache__' -cf - dist main.py plugin.json package.json py_modules | ssh "$DECK" '
|
||||
D=/home/deck/homebrew/plugins/mudfish-decky
|
||||
sudo rm -rf "$D" && sudo mkdir -p "$D" && sudo tar -xf - -C "$D" &&
|
||||
sudo systemctl restart plugin_loader'
|
||||
echo "deployed to $DECK"
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Run the Python unit tests on the Steam Deck (its python3 matches the target runtime closely).
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
DECK="${DECK:-deck@192.168.1.50}"
|
||||
tar -cf - py_modules tests | ssh "$DECK" '
|
||||
rm -rf /tmp/mfd-test && mkdir /tmp/mfd-test && tar -xf - -C /tmp/mfd-test &&
|
||||
cd /tmp/mfd-test && PYTHONPATH=py_modules python3 -m unittest discover -s tests -t . -v'
|
||||
Reference in new issue
Block a user