From d18cbd5c992cf6dbe52bd83942315139743ce753 Mon Sep 17 00:00:00 2001 From: Renn <8340896+AkazaRenn@users.noreply.github.com> Date: Wed, 10 Jul 2024 00:59:14 -0400 Subject: [PATCH 1/3] Fix deployment for plugin names with more than one spaces (#41) --- .vscode/tasks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 027b4e4..b5968ab 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -99,7 +99,7 @@ "detail": "", "type": "shell", "group": "none", - "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| |-|g\")\" --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| |-|g\")\" && echo ${config:deckpass} | sudo -S chown ${config:deckuser}:${config:deckuser} \"$(echo \"${config:deckdir}/homebrew/plugins/${config:pluginname}\" | sed \"s| |-|g\")\" && echo ${config:deckpass} | sudo -S bsdtar -xzpf \"${config:deckdir}/homebrew/plugins/${config:pluginname}.zip\" -C \"$(echo \"${config:deckdir}/homebrew/plugins/${config:pluginname}\" | sed \"s| |-|g\")\" --strip-components=1 --fflags '", "problemMatcher": [] }, //"All-in-one" deploy task From a85c79735f2ff204325b5e930dad1369439d2db1 Mon Sep 17 00:00:00 2001 From: TrainDoctor <11465594+TrainDoctor@users.noreply.github.com> Date: Wed, 24 Jul 2024 15:00:07 -0700 Subject: [PATCH 2/3] Update README.md Closes #42 --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 1402922..2e63574 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,8 @@ sudo npm i -g pnpm@8.5.1 If you would like to build plugins that have their own custom backends, Docker is required as it is used by the Decky CLI tool. - - ### Making your own plugin -If you use VSCode or it's derivatives (we suggest [VSCodium](https://vscodium.com/)!) just run the `setup` and `build` tasks. It's really that simple. - 1. You can fork this repo or utilize the "Use this template" button on Github. 2. In your local fork/own plugin-repository run these commands: 1. ``pnpm i`` @@ -34,7 +30,7 @@ If you use VSCode or it's derivatives (we suggest [VSCodium](https://vscodium.co 3. Consult the [decky-frontend-lib](https://github.com/SteamDeckHomebrew/decky-frontend-lib) repository for ways to accomplish your tasks. - Documentation and examples are still rough, - While decky-loader primarily targets Steam Deck hardware so keep this in mind when developing your plugin. -4. Run the `setup` and `build` and `deploy` vscode tasks, or you can derive your own makefile or just manually utilize the scripts for these commands as you see fit. +4. If using VSCodium/VSCode, run the `setup` and `build` and `deploy` tasks. If not using VSCodium etc. you can derive your own makefile or just manually utilize the scripts for these commands as you see fit. If you use VSCode or it's derivatives (we suggest [VSCodium](https://vscodium.com/)!) just run the `setup` and `build` tasks. It's really that simple. From d69496d4adc30597bef8fdec377fd280ac9f1a00 Mon Sep 17 00:00:00 2001 From: Wayne Heaney <42350981+wheaney@users.noreply.github.com> Date: Wed, 24 Jul 2024 15:01:55 -0700 Subject: [PATCH 3/3] Add _uninstall function to the python Plugin template (#34) --- main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 882cb30..07842f0 100644 --- a/main.py +++ b/main.py @@ -15,8 +15,15 @@ class Plugin: async def _main(self): decky_plugin.logger.info("Hello World!") - # Function called first during the unload process, utilize this to handle your plugin being removed + # Function called first during the unload process, utilize this to handle your plugin being stopped, but not + # completely removed async def _unload(self): + decky_plugin.logger.info("Goodnight World!") + pass + + # Function called after `_unload` during uninstall, utilize this to clean up processes and other remnants of your + # plugin that may remain on the system + async def _uninstall(self): decky_plugin.logger.info("Goodbye World!") pass