-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get plugin name for development ZIP during installation #578
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comments about how plugins are structured, and how the plugin.json
name
property is not reflective of the actual folder name in which the plugin is installed.
Signed-off-by: eXhumer <[email protected]>
Thanks for the comments regarding the plugin structure, I have amended changes based on the comments left. |
Sigh, wrong account, but yes. Looks good. |
Add another name placeholder for getting the toaster out of the HTML tree. Thanks to @eXhumer for the fix.
* Added translation using Weblate (Japanese) * Update translation files Updated by "Remove blank strings" hook in Weblate. Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ * Update translation files Updated by "Remove blank strings" hook in Weblate. Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ * Update translation files Updated by "Remove blank strings" hook in Weblate. Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ * Update translation files Updated by "Remove blank strings" hook in Weblate. Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ * Update translation files Updated by "Remove blank strings" hook in Weblate. Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ * Update translation files Updated by "Remove blank strings" hook in Weblate. Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ * Update translation files Updated by "Remove blank strings" hook in Weblate. Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ * Update translation files Updated by "Remove blank strings" hook in Weblate. Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ * Translated using Weblate (Japanese) Currently translated at 82.7% (115 of 139 strings) Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ja/ * Translated using Weblate (Japanese) Currently translated at 89.2% (124 of 139 strings) Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ja/ * Translated using Weblate (Japanese) Currently translated at 100.0% (139 of 139 strings) Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ja/ * Translated using Weblate (Portuguese (Portugal)) Currently translated at 100.0% (139 of 139 strings) Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/pt_PT/ * Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (139 of 139 strings) Translation: Decky/Decky Translate-URL: https://weblate.werwolv.net/projects/decky/decky/pt_BR/ --------- Co-authored-by: Tak-attack <[email protected]> Co-authored-by: Weblate <[email protected]> Co-authored-by: Fábio Oliveira <[email protected]>
Signed-off-by: eXhumer <[email protected]>
@SteamDeckHomebrew/decky-testers need a tester for this one. Please install this PR's binary and then download a zip for a plugin and then rename that zip however you'd like (just don't give it the same name :P) and check that this works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works like a charm, and also helped me to discover that when you download a plugin zip file from github (built during an actions run etc) it downloads as a redundant zip file... Guess we should add some logic to account for that 🤦🏻
* fix: get plugin name for dev builds from ZIP (#527) Signed-off-by: eXhumer <[email protected]>
Please tick as appropriate:
Description
Currently the development plugin installation from ZIP / URL is broken partially, due to relying on ZIP name as the plugin name. This commit fixes the issue, by parsing the plugin name from the folder containing
plugin.json
from the ZIP. I tested this on my Steam Deck OLED and can confirm it to fix the issue. I installed a ZIP which previously failed installation and it now works without issue with this commit.Related comments on issue
#527 (comment)
#527 (comment)
This fixes issue: #527