mirror of
				https://github.com/SteamDeckHomebrew/decky-plugin-template.git
				synced 2025-11-04 08:12:26 -06:00 
			
		
		
		
	Add a 'restartloader' tasks to restart the python backend.
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:
		
					parent
					
						
							
								b05ecd55e7
							
						
					
				
			
			
				commit
				
					
						a6fc28143b
					
				
			
		
					 1 changed files with 11 additions and 0 deletions
				
			
		
							
								
								
									
										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": []
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue