Global DFL Part 2 (#25)
This commit is contained in:
parent
e0ec175d16
commit
4beeece512
2 changed files with 17 additions and 4 deletions
1
.vscode/defsettings.json
vendored
1
.vscode/defsettings.json
vendored
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"deckip" : "0.0.0.0",
|
"deckip" : "0.0.0.0",
|
||||||
"deckport" : "22",
|
"deckport" : "22",
|
||||||
|
"deckuser" : "deck",
|
||||||
"deckpass" : "ssap",
|
"deckpass" : "ssap",
|
||||||
"deckkey" : "-i ${env:HOME}/.ssh/id_rsa",
|
"deckkey" : "-i ${env:HOME}/.ssh/id_rsa",
|
||||||
"deckdir" : "/home/deck",
|
"deckdir" : "/home/deck",
|
||||||
|
|
20
.vscode/tasks.json
vendored
20
.vscode/tasks.json
vendored
|
@ -34,7 +34,7 @@
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"depsetup",
|
"depsetup",
|
||||||
"pnpmsetup",
|
"pnpmsetup",
|
||||||
"updatedfrontendlib"
|
"updatefrontendlib"
|
||||||
],
|
],
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
"chmodplugins"
|
"chmodplugins"
|
||||||
],
|
],
|
||||||
"command": "rsync -azp --chmod=D0755,F0755 --rsh='ssh -p ${config:deckport} ${config:deckkey}' out/ deck@${config:deckip}:${config:deckdir}/homebrew/plugins",
|
"command": "rsync -azp --chmod=D0755,F0755 --rsh='ssh -p ${config:deckport} ${config:deckkey}' out/ ${config:deckuser}@${config:deckip}:${config:deckdir}/homebrew/plugins",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
//
|
//
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
"detail": "",
|
"detail": "",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"group": "none",
|
"group": "none",
|
||||||
"command": "echo '${config:deckdir}/homebrew/plugins/${config:pluginname}.zip' && ssh deck@${config:deckip} -p ${config:deckport} ${config:deckkey} 'echo ${config:deckpass} | sudo -S mkdir 755 -p \"$(echo \"${config:deckdir}/homebrew/plugins/${config:pluginname}\" | sed \"s| |-|\")\" && echo ${config:deckpass} | sudo -S chown deck:deck \"$(echo \"${config:deckdir}/homebrew/plugins/${config:pluginname}\" | sed \"s| |-|\")\" && echo ${config:deckpass} | sudo -S bsdtar -xzpf \"${config:deckdir}/homebrew/plugins/${config:pluginname}.zip\" -C \"$(echo \"${config:deckdir}/homebrew/plugins/${config:pluginname}\" | sed \"s| |-|\")\" --strip-components=1 --fflags '",
|
"command": "echo '${config:deckdir}/homebrew/plugins/${config:pluginname}.zip' && ssh ${config:deckuser}@${config:deckip} -p ${config:deckport} ${config:deckkey} 'echo ${config:deckpass} | sudo -S mkdir 755 -p \"$(echo \"${config:deckdir}/homebrew/plugins/${config:pluginname}\" | sed \"s| |-|\")\" && echo ${config:deckpass} | sudo -S chown ${config:deckuser}:${config:deckuser} \"$(echo \"${config:deckdir}/homebrew/plugins/${config:pluginname}\" | sed \"s| |-|\")\" && echo ${config:deckpass} | sudo -S bsdtar -xzpf \"${config:deckdir}/homebrew/plugins/${config:pluginname}.zip\" -C \"$(echo \"${config:deckdir}/homebrew/plugins/${config:pluginname}\" | sed \"s| |-|\")\" --strip-components=1 --fflags '",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
//"All-in-one" deploy task
|
//"All-in-one" deploy task
|
||||||
|
@ -113,6 +113,18 @@
|
||||||
],
|
],
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
|
//"All-in-on" build & deploy task
|
||||||
|
{
|
||||||
|
"label": "builddeploy",
|
||||||
|
"detail": "Builds plugin and deploys to deck",
|
||||||
|
"dependsOrder": "sequence",
|
||||||
|
"group": "none",
|
||||||
|
"dependsOn": [
|
||||||
|
"build",
|
||||||
|
"deploy"
|
||||||
|
],
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
//GENERAL TASKS
|
//GENERAL TASKS
|
||||||
//Update Decky Frontend Library, aka DFL
|
//Update Decky Frontend Library, aka DFL
|
||||||
{
|
{
|
||||||
|
@ -129,7 +141,7 @@
|
||||||
"detail": "chmods plugins folder to prevent perms issues",
|
"detail": "chmods plugins folder to prevent perms issues",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"group": "none",
|
"group": "none",
|
||||||
"command": "ssh deck@${config:deckip} -p ${config:deckport} ${config:deckkey} 'echo '${config:deckpass}' | sudo -S chmod -R ug+rw ${config:deckdir}/homebrew/plugins/'",
|
"command": "ssh ${config:deckuser}@${config:deckip} -p ${config:deckport} ${config:deckkey} 'echo '${config:deckpass}' | sudo -S chmod -R ug+rw ${config:deckdir}/homebrew/plugins/'",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue