summaryrefslogtreecommitdiff
path: root/scripts/deploy-to-deck.sh
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2026-09-11 10:51:55 -0400
committerGitHub <noreply@github.com>2026-09-11 10:51:55 -0400
commitbc73d150230f92d614962f7384a7430cf64dcd14 (patch)
treeb6ec78ab8663c3da2e0745db8fb98bbb7303e6e2 /scripts/deploy-to-deck.sh
parent904e2e6131071c3b132d3148947b613c2830b1bb (diff)
parent6597df7865b4eb5fce574d5efda1e33680df4357 (diff)
downloaddecky-lsfg-vk-bc73d150230f92d614962f7384a7430cf64dcd14.tar.gz
decky-lsfg-vk-bc73d150230f92d614962f7384a7430cf64dcd14.zip
Merge pull request #263 from xXJSONDeruloXx/v2-now-playing
flatpak correctness, ui alignment, tests
Diffstat (limited to 'scripts/deploy-to-deck.sh')
-rwxr-xr-xscripts/deploy-to-deck.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/deploy-to-deck.sh b/scripts/deploy-to-deck.sh
index b5cb4f7..f27fe4e 100755
--- a/scripts/deploy-to-deck.sh
+++ b/scripts/deploy-to-deck.sh
@@ -5,6 +5,36 @@ deck_host="deck@192.168.0.241"
plugin_root="Decky LSFG-VK"
install_path="/home/deck/homebrew/plugins/Decky LSFG-VK"
+if [[ -z ${DEPLOY_EXPECT:-} && -f .env ]]; then
+ set -a
+ source .env
+ set +a
+fi
+
+if [[ -n ${DECK_PASSWORD:-} && -z ${DEPLOY_EXPECT:-} ]]; then
+ export DEPLOY_EXPECT=1
+ export DEPLOY_SCRIPT="$0"
+ exec expect <<'EXPECT'
+set timeout -1
+spawn bash $env(DEPLOY_SCRIPT)
+
+expect {
+ -re {(?i)yes/no} {
+ send -- "yes\r"
+ exp_continue
+ }
+ -re {(?i)(password|passphrase).*:} {
+ send -- "$env(DECK_PASSWORD)\r"
+ exp_continue
+ }
+ eof
+}
+
+catch wait result
+exit [lindex $result 3]
+EXPECT
+fi
+
package_dir="$(mktemp -d "${TMPDIR:-/tmp}/decky-plugin-package.XXXXXX")"
run_id="$(basename "$package_dir")"
remote_archive="/tmp/decky-lsfg-vk-${run_id}.zip"