mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2026-05-17 14:10:08 +02:00
Add a 'restartloader' tasks to restart the python backend. (#19)
This is useful for testing/developing the python code. I also added this as an optional last subtask on allinone.
This commit is contained in:
11
.vscode/tasks.json
vendored
11
.vscode/tasks.json
vendored
@@ -71,6 +71,15 @@
|
|||||||
"command": "rsync -azp --delete --chmod=D0755,F0755 --rsh='ssh -p ${config:deckport} ${config:deckkey}' --exclude='.git/' --exclude='.github/' --exclude='.vscode/' --exclude='node_modules/' --exclude='src/' --exclude='*.log' --exclude='.gitignore' . deck@${config:deckip}:${config:deckdir}/homebrew/plugins/${workspaceFolderBasename}",
|
"command": "rsync -azp --delete --chmod=D0755,F0755 --rsh='ssh -p ${config:deckport} ${config:deckkey}' --exclude='.git/' --exclude='.github/' --exclude='.vscode/' --exclude='node_modules/' --exclude='src/' --exclude='*.log' --exclude='.gitignore' . deck@${config:deckip}:${config:deckdir}/homebrew/plugins/${workspaceFolderBasename}",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "restartloader",
|
||||||
|
"detail": "Restart the plugin loader (to load updated python code)",
|
||||||
|
"type": "shell",
|
||||||
|
"group": "none",
|
||||||
|
"dependsOn": [],
|
||||||
|
"command": "ssh deck@${config:deckip} -p ${config:deckport} ${config:deckkey} 'echo '${config:deckpass}' | sudo -S systemctl restart plugin_loader'",
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "chmodfolders",
|
"label": "chmodfolders",
|
||||||
"detail": "chmods folders to prevent perms issues",
|
"detail": "chmods folders to prevent perms issues",
|
||||||
@@ -98,6 +107,8 @@
|
|||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"buildall",
|
"buildall",
|
||||||
"deployall"
|
"deployall"
|
||||||
|
// Uncomment this line if you'd like your python code reloaded after deployment (this will restart Steam)
|
||||||
|
// ,"restartloader"
|
||||||
],
|
],
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user