Compare commits

...

42 Commits

Author SHA1 Message Date
marios 968c8b113c working plugin disable, not tested extensively
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
2025-10-07 02:40:41 +03:00
marios 6fac72112c Merge branch 'feat-disable-plugins' into marios8543/plugin-disable 2025-10-07 01:09:47 +03:00
marios 6640279ab3 add frontend 2025-10-07 01:08:39 +03:00
Jesse Bofill d2b6999520 fix mistakes 2025-10-06 15:39:59 -06:00
marios 6fba20239b Feat disable plugins (#810)
* implement base frontend changes necessary for plugin disabling

* implement frontend diisable functions/ modal

---------

Co-authored-by: Jesse Bofill <jesse_bofill@yahoo.com>
2025-10-06 23:54:49 +03:00
marios c3c0e87c6f plugin disable boilerplate / untested 2025-10-06 23:38:14 +03:00
Jesse Bofill 1ae6519209 implement frontend diisable functions/ modal 2025-10-06 14:29:39 -06:00
Jesse Bofill 65f1eb052d implement base frontend changes necessary for plugin disabling 2025-10-06 13:50:02 -06:00
AAGaming 86b5567d4e dfl bump to fix DialogHeader component (#800)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
2025-08-20 15:46:17 -04:00
AAGaming 8f41eb93ef Merge commit from fork
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
* fix incorrect permissions on plugin directories

* chown plugin dirs too

* fix the stupid

* cleanup useless comments
2025-07-28 20:58:59 -04:00
AAGaming 670ae7d8a7 OOPS
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
2025-07-13 02:42:16 -04:00
AAGaming 01ec1663bc Merge branch 'main' of github.com:SteamDeckHomebrew/decky-loader 2025-07-13 02:37:34 -04:00
AAGaming b840d75cb8 certified pnpm moment 2025-07-13 02:37:03 -04:00
AAGaming e22ba20d13 Fix ModalRoot component on beta (#792) 2025-07-13 02:33:22 -04:00
AAGaming bff410d98b chore(readme): update to reflect dumb new pnpm change 2025-07-13 02:26:51 -04:00
AAGaming 7188db9877 feat(dev): make deckdebug.sh configurable
so i can use it on windows :3
2025-07-13 02:20:42 -04:00
AAGaming 02e8640ad4 bump @decky/ui to fix ConfirmModal component (#789)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
Co-Authored-By: shadow <81448108+shdwmtr@users.noreply.github.com>
2025-07-08 23:30:47 -04:00
AAGaming e63983dba9 Fix updater reload freezing (#786)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
2025-07-01 15:24:52 -04:00
ynhhoJ cbea1518ed Removed FocusRing from Decky Changelog Modal and use Focusable instead which fixes: #685 (#779)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
* fix(Updater): Remove `FocusRing` component and use `Focusable` instead

* feat(Markdown): Add Link `class` to a tag for a mentain a Steam UI colors palette
2025-06-29 11:37:47 -07:00
marios 414493eed2 Add Decky branch switcher and updater to error boundary (#775)
* Add Decky branch switcher and updater to error boundary

* Linting fixup

* Update DeckyErrorBoundary.tsx

Allow for plugins to trigger new behavior.

* Lint fixup
2025-06-29 11:36:48 -07:00
dependabot[bot] 078a9cf33d Bump setuptools from 70.1.1 to 78.1.1 in /backend (#772)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
Bumps [setuptools](https://github.com/pypa/setuptools) from 70.1.1 to 78.1.1.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v70.1.1...v78.1.1)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-version: 78.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-28 12:46:22 -07:00
shadow 6e357ceecc fix(deps): update @decky/ui to version 4.10.2 (#782)
* fix(deps): update @decky/ui to version 4.10.1

* chore(deps): bump @decky/ui 4.8.3 -> 4.10.1

* fix(types): UIMode -> EUIMode

* fix(types): bypass missing type in library.ts

* fix: lint

---------

Co-authored-by: AAGaming <aagaming@riseup.net>
2025-06-28 12:45:33 -07:00
ynhhoJ e4f7546f99 Add support of files from data/<plugin>/ to be fetched from Front-End (#761)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
* Add support of files from `data/<plugin>/assets/` to be fetched from Front-End

* Add `data` regex folder into `csrf_middleware`
2025-05-29 17:30:48 -07:00
WerWolvTranslationBot 4e5468a353 Translations update from Weblate (#771)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
* Translated using Weblate (French)

Currently translated at 100.0% (176 of 176 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/fr/

* Translated using Weblate (French)

Currently translated at 100.0% (176 of 176 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/fr/

---------

Co-authored-by: Anaëlle <contact@anaelle.dev>
2025-05-19 07:01:39 -07:00
Alexander Maslov 0b73882012 Simplify the typing of the plugin URL for users (#769)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
* Simplify the typing of the plugin URL for the user. Make the http/https prefix optional.

* Fixed the formatting using prettier --write
2025-04-23 10:21:49 -04:00
Yassine Gherbi b15392b5f2 feat: VSCode Tasks Runner and deckdebug.sh Enhancements (#763)
* feat: add dependency checks in deckdebug.sh

* feat: add argument validation to deckdebug.sh

* feat: remove unnecessary (testing) dependency from deckdebug.sh

* .

* feat: add script to run VSCode tasks with dependency handling

* fix: update script usage instructions in tasks.sh

* fix: dependency check after checking for nix

* feat: add nix shell support in tasks.sh

* fix: match the dependencies

Resolve: https://github.com/SteamDeckHomebrew/decky-loader/pull/763/files/d22612c207b1f0996f2a1dbc4bd7ad392b12e49c#r2039722788

* fix incorrect path in usage

---------

Co-authored-by: AAGaming <aagaming00@protonmail.com>
2025-04-23 08:10:28 -04:00
WerWolvTranslationBot e646168e31 Translations update from Weblate (#764)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
* Translated using Weblate (Russian)

Currently translated at 94.8% (167 of 176 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ru/

* Translated using Weblate (Japanese)

Currently translated at 100.0% (176 of 176 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/ja/

---------

Co-authored-by: Andrew <www.andru90@gmail.com>
Co-authored-by: Tak-attack <tak.bts@gmail.com>
2025-04-05 08:37:19 -07:00
dependabot[bot] 5ec4a4645d Bump jinja2 from 3.1.5 to 3.1.6 in /backend (#762)
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.5 to 3.1.6.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.5...3.1.6)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-05 08:32:23 -07:00
Lukas Senionis b47ad69557 Revert "fix dev on newer python (steamos 3.7)" (#758)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
This reverts commit efac7bc397.
2025-03-26 02:11:36 +00:00
AAGaming efac7bc397 fix dev on newer python (steamos 3.7)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
2025-03-19 15:23:29 -04:00
AAGaming ce2f98aa04 fix toasts on beta (valve forgot how to count) 2025-03-19 15:23:19 -04:00
AAGaming ede8a18e9b pin changed-files to a safe SHA
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
2025-03-17 07:54:16 -04:00
WerWolvTranslationBot 8db3711cab Translated using Weblate (Czech) (#753)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
Currently translated at 100.0% (176 of 176 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/cs/

Co-authored-by: Meiton <michal.salati@gmail.com>
2025-02-26 10:27:28 +01:00
WerWolvTranslationBot ffa3226077 Translated using Weblate (Swedish) (#752)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
Currently translated at 100.0% (176 of 176 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/sv/

Co-authored-by: Daniel Nylander <po@danielnylander.se>
2025-02-24 09:12:44 +01:00
WerWolvTranslationBot dc0e1cfdce Translations update from Weblate (#751)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
* Translated using Weblate (Italian)

Currently translated at 100.0% (176 of 176 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/it/

* Translated using Weblate (English)

Currently translated at 100.0% (176 of 176 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/en/

* Translated using Weblate (Italian)

Currently translated at 100.0% (176 of 176 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/it/

---------

Co-authored-by: Marco Rodolfi <marco.rodolfi@tuta.io>
2025-02-20 16:59:19 +01:00
Marco Rodolfi b3483897e0 Rename ka--DZ.json to ka-DZ.json
Builder Win / Build PluginLoader for Win (push) Waiting to run
Builder / Build PluginLoader (push) Waiting to run
Push Updated Plugin Stub to Template / copy-stub (push) Waiting to run
Lint / Run linters (push) Waiting to run
Type Check / Run type checkers (push) Waiting to run
Wrong filename in the locales folder
2025-02-19 11:10:25 +00:00
TrainDoctor 543ee3d19e Fixed up remote binary logging, download process and old incorrect error
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
2025-02-08 17:30:09 -08:00
WerWolvTranslationBot 654957cb0c Translations update from Weblate (#737)
* Added translation using Weblate (Georgian)

* 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 (Polish)

Currently translated at 100.0% (175 of 175 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/pl/

* Translated using Weblate (Portuguese (Portugal))

Currently translated at 100.0% (175 of 175 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/pt_PT/

* Translated using Weblate (Portuguese (Portugal))

Currently translated at 100.0% (175 of 175 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/pt_PT/

* Translated using Weblate (Portuguese (Portugal))

Currently translated at 100.0% (175 of 175 strings)

Translation: Decky/Decky
Translate-URL: https://weblate.werwolv.net/projects/decky/decky/pt_PT/

---------

Co-authored-by: NorwayFun <temuri.doghonadze@gmail.com>
Co-authored-by: Weblate <noreply@weblate.org>
Co-authored-by: Gadzio742 <daniel.123737@gmail.com>
Co-authored-by: hyperscrawl <design.pedrofirmino@gmail.com>
Co-authored-by: Fábio Oliveira <fabio.an.oliveira@gmail.com>
Co-authored-by: hyperscrawl <hyperscrawl@users.noreply.weblate.werwolv.net>
2025-02-08 14:41:19 -08:00
TrainDoctor 11e5236fa3 Removed unused import and improved log 2025-02-08 14:33:20 -08:00
TrainDoctor c1dd1c7296 White-space formatting is one of the most incomprehensible decisions... 2025-02-08 14:23:07 -08:00
xXJSONDeruloXx 310dd700ac fix: adtl remote binary error handling
(cherry picked from commit 860b1ac835)
2025-02-08 12:32:27 -08:00
Adrian Covaci 0c727d64d2 chore(flake): Add setuptools in order to build on a minimal Nix system (#741)
Builder Win / Build PluginLoader for Win (push) Has been cancelled
Builder / Build PluginLoader (push) Has been cancelled
Push Updated Plugin Stub to Template / copy-stub (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Type Check / Run type checkers (push) Has been cancelled
2025-01-17 21:52:50 +00:00
54 changed files with 1201 additions and 319 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ jobs:
working-directory: ./frontend
run: |
npm i -g pnpm
pnpm i --frozen-lockfile
pnpm i --frozen-lockfile --dangerously-allow-all-builds
- name: Build JS Frontend 🛠️
working-directory: ./frontend
+1 -1
View File
@@ -43,7 +43,7 @@ jobs:
working-directory: ./frontend
run: |
npm i -g pnpm
pnpm i --frozen-lockfile
pnpm i --frozen-lockfile --dangerously-allow-all-builds
- name: Build JS Frontend 🛠️
working-directory: ./frontend
+1 -1
View File
@@ -18,7 +18,7 @@ jobs:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41.0.0
uses: tj-actions/changed-files@531f5f7d163941f0c1c04e0ff4d8bb243ac4366f
with:
separator: ","
files: |
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
working-directory: frontend
run: |
npm i -g pnpm
pnpm i --frozen-lockfile
pnpm i --frozen-lockfile --dangerously-allow-all-builds
- name: Run prettier (TypeScript)
working-directory: frontend
+1 -1
View File
@@ -35,7 +35,7 @@ jobs:
working-directory: frontend
run: |
npm i -g pnpm
pnpm i --frozen-lockfile
pnpm i --frozen-lockfile --dangerously-allow-all-builds
- name: Run pyright (Python)
uses: jakebailey/pyright-action@v1
+2 -2
View File
@@ -1,8 +1,8 @@
{
"deckip" : "0.0.0.0",
"deckip" : "192.168.1.69",
"deckport" : "22",
"deckuser" : "deck",
"deckpass" : "ssap",
"deckpass" : "deck",
"deckkey" : "-i ${env:HOME}/.ssh/id_rsa",
"deckdir" : "/home/deck"
}
+1 -1
View File
@@ -95,7 +95,7 @@ Please consult [the wiki page regarding development](https://wiki.deckbrew.xyz/e
1. In your clone of the repository, run these commands.
```bash
cd frontend
pnpm i
pnpm i # NOTE: you may need to approve esbuild's build script with pnpm approve-builds
pnpm run build
```
1. If you are modifying the UI, these commands will need to be run before deploying the changes to your Steam Deck.
+37 -17
View File
@@ -18,9 +18,10 @@ from enum import IntEnum
from typing import Dict, List, TypedDict
# Local modules
from .localplatform.localplatform import chown, chmod
from .localplatform.localplatform import chown, chmod, get_chown_plugin_path
from .loader import Loader, Plugins
from .helpers import get_ssl_context, download_remote_binary_to_path
from .enums import UserType
from .settings import SettingsManager
logger = getLogger("Browser")
@@ -60,13 +61,6 @@ class PluginBrowser:
return False
zip_file = ZipFile(zip)
zip_file.extractall(self.plugin_path)
plugin_folder = self.find_plugin_folder(name)
assert plugin_folder is not None
plugin_dir = path.join(self.plugin_path, plugin_folder)
if not chown(plugin_dir) or not chmod(plugin_dir, 555):
logger.error(f"chown/chmod exited with a non-zero exit code")
return False
return True
async def _download_remote_binaries_for_plugin_with_name(self, pluginBasePath: str):
@@ -75,6 +69,8 @@ class PluginBrowser:
packageJsonPath = path.join(pluginBasePath, 'package.json')
pluginBinPath = path.join(pluginBasePath, 'bin')
logger.debug(f"Checking package.json at {packageJsonPath}")
if access(packageJsonPath, R_OK):
with open(packageJsonPath, "r", encoding="utf-8") as f:
packageJson = json.load(f)
@@ -83,6 +79,7 @@ class PluginBrowser:
chmod(pluginBasePath, 777)
if access(pluginBasePath, W_OK):
if not path.exists(pluginBinPath):
logger.debug(f"Creating bin directory at {pluginBinPath}")
mkdir(pluginBinPath)
if not access(pluginBinPath, W_OK):
chmod(pluginBinPath, 777)
@@ -93,15 +90,14 @@ class PluginBrowser:
binName = remoteBinary["name"]
binURL = remoteBinary["url"]
binHash = remoteBinary["sha256hash"]
logger.info(f"Attempting to download {binName} from {binURL}")
if not await download_remote_binary_to_path(binURL, binHash, path.join(pluginBinPath, binName)):
rv = False
raise Exception(f"Error Downloading Remote Binary {binName}@{binURL} with hash {binHash} to {path.join(pluginBinPath, binName)}")
chown(self.plugin_path)
chmod(pluginBasePath, 555)
else:
rv = True
logger.debug(f"No Remote Binaries to Download")
logger.info(f"No Remote Binaries to Download")
except Exception as e:
rv = False
@@ -120,6 +116,25 @@ class PluginBrowser:
return folder
except:
logger.debug(f"skipping {folder}")
def set_plugin_dir_permissions(self, plugin_dir: str) -> bool:
plugin_json_path = path.join(plugin_dir, 'plugin.json')
logger.debug(f"Checking plugin.json at {plugin_json_path}")
root_plugin = False
if access(plugin_json_path, R_OK):
with open(plugin_json_path, "r", encoding="utf-8") as f:
plugin_json = json.load(f)
if "flags" in plugin_json and "root" in plugin_json["flags"]:
root_plugin = True
logger.debug("root_plugin %d, dir %s", root_plugin, plugin_dir)
if get_chown_plugin_path():
return chown(plugin_dir, UserType.EFFECTIVE_USER if root_plugin else UserType.HOST_USER, True) and chown(plugin_dir, UserType.EFFECTIVE_USER, False) and chmod(plugin_dir, 755) and chown(plugin_json_path, UserType.EFFECTIVE_USER, False) and chmod(plugin_json_path, 755)
else:
logger.debug("chown disabled by environment")
return True
async def uninstall_plugin(self, name: str):
if self.loader.watcher:
@@ -196,7 +211,7 @@ class PluginBrowser:
else:
logger.fatal(f"Could not fetch from URL. {await res.text()}")
await self.loader.ws.emit("loader/plugin_download_info", 80, "Store.download_progress_info.increment_count")
await self.loader.ws.emit("loader/plugin_download_info", 70, "Store.download_progress_info.increment_count")
storeUrl = ""
match self.settings.getSetting("store", 0):
case 0: storeUrl = "https://plugins.deckbrew.xyz/plugins" # default
@@ -209,7 +224,7 @@ class PluginBrowser:
if res.status != 200:
logger.error(f"Server did not accept install count increment request. code: {res.status}")
await self.loader.ws.emit("loader/plugin_download_info", 85, "Store.download_progress_info.parse_zip")
await self.loader.ws.emit("loader/plugin_download_info", 75, "Store.download_progress_info.parse_zip")
if res_zip and version == "dev":
with ZipFile(res_zip) as plugin_zip:
plugin_json_list = [file for file in plugin_zip.namelist() if file.endswith("/plugin.json") and file.count("/") == 1]
@@ -244,7 +259,7 @@ class PluginBrowser:
# If plugin is installed, uninstall it
if isInstalled:
await self.loader.ws.emit("loader/plugin_download_info", 90, "Store.download_progress_info.uninstalling_previous")
await self.loader.ws.emit("loader/plugin_download_info", 80, "Store.download_progress_info.uninstalling_previous")
try:
logger.debug("Uninstalling existing plugin...")
await self.uninstall_plugin(name)
@@ -252,7 +267,7 @@ class PluginBrowser:
logger.error(f"Plugin {name} could not be uninstalled.")
await self.loader.ws.emit("loader/plugin_download_info", 95, "Store.download_progress_info.installing_plugin")
await self.loader.ws.emit("loader/plugin_download_info", 90, "Store.download_progress_info.installing_plugin")
# Install the plugin
logger.debug("Unzipping...")
ret = self._unzip_to_plugin_dir(res_zip, name, hash)
@@ -260,8 +275,9 @@ class PluginBrowser:
plugin_folder = self.find_plugin_folder(name)
assert plugin_folder is not None
plugin_dir = path.join(self.plugin_path, plugin_folder)
#TODO count again from 0% to 100% quickly for this one if it does anything
await self.loader.ws.emit("loader/plugin_download_info", 95, "Store.download_progress_info.download_remote")
ret = await self._download_remote_binaries_for_plugin_with_name(plugin_dir)
chown_ret = self.set_plugin_dir_permissions(plugin_dir)
if ret:
logger.info(f"Installed {name} (Version: {version})")
if name in self.loader.plugins:
@@ -274,8 +290,12 @@ class PluginBrowser:
self.settings.setSetting("pluginOrder", current_plugin_order)
logger.debug("Plugin %s was added to the pluginOrder setting", name)
await self.loader.import_plugin(path.join(plugin_dir, "main.py"), plugin_folder)
elif not chown_ret:
logger.error("Could not chown plugin")
return
else:
logger.fatal(f"Failed Downloading Remote Binaries")
logger.error("Could not download remote binaries")
return
else:
logger.fatal(f"SHA-256 Mismatch!!!! {name} (Version: {version})")
if self.loader.watcher:
+2 -3
View File
@@ -1,9 +1,8 @@
from enum import IntEnum
class UserType(IntEnum):
HOST_USER = 1
EFFECTIVE_USER = 2
ROOT = 3
HOST_USER = 1 # usually deck
EFFECTIVE_USER = 2 # usually root
class PluginLoadType(IntEnum):
LEGACY_EVAL_IIFE = 0 # legacy, uses legacy serverAPI
+17 -14
View File
@@ -4,7 +4,6 @@ import uuid
import os
import subprocess
from hashlib import sha256
from io import BytesIO
import importlib.metadata
import certifi
@@ -24,6 +23,7 @@ csrf_token = str(uuid.uuid4())
ssl_ctx = ssl.create_default_context(cafile=certifi.where())
assets_regex = re.compile("^/plugins/.*/assets/.*")
data_regex = re.compile("^/plugins/.*/data/.*")
dist_regex = re.compile("^/plugins/.*/dist/.*")
frontend_regex = re.compile("^/frontend/.*")
logger = getLogger("Main")
@@ -46,6 +46,7 @@ async def csrf_middleware(request: Request, handler: Handler):
str(request.rel_url.path) == "/fetch" or \
str(request.rel_url.path) == "/ws" or \
assets_regex.match(str(request.rel_url)) or \
data_regex.match(str(request.rel_url)) or \
dist_regex.match(str(request.rel_url)) or \
frontend_regex.match(str(request.rel_url)):
@@ -112,19 +113,20 @@ async def download_remote_binary_to_path(url: str, binHash: str, path: str) -> b
if os.access(os.path.dirname(path), os.W_OK):
async with ClientSession() as client:
res = await client.get(url, ssl=get_ssl_context())
if res.status == 200:
data = BytesIO(await res.read())
remoteHash = sha256(data.getbuffer()).hexdigest()
if binHash == remoteHash:
data.seek(0)
with open(path, 'wb') as f:
f.write(data.getbuffer())
rv = True
if res.status == 200:
logger.debug("Download attempt of URL: " + url)
data = await res.read()
remoteHash = sha256(data).hexdigest()
if binHash == remoteHash:
with open(path, 'wb') as f:
f.write(data)
rv = True
else:
raise Exception(f"Fatal Error: Hash Mismatch for remote binary {path}@{url}")
else:
raise Exception(f"Fatal Error: Hash Mismatch for remote binary {path}@{url}")
else:
rv = False
except:
rv = False
except Exception as e:
logger.error("Error during download " + str(e))
rv = False
return rv
@@ -179,7 +181,8 @@ def get_user_group_id() -> int:
# Get the default home path unless a user is specified
def get_home_path(username: str | None = None) -> str:
return localplatform.get_home_path(UserType.ROOT if username == "root" else UserType.HOST_USER)
# TODO hardcoded root is kinda a hack
return localplatform.get_home_path(UserType.EFFECTIVE_USER if username == "root" else UserType.HOST_USER)
async def is_systemd_unit_active(unit_name: str) -> bool:
return await localplatform.service_active(unit_name)
+16 -2
View File
@@ -8,6 +8,7 @@ from typing import Any, Tuple, Dict, cast
from aiohttp import web
from os.path import exists
from decky_loader.helpers import get_homebrew_path
from watchdog.events import RegexMatchingEventHandler, FileSystemEvent
from watchdog.observers import Observer
@@ -77,6 +78,7 @@ class Loader:
self.live_reload = live_reload
self.reload_queue: ReloadQueue = Queue()
self.loop.create_task(self.handle_reloads())
self.context: PluginManager = server_instance
if live_reload:
self.observer = Observer()
@@ -91,6 +93,7 @@ class Loader:
web.get("/plugins/{plugin_name}/frontend_bundle", self.handle_frontend_bundle),
web.get("/plugins/{plugin_name}/dist/{path:.*}", self.handle_plugin_dist),
web.get("/plugins/{plugin_name}/assets/{path:.*}", self.handle_plugin_frontend_assets),
web.get("/plugins/{plugin_name}/data/{path:.*}", self.handle_plugin_frontend_assets_from_data),
])
server_instance.ws.add_route("loader/get_plugins", self.get_plugins)
@@ -128,7 +131,7 @@ class Loader:
async def get_plugins(self):
plugins = list(self.plugins.values())
return [{"name": str(i), "version": i.version, "load_type": i.load_type} for i in plugins]
return [{"name": str(i), "version": i.version, "load_type": i.load_type, "disabled": i.disabled} for i in plugins]
async def handle_plugin_dist(self, request: web.Request):
plugin = self.plugins[request.match_info["plugin_name"]]
@@ -142,6 +145,13 @@ class Loader:
return web.FileResponse(file, headers={"Cache-Control": "no-cache"})
async def handle_plugin_frontend_assets_from_data(self, request: web.Request):
plugin = self.plugins[request.match_info["plugin_name"]]
home = get_homebrew_path()
file = path.join(home, "data", plugin.plugin_directory, request.match_info["path"])
return web.FileResponse(file, headers={"Cache-Control": "no-cache"})
async def handle_frontend_bundle(self, request: web.Request):
plugin = self.plugins[request.match_info["plugin_name"]]
@@ -155,6 +165,10 @@ class Loader:
await self.ws.emit(f"loader/plugin_event", {"plugin": plugin.name, "event": event, "args": args})
plugin = PluginWrapper(file, plugin_directory, self.plugin_path, plugin_emitted_event)
if hasattr(self.context, "utilities") and plugin.name in await self.context.utilities.get_setting("disabled_plugins",[]):
plugin.disabled = True
self.plugins[plugin.name] = plugin
return
if plugin.name in self.plugins:
if not "debug" in plugin.flags and refresh:
self.logger.info(f"Plugin {plugin.name} is already loaded and has requested to not be re-loaded")
@@ -216,4 +230,4 @@ class Loader:
async def handle_plugin_backend_reload(self, plugin_name: str):
plugin = self.plugins[plugin_name]
await self.reload_queue.put((plugin.file, plugin.plugin_directory))
await self.reload_queue.put((plugin.file, plugin.plugin_directory))
+27 -1
View File
@@ -52,7 +52,9 @@
"MultiplePluginsInstallModal": {
"confirm": "Jste si jisti, že chcete udělat následující úpravy?",
"description": {
"downgrade": "Downgradovat {{name}} na verzi {{version}}",
"install": "Instalovat {{name}} {{version}}",
"overwrite": "Přepsat {{name}} verzí {{version}}",
"reinstall": "Přeinstalovat {{name}} {{version}}",
"update": "Aktualizovat {{name}} na {{version}}"
},
@@ -61,12 +63,18 @@
"loading": "Probíhá"
},
"title": {
"downgrade_few": "Downgradovat {{count}} pluginy",
"downgrade_one": "Downgradovat {{count}} plugin",
"downgrade_other": "Downgradovat {{count}} pluginů",
"install_few": "Instalovat {{count}} pluginů",
"install_one": "Instalovat 1 plugin",
"install_other": "Instalovat {{count}} pluginů",
"mixed_few": "Upravit {{count}} pluginů",
"mixed_one": "Upravit {{count}} plugin",
"mixed_other": "Upravit {{count}} pluginů",
"overwrite_few": "Přepsat {{count}} pluginy",
"overwrite_one": "Přepsat {{count}} plugin",
"overwrite_other": "Přepsat {{count}} pluginů",
"reinstall_few": "Přeinstalovat {{count}} pluginů",
"reinstall_one": "Přeinstalovat 1 plugin",
"reinstall_other": "Přeinstalovat {{count}} pluginů",
@@ -76,12 +84,22 @@
}
},
"PluginCard": {
"plugin_downgrade": "Downgrade",
"plugin_full_access": "Tento plugin má plný přístup k vašemu Steam Decku.",
"plugin_install": "Instalovat",
"plugin_no_desc": "Nebyl uveden žádný popis.",
"plugin_overwrite": "Přepsat",
"plugin_reinstall": "Přeinstalovat",
"plugin_update": "Aktualizovat",
"plugin_version_label": "Verze pluginu"
},
"PluginInstallModal": {
"downgrade": {
"button_idle": "Downgrade",
"button_processing": "Downgradování",
"desc": "Opravdu chcete downgradovat {{artifact}} na verzi {{version}}?",
"title": "Downgradovat {{artifact}}"
},
"install": {
"button_idle": "Instalovat",
"button_processing": "Instalování",
@@ -89,6 +107,13 @@
"title": "Instalovat {{artifact}}"
},
"no_hash": "Tento plugin nemá hash, instalujete jej na vlastní nebezpečí.",
"not_installed": "(nenainstalováno)",
"overwrite": {
"button_idle": "Přepsat",
"button_processing": "Přepisování",
"desc": "Opravdu chcete přepsat {{artifact}} na verzi {{version}}?",
"title": "Přepsat {{artifact}}"
},
"reinstall": {
"button_idle": "Přeinstalovat",
"button_processing": "Přeinstalování",
@@ -98,7 +123,7 @@
"update": {
"button_idle": "Aktualizovat",
"button_processing": "Aktualizování",
"desc": "Jste si jisti, že chcete aktualizovat {{artifact}} {{version}}?",
"desc": "Opravdu chcete aktualizovat {{artifact}} na verzi {{version}}?",
"title": "Aktualizovat {{artifact}}"
}
},
@@ -206,6 +231,7 @@
},
"Store": {
"download_progress_info": {
"download_remote": "Stahování externích knihoven",
"download_zip": "Stahování pluginu",
"increment_count": "Zvyšující se počet stahování",
"installing_plugin": "Instalování pluginu",
+1
View File
@@ -222,6 +222,7 @@
},
"Store": {
"download_progress_info": {
"download_remote": "Downloading any external binaries",
"download_zip": "Downloading plugin",
"increment_count": "Incrementing download count",
"installing_plugin": "Installing plugin",
+54 -15
View File
@@ -2,7 +2,7 @@
"BranchSelect": {
"update_channel": {
"label": "Canal de mise à jour",
"prerelease": "Avant-première",
"prerelease": "Préliminaire",
"stable": "Stable",
"testing": "Test"
}
@@ -52,21 +52,29 @@
"MultiplePluginsInstallModal": {
"confirm": "Êtes-vous sûr de vouloir apporter les modifications suivantes ?",
"description": {
"downgrade": "Rétrograder {{name}} en {{version}}",
"install": "Installer {{name}} {{version}}",
"overwrite": "Écraser {{name}} avec {{version}}",
"reinstall": "Réinstaller {{name}} {{version}}",
"update": "Mettre à jour {{name}} à {{version}}"
"update": "Mettre à jour {{name}} en {{version}}"
},
"ok_button": {
"idle": "Confirmer",
"loading": "En cours"
},
"title": {
"downgrade_many": "Rétrograder {{count}} plugins",
"downgrade_one": "Rétrograder 1 plugin",
"downgrade_other": "Rétrograder {{count}} plugins",
"install_many": "Installer {{count}} plugins",
"install_one": "Installer 1 plugin",
"install_other": "Installer {{count}} plugins",
"mixed_many": "Modifier {{count}} plugins",
"mixed_one": "Modifier {{count}} plugin",
"mixed_other": "Modifier {{count}} plugins",
"overwrite_many": "Écraser {{count}} plugins",
"overwrite_one": "Écraser 1 plugin",
"overwrite_other": "Écraser {{count}} plugins",
"reinstall_many": "Réinstaller {{count}} plugins",
"reinstall_one": "Réinstaller 1 plugin",
"reinstall_other": "Réinstaller {{count}} plugins",
@@ -76,12 +84,22 @@
}
},
"PluginCard": {
"plugin_downgrade": "Rétrograder",
"plugin_full_access": "Ce plugin a un accès complet à votre Steam Deck.",
"plugin_install": "Installer",
"plugin_no_desc": "Aucune description fournie.",
"plugin_overwrite": "Écraser",
"plugin_reinstall": "Réinstaller",
"plugin_update": "Mettre à jour",
"plugin_version_label": "Version du plugin"
},
"PluginInstallModal": {
"downgrade": {
"button_idle": "Rétrograder",
"button_processing": "Rétrogradation",
"desc": "Êtes-vous sûr de vouloir rétrograder {{artifact}} vers la version {{version}} ?",
"title": "Rétrograder {{artifact}}"
},
"install": {
"button_idle": "Installer",
"button_processing": "Installation en cours",
@@ -89,6 +107,13 @@
"title": "Installer {{artifact}}"
},
"no_hash": "Ce plugin n'a pas de somme de contrôle, vous l'installez à vos risques et périls.",
"not_installed": "(non installé)",
"overwrite": {
"button_idle": "Écraser",
"button_processing": "Écrasement",
"desc": "Êtes-vous sûr de vouloir remplacer {{artifact}} par la version {{version}} ?",
"title": "Écraser {{artifact}}"
},
"reinstall": {
"button_idle": "Réinstaller",
"button_processing": "Réinstallation en cours",
@@ -97,8 +122,8 @@
},
"update": {
"button_idle": "Mettre à jour",
"button_processing": "Mise à jour",
"desc": "Êtes-vous sûr de vouloir mettre à jour {{artifact}} {{version}}?",
"button_processing": "Mise à jour en cours",
"desc": "Êtes-vous sûr de vouloir mettre à jour {{artifact}} vers la version {{version}}?",
"title": "Mettre à jour {{artifact}}"
}
},
@@ -124,7 +149,7 @@
"decky_title": "Decky",
"decky_update_available": "Mise à jour vers {{tag_name}} disponible !",
"error": "Erreur",
"plugin_error_uninstall": "Allez sur {{name}} dans le menu de Decky si vous voulez désinstaller ce plugin.",
"plugin_error_uninstall": "Le chargement de {{name}} a provoqué une exception comme indiqué ci-dessus. Cela signifie généralement que le plugin nécessite une mise à jour pour la nouvelle version de SteamUI. Vérifiez si une mise à jour est présente ou évaluez sa suppression dans les paramètres de Decky, dans la section Plugins.",
"plugin_load_error": {
"message": "Erreur lors du chargement du plugin {{name}}",
"toast": "Erreur lors du chargement de {{name}}"
@@ -153,7 +178,7 @@
"cef_console": {
"button": "Ouvrir la console",
"desc": "Ouvre la console CEF. Utile uniquement à des fins de débogage. Les éléments présentés ici sont potentiellement dangereux et ne doivent être utilisés que si vous êtes un développeur de plugins ou si vous êtes dirigé ici par un de ces développeurs.",
"label": "CEF Console"
"label": "Console CEF"
},
"header": "Autre",
"react_devtools": {
@@ -171,7 +196,7 @@
},
"valve_internal": {
"desc1": "Active le menu développeur interne de Valve.",
"desc2": "Ne touchez à rien dans ce menu à moins que vous ne sachiez ce qu'il fait.",
"desc2": "Ne touchez à rien dans ce menu à moins que vous ne sachiez ce que ça fait.",
"label": "Activer Valve Internal"
}
},
@@ -187,9 +212,9 @@
"label": "Mode développeur"
},
"notifications": {
"decky_updates_label": "Mise à jour Decky disponible",
"decky_updates_label": "Mise à jour de Decky disponible",
"header": "Notifications",
"plugin_updates_label": "Mises à jour du plugin disponibles"
"plugin_updates_label": "Mises à jour des plugins disponibles"
},
"other": {
"header": "Autre"
@@ -202,9 +227,19 @@
"developer_title": "Développeur",
"general_title": "Général",
"plugins_title": "Plugins",
"testing_title": "Essai"
"testing_title": "Expérimentations"
},
"Store": {
"download_progress_info": {
"download_remote": "Téléchargement des binaires externes",
"download_zip": "Téléchargement du plugin",
"increment_count": "Incrémentation du nombre de téléchargements",
"installing_plugin": "Installation du plugin",
"open_zip": "Ouverture du fichier zip",
"parse_zip": "Analyse du fichier zip",
"start": "Initialisation",
"uninstalling_previous": "Désinstallation de la copie précédente"
},
"store_contrib": {
"desc": "Si vous souhaitez contribuer au Decky Plugin Store, consultez le dépôt SteamDeckHomebrew/decky-plugin-template sur GitHub. Des informations sur le développement et la distribution sont disponibles dans le fichier README.",
"label": "Contributions"
@@ -237,23 +272,27 @@
"store_testing_cta": "Pensez à tester de nouveaux plugins pour aider l'équipe Decky Loader !",
"store_testing_warning": {
"desc": "Vous pouvez utiliser cette chaîne de magasin pour tester des versions de plugins. Assurez-vous de laisser des commentaires sur GitHub afin que le plugin puisse être mis à jour pour tous les utilisateurs.",
"label": "Bienvenue sur la chaîne du magasin de tests"
"label": "Bienvenue sur le canal test de la boutique"
}
},
"StoreSelect": {
"custom_store": {
"label": "Plugin Store personnalisé",
"label": "Magasin personnalisé",
"url_label": "URL"
},
"store_channel": {
"custom": "Personnalisé",
"default": "Par défaut",
"label": "Canal du Plugin Store",
"label": "Canal magasin",
"testing": "Test"
}
},
"Testing": {
"download": "Télécharger"
"download": "Télécharger",
"error": "Erreur d'installation de la PR",
"header": "Les versions suivantes de Decky Loader sont construites à partir de Pull Requests ouvertes par des tiers. L'équipe de Decky Loader n'a pas vérifié leur fonctionnalité ou leur sécurité, et elles peuvent être obsolètes.",
"loading": "Chargement des Pull Requests ouvertes...",
"start_download_toast": "Téléchargement de la PR #{{id}}"
},
"TitleView": {
"decky_store_desc": "Ouvrir le magasin Decky",
@@ -264,7 +303,7 @@
"no_patch_notes_desc": "pas de notes de mise à jour pour cette version",
"patch_notes_desc": "Notes de mise à jour",
"updates": {
"check_button": "Chercher les mises à jour",
"check_button": "Vérifier les mises à jour",
"checking": "Recherche",
"cur_version": "Version actuelle: {{ver}}",
"install_button": "Installer la mise à jour",
+27 -1
View File
@@ -52,7 +52,9 @@
"MultiplePluginsInstallModal": {
"confirm": "Sei sicuro di voler effettuare le modifiche seguenti?",
"description": {
"downgrade": "Downgrada {{name}} a versione {{version}}",
"install": "Installa {{name}} {{version}}",
"overwrite": "Sovrascrive {{name}} con {{version}}",
"reinstall": "Reinstalla {{name}} {{version}}",
"update": "Aggiorna {{name}} alla versione {{version}}"
},
@@ -61,12 +63,18 @@
"loading": "Elaboro"
},
"title": {
"downgrade_many": "Downgrada {{count}} plugins",
"downgrade_one": "Downgrada un plugin",
"downgrade_other": "Downgrada {{count}} plugins",
"install_many": "Installa {{count}} plugins",
"install_one": "Installa un plugin",
"install_other": "Installa {{count}} plugins",
"mixed_many": "Modifica {{count}} plugins",
"mixed_one": "Modifica un plugin",
"mixed_other": "Modifica {{count}} plugins",
"overwrite_many": "Sovrascrivi {{count}} plugins",
"overwrite_one": "Sovrascrivi un plugin",
"overwrite_other": "Sovrascrivi {{count}} plugins",
"reinstall_many": "Reinstalla {{count}} plugins",
"reinstall_one": "Reinstalla un plugin",
"reinstall_other": "Reinstalla {{count}} plugins",
@@ -76,12 +84,22 @@
}
},
"PluginCard": {
"plugin_downgrade": "Downgrada",
"plugin_full_access": "Questo plugin ha accesso completo al tuo Steam Deck.",
"plugin_install": "Installa",
"plugin_no_desc": "Nessuna descrizione fornita.",
"plugin_overwrite": "Sovrascrivi",
"plugin_reinstall": "Reinstalla",
"plugin_update": "Aggiorna",
"plugin_version_label": "Versione Plugin"
},
"PluginInstallModal": {
"downgrade": {
"button_idle": "Downgrada",
"button_processing": "Downgradando",
"desc": "Sei sicuro di voler downgradare {{artifact}} alla versione {{version}}?",
"title": "Downgrada {{artifact}}"
},
"install": {
"button_idle": "Installa",
"button_processing": "Installando",
@@ -89,6 +107,13 @@
"title": "Installa {{artifact}}"
},
"no_hash": "Questo plugin non ha un hash associato, lo stai installando a tuo rischio e pericolo.",
"not_installed": "(non installato)",
"overwrite": {
"button_idle": "Sovrascrivi",
"button_processing": "Sovrascrivendo",
"desc": "Sei sicuro di voler sovrascrivere {{artifact}} con la versione {{version}}?",
"title": "Sovrascrivi {{artifact}}"
},
"reinstall": {
"button_idle": "Reinstalla",
"button_processing": "Reinstallando",
@@ -98,7 +123,7 @@
"update": {
"button_idle": "Aggiorna",
"button_processing": "Aggiornando",
"desc": "Sei sicuro di voler aggiornare {{artifact}} {{version}}?",
"desc": "Sei sicuro di voler aggiornare {{artifact}} alla versione {{version}}?",
"title": "Aggiorna {{artifact}}"
}
},
@@ -206,6 +231,7 @@
},
"Store": {
"download_progress_info": {
"download_remote": "Scaricando qualunque binario esterno",
"download_zip": "Scarico plugin",
"increment_count": "Incremento il numero di download",
"installing_plugin": "Installo il plugin",
+23 -1
View File
@@ -52,7 +52,9 @@
"MultiplePluginsInstallModal": {
"confirm": "以下の変更を加えてもよろしいですか?",
"description": {
"downgrade": "ダウングレード {{name}} {{version}}",
"install": "インストール {{name}} {{version}}",
"overwrite": "上書き {{name}} {{version}}",
"reinstall": "再インストール {{name}} {{version}}",
"update": "アップデート {{name}} {{version}}"
},
@@ -61,19 +63,31 @@
"loading": "作業中"
},
"title": {
"downgrade_other": "{{count}} 個のプラグインをダウングレード",
"install_other": "{{count}} 個のプラグインをインストール",
"mixed_other": "{{count}} 個のプラグインを修正",
"overwrite_other": "{{count}} 個のプラグインを上書き",
"reinstall_other": "{{count}} 個のプラグインを再インストール",
"update_other": "{{count}} 個のプラグインをアップデート"
}
},
"PluginCard": {
"plugin_downgrade": "ダウングレード",
"plugin_full_access": "このプラグインはSteam Deckの全てのアクセス権を持ちます。",
"plugin_install": "インストール",
"plugin_no_desc": "説明はありません。",
"plugin_overwrite": "上書き",
"plugin_reinstall": "再インストール",
"plugin_update": "アップデート",
"plugin_version_label": "プラグインバージョン"
},
"PluginInstallModal": {
"downgrade": {
"button_idle": "ダウングレード",
"button_processing": "ダウングレード中",
"desc": "{{artifact}}をVer {{version}} にダウングレードしてもよろしいですか?",
"title": "{{artifact}}をダウングレード"
},
"install": {
"button_idle": "インストール",
"button_processing": "インストール中",
@@ -81,6 +95,13 @@
"title": "{{artifact}} をインストール"
},
"no_hash": "このプラグインにはハッシュがありません。ご自身の責任でインストールしてください。",
"not_installed": "(インストールされていません)",
"overwrite": {
"button_idle": "上書き",
"button_processing": "上書き中",
"desc": "{{artifact}}をVer {{version}} に上書きしてもよろしいですか?",
"title": "{{artifact}}を上書き"
},
"reinstall": {
"button_idle": "再インストール",
"button_processing": "再インストール中",
@@ -90,7 +111,7 @@
"update": {
"button_idle": "アップデート",
"button_processing": "アップデート中",
"desc": "{{artifact}} {{version}} アップデートしてもよろしいですか?",
"desc": "{{artifact}}をVer {{version}} アップデートしてもよろしいですか?",
"title": "{{artifact}} をアップデート"
}
},
@@ -192,6 +213,7 @@
},
"Store": {
"download_progress_info": {
"download_remote": "外部バイナリのダウンロード",
"download_zip": "プラグインのダウンロード中",
"increment_count": "ダウンロード数の増加",
"installing_plugin": "プラグインのインストール中",
+1
View File
@@ -0,0 +1 @@
{}
+20 -7
View File
@@ -26,7 +26,7 @@
},
"FilePickerIndex": {
"file": {
"select": "Wybierz ten plik"
"select": "Zaznacz ten plik"
},
"files": {
"all_files": "Wszystkie pliki",
@@ -96,9 +96,9 @@
"title": "Reinstaluj {{artifact}}"
},
"update": {
"button_idle": "Aktualizacja",
"button_idle": "Aktualizuj",
"button_processing": "Aktualizowanie",
"desc": "Czy na pewno chcesz zaktualizować {{artifact}} {{version}}?",
"desc": "Czy na pewno chcesz zaktualizować {{artifact}} do wersji {{version}}?",
"title": "Zaktualizuj {{artifact}}"
}
},
@@ -122,11 +122,11 @@
},
"PluginLoader": {
"decky_title": "Decky",
"decky_update_available": "Dostępna aktualizacja do {{tag_name}}!",
"decky_update_available": "Aktualizacja do {{tag_name}} jest dostępna!",
"error": "Błąd",
"plugin_error_uninstall": "Ładowanie {{name}} spowodowało wyjątek, jak pokazano powyżej. Zwykle oznacza to, że plugin wymaga aktualizacji do nowej wersji SteamUI. Sprawdź, czy aktualizacja jest obecna lub rozważ usunięcie go w ustawieniach Decky, w sekcji Pluginy.",
"plugin_load_error": {
"message": "Błąd ładowania plugin {{name}}",
"message": "Błąd ładowania pluginu {{name}}",
"toast": "Błąd ładowania {{name}}"
},
"plugin_uninstall": {
@@ -205,6 +205,15 @@
"testing_title": "Testowanie"
},
"Store": {
"download_progress_info": {
"download_zip": "Pobieranie pluginu",
"increment_count": "Zwiększanie liczby pobrań",
"installing_plugin": "Instalowanie pluginu",
"open_zip": "Otwieranie pliku zip",
"parse_zip": "Analizowanie pliku zip",
"start": "Inicjalizacja",
"uninstalling_previous": "Odinstalowywanie poprzednich kopii"
},
"store_contrib": {
"desc": "Jeśli chcesz przyczynić się do rozwoju Decky Plugin Store, sprawdź repozytorium SteamDeckHomebrew/decky-plugin-template na GitHub. Informacje na temat rozwoju i dystrybucji są dostępne w pliku README.",
"label": "Współtworzenie"
@@ -236,7 +245,7 @@
},
"store_testing_cta": "Rozważ przetestowanie nowych pluginów, aby pomóc zespołowi Decky Loader!",
"store_testing_warning": {
"desc": "Możesz użyć tego kanału sklepu do testowania najnowszych wersji pluginów. Pamiętaj, aby zostawić opinię na GitHub, aby plugin moa zostać zaktualizowana dla wszystkich użytkowników.",
"desc": "Możesz użyć tego kanału sklepu do testowania najnowszych wersji pluginów. Pamiętaj, aby zostawić opinię na GitHub, aby plugin mógł zostać zaktualizowany dla wszystkich użytkowników.",
"label": "Witamy w Testowym Kanale Sklepu"
}
},
@@ -253,7 +262,11 @@
}
},
"Testing": {
"download": "Pobierz"
"download": "Pobierz",
"error": "Błąd instalowania PR",
"header": "Następujące wersje Decky Loader są zrobione z open third-party Pull Requests. Zespół Decky Loader nie zweryfikował ich działania czy bezpieczeństwa, mogą też być nie aktualne.",
"loading": "Ładowanie open Pull Requests...",
"start_download_toast": "Pobieranie PR #{{id}}"
},
"TitleView": {
"decky_store_desc": "Otwórz sklep Decky",
+80 -57
View File
@@ -1,16 +1,16 @@
{
"BranchSelect": {
"update_channel": {
"label": "Canal de actualização",
"label": "Canal de atualização",
"prerelease": "Pré-lançamento",
"stable": "Estável",
"testing": "Em teste"
"testing": "Em testes"
}
},
"Developer": {
"5secreload": "Vai recarregar em 5 segundos",
"disabling": "Desactivando React DevTools",
"enabling": "Activando React DevTools"
"5secreload": "A recarregar em 5 segundos",
"disabling": "Desativar React DevTools",
"enabling": "Ativar React DevTools"
},
"DropdownMultiselect": {
"button": {
@@ -19,9 +19,9 @@
},
"FilePickerError": {
"errors": {
"file_not_found": "O caminho especificado não é válido. Por favor, verifique e insira-o corretamente.",
"perm_denied": "Não tem acesso ao diretório especificado. Por favor, verifique se o seu utilizador (deck na Steam Deck) possui as permissões correspondentes para aceder à pasta/ficheiro especificado.",
"unknown": "Ocorreu um erro desconhecido. O erro é: {{raw_error}}"
"file_not_found": "O caminho especificado não é válido. Por favor, verifica e insere o caminho correto.",
"perm_denied": "Não tens acesso ao diretório especificado. Por favor, verifica se o seu utilizador (deck na Steam Deck) tem a permissão correspondente para aceder à pasta/ficheiro especificada(o).",
"unknown": "Ocorreu um erro desconhecido. O erro bruto é: {{raw_error}}"
}
},
"FilePickerIndex": {
@@ -50,11 +50,11 @@
}
},
"MultiplePluginsInstallModal": {
"confirm": "De certeza que queres fazer as seguintes alterações?",
"confirm": "Tens a certeza de que pretendes fazer as seguintes alterações?",
"description": {
"install": "Instalar {{name}} {{version}}",
"reinstall": "Reinstalar {{name}} {{version}}",
"update": "Actualizar {{name}} para {{version}}"
"update": "Atualizar {{name}} para {{version}}"
},
"ok_button": {
"idle": "Confirmar",
@@ -70,15 +70,15 @@
"reinstall_many": "Reinstalar {{count}} plugins",
"reinstall_one": "Reinstalar 1 plugin",
"reinstall_other": "Reinstalar {{count}} plugins",
"update_many": "Actualizar {{count}} plugins",
"update_one": "Actualizar 1 plugin",
"update_other": "Actualizar {{count}} plugins"
"update_many": "Atualizar {{count}} plugins",
"update_one": "Atualizar 1 plugin",
"update_other": "Atualizar {{count}} plugins"
}
},
"PluginCard": {
"plugin_full_access": "Este plugin tem acesso total à tua Steam Deck.",
"plugin_full_access": "Este plugin tem acesso total ao teu Steam Deck.",
"plugin_install": "Instalar",
"plugin_no_desc": "Não tem descrição.",
"plugin_no_desc": "Sem descrição fornecida.",
"plugin_version_label": "Versão do plugin"
},
"PluginInstallModal": {
@@ -88,7 +88,7 @@
"desc": "De certeza que queres instalar {{artifact}} {{version}}?",
"title": "Instalar {{artifact}}"
},
"no_hash": "Este plugin não tem um hash, estás a instalá-lo por tua conta e risco.",
"no_hash": "Este plugin não tem uma hash, estás a instalá-lo por tua conta e risco.",
"reinstall": {
"button_idle": "Reinstalar",
"button_processing": "Reinstalação em curso",
@@ -96,24 +96,26 @@
"title": "Reinstalar {{artifact}}"
},
"update": {
"button_idle": "Actualizar",
"button_processing": "Actualização em curso",
"desc": "De certeza que queres actualizar {{artifact}} {{version}}?",
"title": "Actualizar {{artifact}}"
"button_idle": "Atualizar",
"button_processing": "Atualização em curso",
"desc": "De certeza que queres atualizar {{artifact}} {{version}}?",
"title": "Atualizar {{artifact}}"
}
},
"PluginListIndex": {
"freeze": "Congelar atualizações",
"hide": "Acesso rápido: Ocultar",
"no_plugin": "Nenhum plugin instalado!",
"plugin_actions": "Operações de plugin",
"reinstall": "Reinstalar",
"reload": "Recarregar",
"show": "Acesso rápido: Mostrar",
"unfreeze": "Permitir atualizações",
"uninstall": "Desinstalar",
"update_all_many": "Actualizar {{count}} plugins",
"update_all_one": "Actualizar 1 plugin",
"update_all_other": "Actualizar {{count}} plugins",
"update_to": "Actualizar para {{name}}"
"update_all_many": "Atualizar {{count}} plugins",
"update_all_one": "Atualizar 1 plugin",
"update_all_other": "Atualizar {{count}} plugins",
"update_to": "Atualizar para {{name}}"
},
"PluginListLabel": {
"hidden": "Oculto do menu de acesso rápido"
@@ -122,7 +124,7 @@
"decky_title": "Decky",
"decky_update_available": "Está disponível uma nova versão de {{tag_name}} !",
"error": "Erro",
"plugin_error_uninstall": "Houve uma excepção ao carregar {{name}}, como mostrado em cima. Pode ter sido porque o plugin requere a última versão do SteamUI. Verifica se há uma actualização disponível ou desinstala o plugin nas definições do Decky.",
"plugin_error_uninstall": "Ao carregar {{name}}, ocorreu uma exceção, como pode ser verificado acima. Pode ter sido porque o plugin requer a última versão do SteamUI. Verifica se há uma atualização disponível ou desinstala o plugin nas definições do Decky.",
"plugin_load_error": {
"message": "Erro ao carregar o plugin {{name}}",
"toast": "Erro ao carregar {{name}}"
@@ -133,7 +135,7 @@
"title": "Desinstalar {{name}}"
},
"plugin_update_many": "{{count}} plugins têm actualizações disponíveis!",
"plugin_update_one": "1 plugin tem actualizações disponíveis!",
"plugin_update_one": "1 plugin tem atualizações disponíveis!",
"plugin_update_other": "{{count}} plugins têm actualizações disponíveis!"
},
"PluginView": {
@@ -143,34 +145,34 @@
},
"RemoteDebugging": {
"remote_cef": {
"desc": "Permitir acesso não autenticado ao debugger do CEF a qualquer pessoa na tua rede",
"label": "Permitir debugging remoto do CEF"
"desc": "Permitir acesso não autenticado ao depurador do CEF a qualquer pessoa na tua rede",
"label": "Permitir Depuração Remota do CEF"
}
},
"SettingsDeveloperIndex": {
"cef_console": {
"button": "Abrir consola",
"desc": "Abre a consola do CEF. Só é útil para efeitos de debugging. Pode ser perigosa e só deve ser usada se és um desenvolvedor de plugins, ou se foste aqui indicado por um desenvolvedor.",
"desc": "Abre a Consola CEF. Apenas útil para fins de depuração. O conteúdo aqui presente pode ser perigoso e só devem ser usadas se fores um desenvolvedor de plugins ou se fores direcionado para aqui por um.",
"label": "Consola CEF"
},
"header": "Outros",
"react_devtools": {
"desc": "Permite a coneão a um computador que está a correr React DevTools. Mudar esta definição vai recarregar o Steam. Define o endereço de IP antes de activar.",
"desc": "Permite a conexão a um computador a correr o React DevTools. Alterar esta definição irá recarregar o Steam. Define o endereço IP antes de ativar.",
"ip_label": "IP",
"label": "Activar React DevTools"
"label": "Ativar React DevTools"
},
"third_party_plugins": {
"button_install": "Instalar",
"button_zip": "Navegar",
"header": "Plugins de terceiros",
"label_desc": "URl",
"label_url": "Instalar plugin a partir dum URL",
"label_zip": "Instalar plugin a partir dum ficheiro ZIP"
"label_desc": "URL",
"label_url": "Instalar plugin a partir de um URL",
"label_zip": "Instalar plugin a partir de um ficheiro ZIP"
},
"valve_internal": {
"desc1": "Activa o menu interno de programador da Valve.",
"desc2": "Não toques em nada deste menu se não souberes a sua função.",
"label": "Activar menu interno da Valve"
"desc1": "Ativa o menu interno de programador da Valve.",
"desc2": "Não toques em nada neste menu, a menos que saibas o que faz.",
"label": "Cativar menu interno da Valve"
}
},
"SettingsGeneralIndex": {
@@ -193,17 +195,27 @@
"header": "Outros"
},
"updates": {
"header": "Actualizações"
"header": "Atualizações"
}
},
"SettingsIndex": {
"developer_title": "Programador",
"general_title": "Geral",
"plugins_title": "Plugins"
"plugins_title": "Plugins",
"testing_title": "Testes"
},
"Store": {
"download_progress_info": {
"download_zip": "A transferir o plugin",
"increment_count": "A incrementar a contagem de transferências",
"installing_plugin": "A instalar o plugin",
"open_zip": "A abrir o ficheiro zip",
"parse_zip": "A processar o ficheiro zip",
"start": "A inicializar",
"uninstalling_previous": "A desinstalar a cópia anterior"
},
"store_contrib": {
"desc": "Se queres contribuir com um novo plugin, vai ao repositório SteamDeckHomebrew/decky-plugin-template no GitHub. No README, podes encontrar mais informação sobre desenvolvimento e distribuição.",
"desc": "Se quiseres contribuir para a Loja de Plugins do Decky, consulta o repositório SteamDeckHomebrew/decky-plugin-template no GitHub. Encontras informações sobre desenvolvimento e distribuição no README.",
"label": "Contribuir"
},
"store_filter": {
@@ -215,21 +227,25 @@
},
"store_sort": {
"label": "Ordenar",
"label_def": "Última actualização (mais recente)"
"label_def": "Última atualização (mais recente)"
},
"store_source": {
"desc": "O código fonte de cada plugin está disponível no repositório SteamDeckHomebrew/decky-plugin-database no GitHub.",
"desc": "Todo o código-fonte dos plugins está disponível no repositório SteamDeckHomebrew/decky-plugin-database no GitHub.",
"label": "Código fonte"
},
"store_tabs": {
"about": "Sobre",
"alph_asce": "Alfabeticamente (Z-A)",
"alph_desc": "Alfabeticamente (A-Z)",
"date_asce": "Mais Antigos Primeiro",
"date_desc": "Mais Recentes Primeiro",
"downloads_asce": "Menos Transferidos Primeiro",
"downloads_desc": "Mais Transferidos Primeiro",
"title": "Navegar"
},
"store_testing_cta": "Testa novos plugins e ajuda a equipa do Decky Loader!",
"store_testing_warning": {
"desc": "Pode usar esta versão da loja para testar versões experimentais de plugins. Certifique-se de deixar feedback no GitHub para que o plugin possa ser atualizado para todos os utilizadores.",
"desc": "Podes utilizar este canal da loja para testar versões de plugins de última geração. Não te esqueças de deixar o teufeedback no GitHub para que o plugin possa ser atualizado para todos os utilizadores.",
"label": "Bem-vindo ao Canal de Testes da Loja"
}
},
@@ -240,28 +256,35 @@
},
"store_channel": {
"custom": "Personalizada",
"default": "Standard",
"label": "Canal de loja",
"testing": "Em teste"
"default": "Padrão",
"label": "Canal da loja",
"testing": "Em testes"
}
},
"Testing": {
"download": "Transferir",
"error": "Erro ao instalar PR",
"header": "As seguintes versões do Decky Loader estão construidas a partir de Pull Requests de terceiros. A equipa do Decky Loader não verificou as sua funcionalidade ou segurança e as mesmas podem estar desatualizados.",
"loading": "A carregar Pull Requests abertos...",
"start_download_toast": "A descarregar PR #{{id}}"
},
"TitleView": {
"decky_store_desc": "Abrir a Loja Decky",
"settings_desc": "Abrir as Definições Decky"
},
"Updater": {
"decky_updates": "Actualizações do Decky",
"no_patch_notes_desc": "sem registo de alterações desta versão",
"patch_notes_desc": "Registo de alterações",
"decky_updates": "Atualizações do Decky",
"no_patch_notes_desc": "sem notas de atualizações para esta versão",
"patch_notes_desc": "Notas de atualizações",
"updates": {
"check_button": "Procurar actualizações",
"checking": "Busca de actualizações em curso",
"cur_version": "Versão actual: {{ver}}",
"install_button": "Instalar actualização",
"label": "Actualizações",
"lat_version": "Actualizado: a correr {{ver}}",
"reloading": "Recarregar",
"updating": "Actualização em curso"
"check_button": "Procurar atualizações",
"checking": "A verificar atualizações",
"cur_version": "Versão atual: {{ver}}",
"install_button": "Instalar Atualização",
"label": "Atualizações",
"lat_version": "Atualizado: a executar {{ver}}",
"reloading": "Recarregando",
"updating": "Atualização em curso"
}
}
}
+15 -1
View File
@@ -52,7 +52,9 @@
"MultiplePluginsInstallModal": {
"confirm": "Вы уверены, что хотите внести следующие изменения?",
"description": {
"downgrade": "Откатить {{name}} до {{version}}",
"install": "Установить {{name}} {{version}}",
"overwrite": "Заменить {{name}} на {{version}}",
"reinstall": "Переустановить {{name}} {{version}}",
"update": "Обновить с {{name}} на {{version}}"
},
@@ -61,6 +63,9 @@
"loading": "В процессе"
},
"title": {
"downgrade_few": "Откатить {{count}} плагинов",
"downgrade_many": "Откатить {{count}} плагинов",
"downgrade_one": "Откатить 1 плагин",
"install_few": "Установить {{count}} плагинов",
"install_many": "Установить {{count}} плагинов",
"install_one": "Установить {{count}} плагин",
@@ -76,12 +81,21 @@
}
},
"PluginCard": {
"plugin_downgrade": "Откат",
"plugin_full_access": "Этот плагин имеет полный доступ к вашему Steam Deck.",
"plugin_install": "Установить",
"plugin_no_desc": "Нет описания.",
"plugin_overwrite": "Замена",
"plugin_reinstall": "Переустановка",
"plugin_update": "Обновление",
"plugin_version_label": "Версия плагина"
},
"PluginInstallModal": {
"downgrade": {
"button_idle": "Откат",
"desc": "Вы уверенны, что хотите откатить {{artifact}} до версии {{version}}?",
"title": "Откатить {{artifact}}"
},
"install": {
"button_idle": "Установить",
"button_processing": "Установка",
@@ -98,7 +112,7 @@
"update": {
"button_idle": "Обновить",
"button_processing": "Обновление",
"desc": "Вы уверены, что хотите обновить {{artifact}} {{version}}?",
"desc": "Вы уверены, что хотите обновить {{artifact}} до версии {{version}}?",
"title": "Обновить {{artifact}}"
}
},
+240 -19
View File
@@ -8,9 +8,9 @@
}
},
"Developer": {
"5secreload": "Omladdning på 5 sekunder",
"disabling": "Inaktivera React DevTools",
"enabling": "Aktivera React DevTools"
"5secreload": "Uppdaterar om 5 sekunder",
"disabling": "Inaktiverar React DevTools",
"enabling": "Aktiverar React DevTools"
},
"DropdownMultiselect": {
"button": {
@@ -29,19 +29,19 @@
"select": "Välj denna fil"
},
"files": {
"all_files": "Alla Filer",
"all_files": "Alla filer",
"file_type": "Filtyp",
"show_hidden": "Visa dolda filer"
},
"filter": {
"created_asce": "Skapad (Äldst)",
"created_asce": "Skapad (äldst)",
"created_desc": "Skapad (nyast)",
"modified_asce": "Modifierad (Äldst)",
"modified_asce": "Modifierad (äldst)",
"modified_desc": "Modifierad (nyaste)",
"name_asce": "Z-A",
"name_desc": "A-Z",
"size_asce": "Storlek (minst)",
"size_desc": "Storlek (Störst)"
"size_desc": "Storlek (störst)"
},
"folder": {
"label": "Mapp",
@@ -52,7 +52,9 @@
"MultiplePluginsInstallModal": {
"confirm": "Är du säker på att du vill göra följande ändringar?",
"description": {
"downgrade": "Nedgradera {{name}} till {{version}}",
"install": "Installera {{name}} {{version}}",
"overwrite": "Skriv över {{name}} med {{version}}",
"reinstall": "Installera om {{name}} {{version}}",
"update": "Uppdatera {{name}} {{version}}"
},
@@ -61,26 +63,245 @@
"loading": "Arbetar"
},
"title": {
"downgrade_one": "Nedgradera 1 insticksmodul",
"downgrade_other": "Nedgradera {{count}} insticksmoduler",
"install_one": "Install 1 tillägg",
"install_other": "Installerar {{count}} tillägg",
"mixed_one": "",
"mixed_other": "",
"reinstall_one": "",
"reinstall_other": "",
"update_one": "",
"update_other": ""
"mixed_one": "Ändra {{count}} insticksmodul",
"mixed_other": "Ändra {{count}} insticksmoduler",
"overwrite_one": "Skriv över 1 insticksmodul",
"overwrite_other": "Skriv över {{count}} insticksmoduler",
"reinstall_one": "Installera om 1 insticksmodul",
"reinstall_other": "Installera om {{count}} insticksmoduler",
"update_one": "Uppdatera 1 insticksmodul",
"update_other": "Uppdatera {{count}} insticksmoduler"
}
},
"PluginCard": {
"plugin_downgrade": "Nedgradera",
"plugin_full_access": "Denna insticksmodul har full åtkomst till din Steam Deck.",
"plugin_install": "Installera",
"plugin_no_desc": "Ingen beskrivning angavs.",
"plugin_overwrite": "Skriv över",
"plugin_reinstall": "Installera om",
"plugin_update": "Uppdatera",
"plugin_version_label": "Version av insticksmodul"
},
"PluginInstallModal": {
"downgrade": {
"button_idle": "Nedgradera",
"button_processing": "Nedgraderar",
"desc": "Är du säker på att du vill nedgradera {{artifact}} till version {{version}}?",
"title": "Nedgradera {{artifact}}"
},
"install": {
"button_idle": "Installera",
"button_processing": "Installerar",
"desc": "Är du säker på att du vill installera {{artifact}} {{version}}?",
"title": "Installera {{artifact}}"
},
"no_hash": "Denna insticksmodul har inte någon kontrollsumma. Du installerar den på egen risk.",
"not_installed": "(inte installerad)",
"overwrite": {
"button_idle": "Skriv över",
"button_processing": "Skriver över",
"desc": "Är du säker på att du vill skriva över {{artifact}} med version {{version}}?",
"title": "Skriv över {{artifact}}"
},
"reinstall": {
"button_idle": "Installera om",
"button_processing": "Installerar om",
"desc": "Är du säker på att du vill installera om {{artifact}} {{version}}?",
"title": "Installera om {{artifact}}"
},
"update": {
"button_idle": "Uppdatera",
"button_processing": "Uppdaterar",
"desc": "Är du säker på att du vill uppdatera {{artifact}} till version {{version}}?",
"title": "Uppdatera {{artifact}}"
}
},
"PluginListIndex": {
"update_all_one": "",
"update_all_other": ""
"freeze": "Frys uppdateringar",
"hide": "Snabbåtkomst: Dölj",
"no_plugin": "Inga insticksmoduler installerade!",
"plugin_actions": "Åtgärder för insticksmodul",
"reinstall": "Installera om",
"reload": "Uppdatera",
"show": "Snabbåtkomst: Visa",
"unfreeze": "Tillåt uppdateringar",
"uninstall": "Avinstallera",
"update_all_one": "Uppdatera 1 insticksmodul",
"update_all_other": "Uppdatera {{count}} insticksmoduler",
"update_to": "Uppdatera till {{name}}"
},
"PluginListLabel": {
"hidden": "Dold från snabbåtkomstmenyn"
},
"PluginLoader": {
"plugin_update_one": "",
"plugin_update_other": ""
"decky_title": "Decky",
"decky_update_available": "Uppdatering till {{tag_name}} finns!",
"error": "Fel",
"plugin_error_uninstall": "Inläsning av {{name}} orsakade ett undantag som visas nedan. Detta betyder oftast att insticksmodulen kräver en uppdatering för den nya versionen av SteamUI. Kontrollera om en uppdatering finns eller fundera på att ta bort den i Decky-inställningarna, under insticksmoduler.",
"plugin_load_error": {
"message": "Fel vid inläsning av insticksmodulen {{name}}",
"toast": "Fel vid inläsning {{name}}"
},
"plugin_uninstall": {
"button": "Avinstallera",
"desc": "Är du säker på att du vill avinstallera {{name}}?",
"title": "Avinstallera {{name}}"
},
"plugin_update_one": "Uppdateringar tillgängliga för 1 insticksmodul!",
"plugin_update_other": "Uppdateringar tillgängliga för {{count}} insticksmoduler!"
},
"PluginView": {
"hidden_one": "",
"hidden_other": ""
"hidden_one": "1 insticksmodul är dold från denna lista",
"hidden_other": "{{count}} insticksmoduler är dolda från denna lista"
},
"RemoteDebugging": {
"remote_cef": {
"desc": "Tillåt oautentiserad åtkomst till CEF-felsökaren till vem som helst i ditt nätverk",
"label": "Tillåt fjärr-CEF-felsökning"
}
},
"SettingsDeveloperIndex": {
"cef_console": {
"button": "Öppna konsoll",
"desc": "Öppnar CEF-konsollen. Endast användbart för felsökningssyften. Saker här är potentiellt farliga och bör endast användas om du utvecklar insticksmoduler.",
"label": "CEF-konsoll"
},
"header": "Övrigt",
"react_devtools": {
"desc": "Aktiverar anslutning till en dator som kör React DevTools. Ändring av denna inställning kommer att läsa om Steam. Ställ in IP-adressen innan du aktiverar.",
"ip_label": "IP",
"label": "Aktivera React DevTools"
},
"third_party_plugins": {
"button_install": "Installera",
"button_zip": "Bläddra",
"header": "Insticksmoduler från tredjepart",
"label_desc": "URL",
"label_url": "Installera insticksmodul från URL",
"label_zip": "Installera insticksmodul från ZIP-fil"
},
"valve_internal": {
"desc1": "Aktiverar Valves interna utvecklarmeny.",
"desc2": "Rör ingenting i denna meny såvida inte du vet vad du gör.",
"label": "Aktivera Valves interna"
}
},
"SettingsGeneralIndex": {
"about": {
"decky_version": "Decky-version",
"header": "Om"
},
"beta": {
"header": "Delta i betatestning"
},
"developer_mode": {
"label": "Utvecklarläge"
},
"notifications": {
"decky_updates_label": "Uppdatering till Decky finns tillgänglig",
"header": "Aviseringar",
"plugin_updates_label": "Uppdateringar till insticksmoduler tillgängliga"
},
"other": {
"header": "Övrigt"
},
"updates": {
"header": "Uppdateringar"
}
},
"SettingsIndex": {
"developer_title": "Utvecklare",
"general_title": "Allmänt",
"plugins_title": "Insticksmoduler",
"testing_title": "Testning"
},
"Store": {
"download_progress_info": {
"download_remote": "Hämtar externa binärfiler",
"download_zip": "Hämtar insticksmodul",
"increment_count": "Ökar hämtningsantal",
"installing_plugin": "Installerar insticksmodul",
"open_zip": "Öppnar zip-fil",
"parse_zip": "Tolkar zip-fil",
"start": "Initierar",
"uninstalling_previous": "Avinstallerar tidigare kopia"
},
"store_contrib": {
"desc": "Om du vill bidra till Deckys insticksmoduler, titta in i förrådet SteamDeckHomebrew/decky-plugin-template på GitHub. Information om utveckling och distribution finns tillgänglig i filen README.",
"label": "Bidra"
},
"store_filter": {
"label": "Filtrera",
"label_def": "Alla"
},
"store_search": {
"label": "Sök"
},
"store_sort": {
"label": "Sortera",
"label_def": "Senast uppdaterad (Senaste)"
},
"store_source": {
"desc": "All källkod för insticksmoduler finns tillgänglig i förrådet SteamDeckHomebrew/decky-plugin-database på GitHub.",
"label": "Källkod"
},
"store_tabs": {
"about": "Om",
"alph_asce": "Alfabetisk (Z till A)",
"alph_desc": "Alfabetisk (A till Z)",
"date_asce": "Äldsta först",
"date_desc": "Senaste först",
"downloads_asce": "Minst hämtade först",
"downloads_desc": "Mest hämtade först",
"title": "Bläddra"
},
"store_testing_cta": "Överväg att testa nya insticksmoduler för att hjälpa Decky Loader-teamet!",
"store_testing_warning": {
"desc": "Du kan använda denna kanal för att testa de absolut senaste versionerna. Tänk på att ge återkoppling på GitHub så att insticksmodulen kan uppdateras för alla användare.",
"label": "Välkommen till testkanalen"
}
},
"StoreSelect": {
"custom_store": {
"label": "Anpassad affär",
"url_label": "URL"
},
"store_channel": {
"custom": "Anpassad",
"default": "Standard",
"label": "Affärskanal",
"testing": "Testning"
}
},
"Testing": {
"download": "Hämta",
"error": "Fel vid installation av PR",
"header": "Följande versioner av Decky Loader byggs från öppnade Pull Requests från tredjepart. Decky Loader-teamet har inte verifierat deras funktionalitet eller säkerhet och de kan vara utdaterade.",
"loading": "Läser in öppnade Pull Requests...",
"start_download_toast": "Hämtar PR #{{id}}"
},
"TitleView": {
"decky_store_desc": "Öppna Decky-affär",
"settings_desc": "Öppna Decky-inställningar"
},
"Updater": {
"decky_updates": "Decky-uppdateringar",
"no_patch_notes_desc": "inga patch-anteckningar för denna version",
"patch_notes_desc": "Patch-anteckningar",
"updates": {
"check_button": "Leta efter uppdateringar",
"checking": "Letar",
"cur_version": "Aktuell version: {{ver}}",
"install_button": "Installera uppdatering",
"label": "Uppdateringar",
"lat_version": "Uppdaterad: kör {{ver}}",
"reloading": "Läser om",
"updating": "Uppdaterar"
}
}
}
@@ -11,7 +11,7 @@ logger = logging.getLogger("localplatform")
# subprocess._ENV
ENV = Mapping[str, str]
ProcessIO = int | IO[Any] | None
async def run(args: list[str], stdin: ProcessIO = DEVNULL, stdout: ProcessIO = PIPE, stderr: ProcessIO = PIPE, env: ENV | None = None) -> tuple[Process, bytes | None, bytes | None]:
async def run(args: list[str], stdin: ProcessIO = DEVNULL, stdout: ProcessIO = PIPE, stderr: ProcessIO = PIPE, env: ENV | None = {"LD_LIBRARY_PATH": ""}) -> tuple[Process, bytes | None, bytes | None]:
proc = await create_subprocess_exec(args[0], *(args[1:]), stdin=stdin, stdout=stdout, stderr=stderr, env=env)
proc_stdout, proc_stderr = await proc.communicate()
return (proc, proc_stdout, proc_stderr)
@@ -59,8 +59,6 @@ def chown(path : str, user : UserType = UserType.HOST_USER, recursive : bool =
user_str = _get_user()+":"+_get_user_group()
elif user == UserType.EFFECTIVE_USER:
user_str = _get_effective_user()+":"+_get_effective_user_group()
elif user == UserType.ROOT:
user_str = "root:root"
else:
raise Exception("Unknown User Type")
@@ -87,7 +85,7 @@ def chmod(path : str, permissions : int, recursive : bool = True) -> bool:
return True
def folder_owner(path : str) -> UserType|None:
def file_owner(path : str) -> UserType|None:
user_owner = _get_user_owner(path)
if (user_owner == _get_user()):
@@ -106,13 +104,14 @@ def get_home_path(user : UserType = UserType.HOST_USER) -> str:
user_name = _get_user()
elif user == UserType.EFFECTIVE_USER:
user_name = _get_effective_user()
elif user == UserType.ROOT:
pass
else:
raise Exception("Unknown User Type")
return pwd.getpwnam(user_name).pw_dir
def get_effective_username() -> str:
return _get_effective_user()
def get_username() -> str:
return _get_user()
@@ -121,8 +120,8 @@ def setgid(user : UserType = UserType.HOST_USER):
if user == UserType.HOST_USER:
user_id = _get_user_group_id()
elif user == UserType.ROOT:
pass
elif user == UserType.EFFECTIVE_USER:
pass # we already are
else:
raise Exception("Unknown user type")
@@ -133,8 +132,8 @@ def setuid(user : UserType = UserType.HOST_USER):
if user == UserType.HOST_USER:
user_id = _get_user_id()
elif user == UserType.ROOT:
pass
elif user == UserType.EFFECTIVE_USER:
pass # we already are
else:
raise Exception("Unknown user type")
@@ -146,6 +145,7 @@ async def service_active(service_name : str) -> bool:
async def service_restart(service_name : str, block : bool = True) -> bool:
await run(["systemctl", "daemon-reload"])
logger.info("Systemd reload done.")
cmd = ["systemctl", "restart", service_name]
if not block:
@@ -272,7 +272,7 @@ async def close_cef_socket():
logger.info(f"Closing CEF socket with PID {pid} and FD {fd}")
# Use gdb to inject a close() call for the socket fd into steamwebhelper
gdb_ret, _, _ = await run(["gdb", "--nx", "-p", pid, "--batch", "--eval-command", f"call (int)close({fd})"], env={"LD_LIBRARY_PATH": ""})
gdb_ret, _, _ = await run(["gdb", "--nx", "-p", pid, "--batch", "--eval-command", f"call (int)close({fd})"])
if gdb_ret.returncode != 0:
logger.error(f"Failed to close CEF socket with gdb! return code: {str(gdb_ret.returncode)}", exc_info=True)
@@ -7,7 +7,7 @@ def chown(path : str, user : UserType = UserType.HOST_USER, recursive : bool =
def chmod(path : str, permissions : int, recursive : bool = True) -> bool:
return True # Stubbed
def folder_owner(path : str) -> UserType|None:
def file_owner(path : str) -> UserType|None:
return UserType.HOST_USER # Stubbed
def get_home_path(user : UserType = UserType.HOST_USER) -> str:
@@ -34,6 +34,9 @@ async def service_restart(service_name : str, block : bool = True) -> bool:
return True # Stubbed
def get_effective_username() -> str:
return os.getlogin()
def get_username() -> str:
return os.getlogin()
+1 -1
View File
@@ -50,7 +50,7 @@ def chown_plugin_dir():
if not path.exists(plugin_path): # For safety, create the folder before attempting to do anything with it
mkdir_as_user(plugin_path)
if not chown(plugin_path, UserType.HOST_USER) or not chmod(plugin_path, 555):
if not chown(plugin_path, UserType.EFFECTIVE_USER, False) or not chmod(plugin_path, 755, False):
logger.error(f"chown/chmod exited with a non-zero exit code")
if get_chown_plugin_path() == True:
+20 -4
View File
@@ -8,7 +8,8 @@ from traceback import format_exc
from .sandboxed_plugin import SandboxedPlugin
from .messages import MethodCallRequest, SocketMessageType
from ..enums import PluginLoadType
from ..enums import PluginLoadType, UserType
from ..localplatform.localplatform import file_owner, chown, chmod, get_chown_plugin_path
from ..localplatform.localsocket import LocalSocket
from ..helpers import get_homebrew_path, mkdir_as_user
@@ -26,9 +27,12 @@ class PluginWrapper:
self.load_type = PluginLoadType.LEGACY_EVAL_IIFE.value
json = load(open(path.join(plugin_path, plugin_directory, "plugin.json"), "r", encoding="utf-8"))
if path.isfile(path.join(plugin_path, plugin_directory, "package.json")):
package_json = load(open(path.join(plugin_path, plugin_directory, "package.json"), "r", encoding="utf-8"))
plugin_dir_path = path.join(plugin_path, plugin_directory)
plugin_json_path = path.join(plugin_dir_path, "plugin.json")
json = load(open(plugin_json_path, "r", encoding="utf-8"))
if path.isfile(path.join(plugin_dir_path, "package.json")):
package_json = load(open(path.join(plugin_dir_path, "package.json"), "r", encoding="utf-8"))
self.version = package_json["version"]
if ("type" in package_json and package_json["type"] == "module"):
self.load_type = PluginLoadType.ESMODULE_V1.value
@@ -37,11 +41,23 @@ class PluginWrapper:
self.author = json["author"]
self.flags = json["flags"]
self.api_version = json["api_version"] if "api_version" in json else 0
self.disabled = False
self.passive = not path.isfile(self.file)
self.log = getLogger("plugin")
if get_chown_plugin_path():
# ensure plugin folder ownership
if file_owner(plugin_dir_path) != UserType.EFFECTIVE_USER:
chown(plugin_dir_path, UserType.EFFECTIVE_USER if "root" in self.flags else UserType.HOST_USER, True)
chown(plugin_dir_path, UserType.EFFECTIVE_USER, False)
chmod(plugin_dir_path, 755, True)
# fix plugin.json permissions
if file_owner(plugin_json_path) != UserType.EFFECTIVE_USER:
chown(plugin_json_path, UserType.EFFECTIVE_USER, False)
chmod(plugin_json_path, 755, False)
self.sandboxed_plugin = SandboxedPlugin(self.name, self.passive, self.flags, self.file, self.plugin_directory, self.plugin_path, self.version, self.author, self.api_version)
self.proc: Process | None = None
self._socket = LocalSocket()
@@ -13,7 +13,7 @@ from .messages import SocketResponseDict, SocketMessageType
from ..localplatform.localsocket import LocalSocket
from ..localplatform.localplatform import setgid, setuid, get_username, get_home_path, ON_LINUX
from ..enums import UserType
from .. import helpers, settings, injector # pyright: ignore [reportUnusedImport]
from .. import helpers
from typing import List, TypeVar, Any
@@ -61,10 +61,10 @@ class SandboxedPlugin:
if self.passive:
return
setgid(UserType.ROOT if "root" in self.flags else UserType.HOST_USER)
setuid(UserType.ROOT if "root" in self.flags else UserType.HOST_USER)
setgid(UserType.EFFECTIVE_USER if "root" in self.flags else UserType.HOST_USER)
setuid(UserType.EFFECTIVE_USER if "root" in self.flags else UserType.HOST_USER)
# export a bunch of environment variables to help plugin developers
environ["HOME"] = get_home_path(UserType.ROOT if "root" in self.flags else UserType.HOST_USER)
environ["HOME"] = get_home_path(UserType.EFFECTIVE_USER if "root" in self.flags else UserType.HOST_USER)
environ["USER"] = "root" if "root" in self.flags else get_username()
environ["DECKY_VERSION"] = helpers.get_loader_version()
environ["DECKY_USER"] = get_username()
+3 -3
View File
@@ -1,7 +1,7 @@
from json import dump, load
from os import mkdir, path, listdir, rename
from typing import Any, Dict
from .localplatform.localplatform import chown, folder_owner, get_chown_plugin_path
from .localplatform.localplatform import chown, file_owner, get_chown_plugin_path
from .enums import UserType
from .helpers import get_homebrew_path
@@ -28,8 +28,8 @@ class SettingsManager:
#If the owner of the settings directory is not the user, then set it as the user:
expected_user = UserType.HOST_USER if get_chown_plugin_path() else UserType.ROOT
if folder_owner(settings_directory) != expected_user:
expected_user = UserType.HOST_USER if get_chown_plugin_path() else UserType.EFFECTIVE_USER
if file_owner(settings_directory) != expected_user:
chown(settings_directory, expected_user, False)
self.settings: Dict[str, Any] = {}
+1 -4
View File
@@ -14,7 +14,6 @@ import zipfile
from aiohttp import ClientSession
from . import helpers
from .injector import get_gamepadui_tab
from .settings import SettingsManager
if TYPE_CHECKING:
from .main import PluginManager
@@ -142,8 +141,6 @@ class Updater:
async def download_decky_binary(self, download_url: str, version: str, is_zip: bool = False, size_in_bytes: int | None = None):
download_filename = "PluginLoader" if ON_LINUX else "PluginLoader.exe"
download_temp_filename = download_filename + ".new"
tab = await get_gamepadui_tab()
await tab.open_websocket()
if size_in_bytes == None:
size_in_bytes = 26214400 # 25MiB, a reasonable overestimate (19.6MiB as of 2024/02/25)
@@ -186,7 +183,6 @@ class Updater:
logger.info("Updated loader installation.")
await self.context.ws.emit("updater/finish_download")
await tab.close_websocket()
await self.do_restart()
async def do_update(self):
@@ -244,6 +240,7 @@ class Updater:
await self.download_decky_binary(download_url, version, size_in_bytes=size_in_bytes)
async def do_restart(self):
logger.info("Restarting loader for update.")
await service_restart("plugin_loader", block=False)
async def do_shutdown(self):
+22 -2
View File
@@ -80,6 +80,8 @@ class Utilities:
context.ws.add_route("utilities/restart_webhelper", self.restart_webhelper)
context.ws.add_route("utilities/close_cef_socket", self.close_cef_socket)
context.ws.add_route("utilities/_call_legacy_utility", self._call_legacy_utility)
context.ws.add_route("utilities/enable_plugin", self.enable_plugin)
context.ws.add_route("utilities/disable_plugin", self.disable_plugin)
context.web_app.add_routes([
post("/methods/{method_name}", self._handle_legacy_server_method_call)
@@ -214,7 +216,7 @@ class Utilities:
async def http_request_legacy(self, method: str, url: str, extra_opts: Any = {}, timeout: int | None = None):
async with ClientSession() as web:
res = await web.request(method, url, ssl=helpers.get_ssl_context(), timeout=timeout, **extra_opts)
res = await web.request(method, url, ssl=helpers.get_ssl_context(), timeout=timeout, **extra_opts) # type: ignore
text = await res.text()
return {
"status": res.status,
@@ -390,7 +392,6 @@ class Utilities:
"total": len(all),
}
# Based on https://stackoverflow.com/a/46422554/13174603
def start_rdt_proxy(self, ip: str, port: int):
async def pipe(reader: StreamReader, writer: StreamWriter):
@@ -474,3 +475,22 @@ class Utilities:
async def get_tab_id(self, name: str):
return (await get_tab(name)).id
async def disable_plugin(self, name: str):
disabled_plugins: List[str] = await self.get_setting("disabled_plugins", [])
if name not in disabled_plugins:
disabled_plugins.append(name)
await self.set_setting("disabled_plugins", disabled_plugins)
await self.context.plugin_loader.plugins[name].stop()
await self.context.ws.emit("loader/disable_plugin", name)
async def enable_plugin(self, name: str):
disabled_plugins: List[str] = await self.get_setting("disabled_plugins", [])
if name in disabled_plugins:
disabled_plugins.remove(name)
await self.set_setting("disabled_plugins", disabled_plugins)
plugin = self.context.plugin_loader.plugins[name]
plugin.start()
await self.context.plugin_loader.dispatch_plugin(plugin.name, plugin.version, plugin.load_type)
+1 -3
View File
@@ -7,7 +7,7 @@ from aiohttp.web import Application, WebSocketResponse, Request, Response, get
from enum import IntEnum
from typing import Callable, Coroutine, Dict, Any, cast, TypeVar
from typing import Callable, Coroutine, Dict, Any, cast
from traceback import format_exc
@@ -29,8 +29,6 @@ class WSMessageExtra(WSMessage):
# see wsrouter.ts for typings
DataType = TypeVar("DataType")
Route = Callable[..., Coroutine[Any, Any, Any]]
class WSRouter:
+72 -36
View File
@@ -1,4 +1,4 @@
# This file is automatically @generated by Poetry 1.8.5 and should not be changed by hand.
# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
[[package]]
name = "aiohappyeyeballs"
@@ -6,6 +6,7 @@ version = "2.4.3"
description = "Happy Eyeballs for asyncio"
optional = false
python-versions = ">=3.8"
groups = ["main"]
files = [
{file = "aiohappyeyeballs-2.4.3-py3-none-any.whl", hash = "sha256:8a7a83727b2756f394ab2895ea0765a0a8c475e3c71e98d43d76f22b4b435572"},
{file = "aiohappyeyeballs-2.4.3.tar.gz", hash = "sha256:75cf88a15106a5002a8eb1dab212525c00d1f4c0fa96e551c9fbe6f09a621586"},
@@ -17,6 +18,7 @@ version = "3.10.11"
description = "Async http client/server framework (asyncio)"
optional = false
python-versions = ">=3.8"
groups = ["main"]
files = [
{file = "aiohttp-3.10.11-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:5077b1a5f40ffa3ba1f40d537d3bec4383988ee51fbba6b74aa8fb1bc466599e"},
{file = "aiohttp-3.10.11-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:8d6a14a4d93b5b3c2891fca94fa9d41b2322a68194422bef0dd5ec1e57d7d298"},
@@ -121,7 +123,7 @@ multidict = ">=4.5,<7.0"
yarl = ">=1.12.0,<2.0"
[package.extras]
speedups = ["Brotli", "aiodns (>=3.2.0)", "brotlicffi"]
speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.2.0) ; sys_platform == \"linux\" or sys_platform == \"darwin\"", "brotlicffi ; platform_python_implementation != \"CPython\""]
[[package]]
name = "aiohttp-cors"
@@ -129,6 +131,7 @@ version = "0.7.0"
description = "CORS support for aiohttp"
optional = false
python-versions = "*"
groups = ["main"]
files = [
{file = "aiohttp-cors-0.7.0.tar.gz", hash = "sha256:4d39c6d7100fd9764ed1caf8cebf0eb01bf5e3f24e2e073fda6234bc48b19f5d"},
{file = "aiohttp_cors-0.7.0-py3-none-any.whl", hash = "sha256:0451ba59fdf6909d0e2cd21e4c0a43752bc0703d33fc78ae94d9d9321710193e"},
@@ -143,6 +146,7 @@ version = "1.6"
description = "jinja2 template renderer for aiohttp.web (http server for asyncio)"
optional = false
python-versions = ">=3.8"
groups = ["main"]
files = [
{file = "aiohttp-jinja2-1.6.tar.gz", hash = "sha256:a3a7ff5264e5bca52e8ae547bbfd0761b72495230d438d05b6c0915be619b0e2"},
{file = "aiohttp_jinja2-1.6-py3-none-any.whl", hash = "sha256:0df405ee6ad1b58e5a068a105407dc7dcc1704544c559f1938babde954f945c7"},
@@ -158,6 +162,7 @@ version = "1.3.1"
description = "aiosignal: a list of registered asynchronous callbacks"
optional = false
python-versions = ">=3.7"
groups = ["main"]
files = [
{file = "aiosignal-1.3.1-py3-none-any.whl", hash = "sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17"},
{file = "aiosignal-1.3.1.tar.gz", hash = "sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc"},
@@ -172,6 +177,7 @@ version = "0.17.4"
description = "Python graph (network) package"
optional = false
python-versions = "*"
groups = ["dev"]
files = [
{file = "altgraph-0.17.4-py2.py3-none-any.whl", hash = "sha256:642743b4750de17e655e6711601b077bc6598dbfa3ba5fa2b2a35ce12b508dff"},
{file = "altgraph-0.17.4.tar.gz", hash = "sha256:1b5afbb98f6c4dcadb2e2ae6ab9fa994bbb8c1d75f4fa96d340f9437ae454406"},
@@ -183,6 +189,8 @@ version = "4.0.3"
description = "Timeout context manager for asyncio programs"
optional = false
python-versions = ">=3.7"
groups = ["main"]
markers = "python_version == \"3.10\""
files = [
{file = "async-timeout-4.0.3.tar.gz", hash = "sha256:4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f"},
{file = "async_timeout-4.0.3-py3-none-any.whl", hash = "sha256:7405140ff1230c310e51dc27b3145b9092d659ce68ff733fb0cefe3ee42be028"},
@@ -194,6 +202,7 @@ version = "23.2.0"
description = "Classes Without Boilerplate"
optional = false
python-versions = ">=3.7"
groups = ["main"]
files = [
{file = "attrs-23.2.0-py3-none-any.whl", hash = "sha256:99b87a485a5820b23b879f04c2305b44b951b502fd64be915879d77a7e8fc6f1"},
{file = "attrs-23.2.0.tar.gz", hash = "sha256:935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30"},
@@ -204,8 +213,8 @@ cov = ["attrs[tests]", "coverage[toml] (>=5.3)"]
dev = ["attrs[tests]", "pre-commit"]
docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier", "zope-interface"]
tests = ["attrs[tests-no-zope]", "zope-interface"]
tests-mypy = ["mypy (>=1.6)", "pytest-mypy-plugins"]
tests-no-zope = ["attrs[tests-mypy]", "cloudpickle", "hypothesis", "pympler", "pytest (>=4.3.0)", "pytest-xdist[psutil]"]
tests-mypy = ["mypy (>=1.6) ; platform_python_implementation == \"CPython\" and python_version >= \"3.8\"", "pytest-mypy-plugins ; platform_python_implementation == \"CPython\" and python_version >= \"3.8\""]
tests-no-zope = ["attrs[tests-mypy]", "cloudpickle ; platform_python_implementation == \"CPython\"", "hypothesis", "pympler", "pytest (>=4.3.0)", "pytest-xdist[psutil]"]
[[package]]
name = "certifi"
@@ -213,6 +222,7 @@ version = "2024.7.4"
description = "Python package for providing Mozilla's CA Bundle."
optional = false
python-versions = ">=3.6"
groups = ["main"]
files = [
{file = "certifi-2024.7.4-py3-none-any.whl", hash = "sha256:c198e21b1289c2ab85ee4e67bb4b4ef3ead0892059901a8d5b622f24a1101e90"},
{file = "certifi-2024.7.4.tar.gz", hash = "sha256:5a1e7645bc0ec61a09e26c36f6106dd4cf40c6db3a1fb6352b0244e7fb057c7b"},
@@ -224,6 +234,7 @@ version = "1.4.1"
description = "A list-like structure which implements collections.abc.MutableSequence"
optional = false
python-versions = ">=3.8"
groups = ["main"]
files = [
{file = "frozenlist-1.4.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:f9aa1878d1083b276b0196f2dfbe00c9b7e752475ed3b682025ff20c1c1f51ac"},
{file = "frozenlist-1.4.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:29acab3f66f0f24674b7dc4736477bcd4bc3ad4b896f5f45379a67bce8b96868"},
@@ -310,6 +321,7 @@ version = "3.7"
description = "Internationalized Domain Names in Applications (IDNA)"
optional = false
python-versions = ">=3.5"
groups = ["main"]
files = [
{file = "idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0"},
{file = "idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"},
@@ -317,13 +329,14 @@ files = [
[[package]]
name = "jinja2"
version = "3.1.5"
version = "3.1.6"
description = "A very fast and expressive template engine."
optional = false
python-versions = ">=3.7"
groups = ["main"]
files = [
{file = "jinja2-3.1.5-py3-none-any.whl", hash = "sha256:aba0f4dc9ed8013c424088f68a5c226f7d6097ed89b246d7749c2ec4175c6adb"},
{file = "jinja2-3.1.5.tar.gz", hash = "sha256:8fefff8dc3034e27bb80d67c671eb8a9bc424c0ef4c0826edbff304cceff43bb"},
{file = "jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67"},
{file = "jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d"},
]
[package.dependencies]
@@ -338,6 +351,8 @@ version = "1.16.3"
description = "Mach-O header analysis and editing"
optional = false
python-versions = "*"
groups = ["dev"]
markers = "sys_platform == \"darwin\""
files = [
{file = "macholib-1.16.3-py2.py3-none-any.whl", hash = "sha256:0e315d7583d38b8c77e815b1ecbdbf504a8258d8b3e17b61165c6feb60d18f2c"},
{file = "macholib-1.16.3.tar.gz", hash = "sha256:07ae9e15e8e4cd9a788013d81f5908b3609aa76f9b1421bae9c4d7606ec86a30"},
@@ -352,6 +367,7 @@ version = "2.1.5"
description = "Safely add untrusted strings to HTML/XML markup."
optional = false
python-versions = ">=3.7"
groups = ["main"]
files = [
{file = "MarkupSafe-2.1.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a17a92de5231666cfbe003f0e4b9b3a7ae3afb1ec2845aadc2bacc93ff85febc"},
{file = "MarkupSafe-2.1.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:72b6be590cc35924b02c78ef34b467da4ba07e4e0f0454a2c5907f473fc50ce5"},
@@ -421,6 +437,7 @@ version = "6.0.5"
description = "multidict implementation"
optional = false
python-versions = ">=3.7"
groups = ["main"]
files = [
{file = "multidict-6.0.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:228b644ae063c10e7f324ab1ab6b548bdf6f8b47f3ec234fef1093bc2735e5f9"},
{file = "multidict-6.0.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:896ebdcf62683551312c30e20614305f53125750803b614e9e6ce74a96232604"},
@@ -520,6 +537,7 @@ version = "1.9.1"
description = "Node.js virtual environment builder"
optional = false
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
groups = ["dev"]
files = [
{file = "nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9"},
{file = "nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f"},
@@ -531,6 +549,7 @@ version = "24.1"
description = "Core utilities for Python packages"
optional = false
python-versions = ">=3.8"
groups = ["main", "dev"]
files = [
{file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"},
{file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"},
@@ -542,6 +561,8 @@ version = "2023.2.7"
description = "Python PE parsing module"
optional = false
python-versions = ">=3.6.0"
groups = ["dev"]
markers = "sys_platform == \"win32\""
files = [
{file = "pefile-2023.2.7-py3-none-any.whl", hash = "sha256:da185cd2af68c08a6cd4481f7325ed600a88f6a813bad9dea07ab3ef73d8d8d6"},
{file = "pefile-2023.2.7.tar.gz", hash = "sha256:82e6114004b3d6911c77c3953e3838654b04511b8b66e8583db70c65998017dc"},
@@ -553,6 +574,7 @@ version = "0.2.0"
description = "Accelerated property cache"
optional = false
python-versions = ">=3.8"
groups = ["main"]
files = [
{file = "propcache-0.2.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:c5869b8fd70b81835a6f187c5fdbe67917a04d7e52b6e7cc4e5fe39d55c39d58"},
{file = "propcache-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:952e0d9d07609d9c5be361f33b0d6d650cd2bae393aabb11d9b719364521984b"},
@@ -656,31 +678,32 @@ files = [
[[package]]
name = "pyinstaller"
version = "6.8.0"
version = "6.14.2"
description = "PyInstaller bundles a Python application and all its dependencies into a single package."
optional = false
python-versions = "<3.13,>=3.8"
python-versions = "<3.14,>=3.8"
groups = ["dev"]
files = [
{file = "pyinstaller-6.8.0-py3-none-macosx_10_13_universal2.whl", hash = "sha256:5ff6bc2784c1026f8e2f04aa3760cbed41408e108a9d4cf1dd52ee8351a3f6e1"},
{file = "pyinstaller-6.8.0-py3-none-manylinux2014_aarch64.whl", hash = "sha256:39ac424d2ee2457d2ab11a5091436e75a0cccae207d460d180aa1fcbbafdd528"},
{file = "pyinstaller-6.8.0-py3-none-manylinux2014_i686.whl", hash = "sha256:355832a3acc7de90a255ecacd4b9f9e166a547a79c8905d49f14e3a75c1acdb9"},
{file = "pyinstaller-6.8.0-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:6303c7a009f47e6a96ef65aed49f41e36ece8d079b9193ca92fe807403e5fe80"},
{file = "pyinstaller-6.8.0-py3-none-manylinux2014_s390x.whl", hash = "sha256:2b71509468c811968c0b5decb5bbe85b6292ea52d7b1f26313d2aabb673fa9a5"},
{file = "pyinstaller-6.8.0-py3-none-manylinux2014_x86_64.whl", hash = "sha256:ff31c5b99e05a4384bbe2071df67ec8b2b347640a375eae9b40218be2f1754c6"},
{file = "pyinstaller-6.8.0-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:000c36b13fe4cd8d0d8c2bc855b1ddcf39867b5adf389e6b5ca45b25fa3e619d"},
{file = "pyinstaller-6.8.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:fe0af018d7d5077180e3144ada89a4da5df8d07716eb7e9482834a56dc57a4e8"},
{file = "pyinstaller-6.8.0-py3-none-win32.whl", hash = "sha256:d257f6645c7334cbd66f38a4fac62c3ad614cc46302b2b5d9f8cc48c563bce0e"},
{file = "pyinstaller-6.8.0-py3-none-win_amd64.whl", hash = "sha256:81cccfa9b16699b457f4788c5cc119b50f3cd4d0db924955f15c33f2ad27a50d"},
{file = "pyinstaller-6.8.0-py3-none-win_arm64.whl", hash = "sha256:1c3060a263758cf7f0144ab4c016097b20451b2469d468763414665db1bb743d"},
{file = "pyinstaller-6.8.0.tar.gz", hash = "sha256:3f4b6520f4423fe19bcc2fd63ab7238851ae2bdcbc98f25bc5d2f97cc62012e9"},
{file = "pyinstaller-6.14.2-py3-none-macosx_10_13_universal2.whl", hash = "sha256:d77d18bf5343a1afef2772393d7a489d4ec2282dee5bca549803fc0d74b78330"},
{file = "pyinstaller-6.14.2-py3-none-manylinux2014_aarch64.whl", hash = "sha256:3fa0c391e1300a9fd7752eb1ffe2950112b88fba9d2743eee2ef218a15f4705f"},
{file = "pyinstaller-6.14.2-py3-none-manylinux2014_i686.whl", hash = "sha256:077efb2d01d16d9c8fdda3ad52788f0fead2791c5cec9ed6ce058af7e26eb74b"},
{file = "pyinstaller-6.14.2-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:fdd2bd020a18736806a6bd5d3c4352f1209b427a96ad6c459d88aec1d90c4f21"},
{file = "pyinstaller-6.14.2-py3-none-manylinux2014_s390x.whl", hash = "sha256:03862c6b3cf7b16843d24b529f89cd4077cbe467883cd54ce7a81940d6da09d3"},
{file = "pyinstaller-6.14.2-py3-none-manylinux2014_x86_64.whl", hash = "sha256:78827a21ada2a848e98671852d20d74b2955b6e2aaf2359ed13a462e1a603d84"},
{file = "pyinstaller-6.14.2-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:185710ab1503dfdfa14c43237d394d96ac183422d588294be42531480dfa6c38"},
{file = "pyinstaller-6.14.2-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:6c673a7e761bd4a2560cfd5dbe1ccdcfe2dff304b774e6e5242fc5afed953661"},
{file = "pyinstaller-6.14.2-py3-none-win32.whl", hash = "sha256:1697601aa788e3a52f0b5e620b4741a34b82e6f222ec6e1318b3a1349f566bb2"},
{file = "pyinstaller-6.14.2-py3-none-win_amd64.whl", hash = "sha256:e10e0e67288d6dcb5898a917dd1d4272aa0ff33f197ad49a0e39618009d63ed9"},
{file = "pyinstaller-6.14.2-py3-none-win_arm64.whl", hash = "sha256:69fd11ca57e572387826afaa4a1b3d4cb74927d76f231f0308c0bd7872ca5ac1"},
{file = "pyinstaller-6.14.2.tar.gz", hash = "sha256:142cce0719e79315f0cc26400c2e5c45d9b6b17e7e0491fee444a9f8f16f4917"},
]
[package.dependencies]
altgraph = "*"
macholib = {version = ">=1.8", markers = "sys_platform == \"darwin\""}
packaging = ">=22.0"
pefile = {version = ">=2022.5.30", markers = "sys_platform == \"win32\""}
pyinstaller-hooks-contrib = ">=2024.6"
pefile = {version = ">=2022.5.30,<2024.8.26 || >2024.8.26", markers = "sys_platform == \"win32\""}
pyinstaller-hooks-contrib = ">=2025.5"
pywin32-ctypes = {version = ">=0.2.1", markers = "sys_platform == \"win32\""}
setuptools = ">=42.0.0"
@@ -690,13 +713,14 @@ hook-testing = ["execnet (>=1.5.0)", "psutil", "pytest (>=2.7.3)"]
[[package]]
name = "pyinstaller-hooks-contrib"
version = "2024.7"
version = "2025.8"
description = "Community maintained hooks for PyInstaller"
optional = false
python-versions = ">=3.7"
python-versions = ">=3.8"
groups = ["dev"]
files = [
{file = "pyinstaller_hooks_contrib-2024.7-py2.py3-none-any.whl", hash = "sha256:8bf0775771fbaf96bcd2f4dfd6f7ae6c1dd1b1efe254c7e50477b3c08e7841d8"},
{file = "pyinstaller_hooks_contrib-2024.7.tar.gz", hash = "sha256:fd5f37dcf99bece184e40642af88be16a9b89613ecb958a8bd1136634fc9fac5"},
{file = "pyinstaller_hooks_contrib-2025.8-py3-none-any.whl", hash = "sha256:8d0b8cfa0cb689a619294ae200497374234bd4e3994b3ace2a4442274c899064"},
{file = "pyinstaller_hooks_contrib-2025.8.tar.gz", hash = "sha256:3402ad41dfe9b5110af134422e37fc5d421ba342c6cb980bd67cb30b7415641c"},
]
[package.dependencies]
@@ -709,6 +733,7 @@ version = "1.1.369"
description = "Command line wrapper for pyright"
optional = false
python-versions = ">=3.7"
groups = ["dev"]
files = [
{file = "pyright-1.1.369-py3-none-any.whl", hash = "sha256:06d5167a8d7be62523ced0265c5d2f1e022e110caf57a25d92f50fb2d07bcda0"},
{file = "pyright-1.1.369.tar.gz", hash = "sha256:ad290710072d021e213b98cc7a2f90ae3a48609ef5b978f749346d1a47eb9af8"},
@@ -727,6 +752,8 @@ version = "0.2.2"
description = "A (partial) reimplementation of pywin32 using ctypes/cffi"
optional = false
python-versions = ">=3.6"
groups = ["dev"]
markers = "sys_platform == \"win32\""
files = [
{file = "pywin32-ctypes-0.2.2.tar.gz", hash = "sha256:3426e063bdd5fd4df74a14fa3cf80a0b42845a87e1d1e81f6549f9daec593a60"},
{file = "pywin32_ctypes-0.2.2-py3-none-any.whl", hash = "sha256:bf490a1a709baf35d688fe0ecf980ed4de11d2b3e37b51e5442587a75d9957e7"},
@@ -738,6 +765,7 @@ version = "1.3.3"
description = "A Python module to customize the process title"
optional = false
python-versions = ">=3.7"
groups = ["main"]
files = [
{file = "setproctitle-1.3.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:897a73208da48db41e687225f355ce993167079eda1260ba5e13c4e53be7f754"},
{file = "setproctitle-1.3.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:8c331e91a14ba4076f88c29c777ad6b58639530ed5b24b5564b5ed2fd7a95452"},
@@ -834,18 +862,24 @@ test = ["pytest"]
[[package]]
name = "setuptools"
version = "70.1.1"
version = "78.1.1"
description = "Easily download, build, install, upgrade, and uninstall Python packages"
optional = false
python-versions = ">=3.8"
python-versions = ">=3.9"
groups = ["dev"]
files = [
{file = "setuptools-70.1.1-py3-none-any.whl", hash = "sha256:a58a8fde0541dab0419750bcc521fbdf8585f6e5cb41909df3a472ef7b81ca95"},
{file = "setuptools-70.1.1.tar.gz", hash = "sha256:937a48c7cdb7a21eb53cd7f9b59e525503aa8abaf3584c730dc5f7a5bec3a650"},
{file = "setuptools-78.1.1-py3-none-any.whl", hash = "sha256:c3a9c4211ff4c309edb8b8c4f1cbfa7ae324c4ba9f91ff254e3d305b9fd54561"},
{file = "setuptools-78.1.1.tar.gz", hash = "sha256:fcc17fd9cd898242f6b4adfaca46137a9edef687f43e6f78469692a5e70d851d"},
]
[package.extras]
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "pyproject-hooks (!=1.1)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier"]
testing = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "importlib-metadata", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "jaraco.test", "mypy (==1.10.0)", "packaging (>=23.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.1)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-home (>=0.5)", "pytest-mypy", "pytest-perf", "pytest-ruff (>=0.3.2)", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"]
check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \"cygwin\"", "ruff (>=0.8.0) ; sys_platform != \"cygwin\""]
core = ["importlib_metadata (>=6) ; python_version < \"3.10\"", "jaraco.functools (>=4)", "jaraco.text (>=3.7)", "more_itertools", "more_itertools (>=8.8)", "packaging (>=24.2)", "platformdirs (>=4.2.2)", "tomli (>=2.0.1) ; python_version < \"3.11\"", "wheel (>=0.43.0)"]
cover = ["pytest-cov"]
doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "pyproject-hooks (!=1.1)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier", "towncrier (<24.7)"]
enabler = ["pytest-enabler (>=2.2)"]
test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21) ; python_version >= \"3.9\" and sys_platform != \"cygwin\"", "jaraco.envs (>=2.2)", "jaraco.path (>=3.7.2)", "jaraco.test (>=5.5)", "packaging (>=24.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.*)", "pytest-home (>=0.5)", "pytest-perf ; sys_platform != \"cygwin\"", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel (>=0.44.0)"]
type = ["importlib_metadata (>=7.0.2) ; python_version < \"3.10\"", "jaraco.develop (>=7.21) ; sys_platform != \"cygwin\"", "mypy (==1.14.*)", "pytest-mypy"]
[[package]]
name = "watchdog"
@@ -853,6 +887,7 @@ version = "4.0.1"
description = "Filesystem events monitoring"
optional = false
python-versions = ">=3.8"
groups = ["main"]
files = [
{file = "watchdog-4.0.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:da2dfdaa8006eb6a71051795856bedd97e5b03e57da96f98e375682c48850645"},
{file = "watchdog-4.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e93f451f2dfa433d97765ca2634628b789b49ba8b504fdde5837cdcf25fdb53b"},
@@ -897,6 +932,7 @@ version = "1.15.2"
description = "Yet another URL library"
optional = false
python-versions = ">=3.8"
groups = ["main"]
files = [
{file = "yarl-1.15.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e4ee8b8639070ff246ad3649294336b06db37a94bdea0d09ea491603e0be73b8"},
{file = "yarl-1.15.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a7cf963a357c5f00cb55b1955df8bbe68d2f2f65de065160a1c26b85a1e44172"},
@@ -1004,6 +1040,6 @@ multidict = ">=4.0"
propcache = ">=0.2.0"
[metadata]
lock-version = "2.0"
python-versions = ">=3.10,<3.13"
content-hash = "3c9488709e61f3aa21ab47ceb9c677927ce770d8e1e327602a1a6afb09164475"
lock-version = "2.1"
python-versions = ">=3.10,<3.14"
content-hash = "9a331b42c52134230384c1a7348c2856903d82d6007e06cd75eed13842aa21ea"
+1 -1
View File
@@ -14,7 +14,7 @@ include = [
]
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
python = ">=3.10,<3.14"
aiohttp = "^3.10.11"
aiohttp-jinja2 = "^1.5.1"
+50 -38
View File
@@ -11,45 +11,57 @@
};
};
outputs = { self, nixpkgs, flake-utils, poetry2nix }:
flake-utils.lib.eachDefaultSystem (system:
outputs =
{
self,
nixpkgs,
flake-utils,
poetry2nix,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
p2n = (poetry2nix.lib.mkPoetry2Nix { inherit pkgs; });
in {
devShells.default = (p2n.mkPoetryEnv {
projectDir = self + "/backend";
# pyinstaller fails to compile so precompiled it is
overrides = p2n.overrides.withDefaults (final: prev: {
pyinstaller = prev.pyinstaller.override { preferWheel = true; };
pyright = null;
});
}).env.overrideAttrs (oldAttrs: {
shellHook = ''
PYTHONPATH=`which python`
FILE=.vscode/settings.json
if [ -f "$FILE" ]; then
jq --arg pythonpath "$PYTHONPATH" '.["python.defaultInterpreterPath"] = $pythonpath' $FILE > "$FILE.tmp" && mv "$FILE.tmp" "$FILE"
else
echo "{\"python.defaultInterpreterPath\": \"$PYTHONPATH\"}" > "$FILE"
fi
'';
UV_USE_IO_URING = 0; # work around node#48444
buildInputs = with pkgs; [
nodejs_22
nodePackages.pnpm
poetry
jq
# fixes local pyright not being able to see the pythonpath properly.
(pkgs.writeShellScriptBin "pyright" ''
${pkgs.pyright}/bin/pyright --pythonpath `which python3` "$@" '')
(pkgs.writeShellScriptBin "pyright-langserver" ''
${pkgs.pyright}/bin/pyright-langserver --pythonpath `which python3` "$@" '')
(pkgs.writeShellScriptBin "pyright-python" ''
${pkgs.pyright}/bin/pyright-python --pythonpath `which python3` "$@" '')
(pkgs.writeShellScriptBin "pyright-python-langserver" ''
${pkgs.pyright}/bin/pyright-python-langserver --pythonpath `which python3` "$@" '')
];
});
});
in
{
devShells.default =
(p2n.mkPoetryEnv {
projectDir = self + "/backend";
# pyinstaller fails to compile so precompiled it is
overrides = p2n.overrides.withDefaults (
final: prev: {
pyinstaller = prev.pyinstaller.override { preferWheel = true; };
pyright = null;
}
);
}).env.overrideAttrs
(oldAttrs: {
shellHook = ''
PYTHONPATH=`which python`
FILE=.vscode/settings.json
if [ -f "$FILE" ]; then
jq --arg pythonpath "$PYTHONPATH" '.["python.defaultInterpreterPath"] = $pythonpath' $FILE > "$FILE.tmp" && mv "$FILE.tmp" "$FILE"
else
echo "{\"python.defaultInterpreterPath\": \"$PYTHONPATH\"}" > "$FILE"
fi
'';
UV_USE_IO_URING = 0; # work around node#48444
nativeBuildInputs = with pkgs; [
python311Packages.setuptools
];
buildInputs = with pkgs; [
nodejs_22
nodePackages.pnpm
poetry
jq
# fixes local pyright not being able to see the pythonpath properly.
(pkgs.writeShellScriptBin "pyright" ''${pkgs.pyright}/bin/pyright --pythonpath `which python3` "$@" '')
(pkgs.writeShellScriptBin "pyright-langserver" ''${pkgs.pyright}/bin/pyright-langserver --pythonpath `which python3` "$@" '')
(pkgs.writeShellScriptBin "pyright-python" ''${pkgs.pyright}/bin/pyright-python --pythonpath `which python3` "$@" '')
(pkgs.writeShellScriptBin "pyright-python-langserver" ''${pkgs.pyright}/bin/pyright-python-langserver --pythonpath `which python3` "$@" '')
];
});
}
);
}
+1 -1
View File
@@ -7,4 +7,4 @@ export default {
tabWidth: 2,
endOfLine: 'auto',
plugins: [importSort],
}
};
+1 -1
View File
@@ -47,7 +47,7 @@
}
},
"dependencies": {
"@decky/ui": "^4.8.3",
"@decky/ui": "^4.10.5",
"compare-versions": "^6.1.1",
"filesize": "^10.1.2",
"i18next": "^23.11.5",
+5 -5
View File
@@ -9,8 +9,8 @@ importers:
.:
dependencies:
'@decky/ui':
specifier: ^4.8.3
version: 4.8.3
specifier: ^4.10.5
version: 4.10.5
compare-versions:
specifier: ^6.1.1
version: 6.1.1
@@ -218,8 +218,8 @@ packages:
'@decky/api@1.1.1':
resolution: {integrity: sha512-R5fkBRHBt5QIQY7Q0AlbVIhlIZ/nTzwBOoi8Rt4Go2fjFnoMKPInCJl6cPjXzimGwl2pyqKJgY6VnH6ar0XrHQ==}
'@decky/ui@4.8.3':
resolution: {integrity: sha512-Y1KciazgvKqMEVBGrWFCTGOqgVi5sHbcQNoCZRMbPpcI0U3j7udl6mkfe/NBa16oRDZ03ljS41SmrAgKAAt/pA==}
'@decky/ui@4.10.5':
resolution: {integrity: sha512-IsQiNtIbNJ5NQQJB9Dir0ir2pgE4QpcsrRB7eic2ClbPwYDuBKc6GLFs3ZQt43Dd4SwCJkzg/CeC+wgkBOMd1w==}
'@esbuild/aix-ppc64@0.20.2':
resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==}
@@ -2295,7 +2295,7 @@ snapshots:
'@decky/api@1.1.1': {}
'@decky/ui@4.8.3': {}
'@decky/ui@4.10.5': {}
'@esbuild/aix-ppc64@0.20.2':
optional: true
@@ -4,6 +4,8 @@ import { FunctionComponent, useEffect, useReducer, useState } from 'react';
import { uninstallPlugin } from '../plugin';
import { VerInfo, doRestart, doShutdown } from '../updater';
import { ValveReactErrorInfo, getLikelyErrorSourceFromValveReactError } from '../utils/errors';
import { useSetting } from '../utils/hooks/useSetting';
import { UpdateBranch } from './settings/pages/general/BranchSelect';
interface DeckyErrorBoundaryProps {
error: ValveReactErrorInfo;
@@ -37,6 +39,27 @@ const DeckyErrorBoundary: FunctionComponent<DeckyErrorBoundaryProps> = ({ error,
if (!shouldReportToValve) DeckyPluginLoader.errorBoundaryHook.temporarilyDisableReporting();
DeckyPluginLoader.updateVersion().then(setVersionInfo);
}, []);
const [selectedBranch, setSelectedBranch] = useSetting<UpdateBranch>('branch', UpdateBranch.Stable);
const [isChecking, setIsChecking] = useState<boolean>(false);
const [updateProgress, setUpdateProgress] = useState<number>(-1);
const [versionToUpdateTo, setSetVersionToUpdateTo] = useState<string>('');
useEffect(() => {
const a = DeckyBackend.addEventListener('updater/update_download_percentage', (percentage) => {
setUpdateProgress(percentage);
});
const b = DeckyBackend.addEventListener('updater/finish_download', () => {
setUpdateProgress(-2);
});
return () => {
DeckyBackend.removeEventListener('updater/update_download_percentage', a);
DeckyBackend.removeEventListener('updater/finish_download', b);
};
}, []);
return (
<>
<style>
@@ -149,6 +172,65 @@ const DeckyErrorBoundary: FunctionComponent<DeckyErrorBoundaryProps> = ({ error,
</button>
</div>
)}
{
<div style={{ display: 'block', marginBottom: '5px' }}>
{updateProgress > -1
? 'Update in progress... ' + updateProgress + '%'
: updateProgress == -2
? 'Update complete. Restarting...'
: 'Changing your Decky Loader branch and/or \n checking for updates might help!\n'}
{updateProgress == -1 && (
<div style={{ height: '30px' }}>
<select
style={{ height: '100%' }}
onChange={async (e) => {
const branch = parseInt(e.target.value);
setSelectedBranch(branch);
setSetVersionToUpdateTo('');
}}
>
<option value="0" selected={selectedBranch == UpdateBranch.Stable}>
Stable
</option>
<option value="1" selected={selectedBranch == UpdateBranch.Prerelease}>
Pre-Release
</option>
<option value="2" selected={selectedBranch == UpdateBranch.Testing}>
Testing
</option>
</select>
<button
style={{ height: '100%' }}
disabled={updateProgress != -1 || isChecking}
onClick={async () => {
if (versionToUpdateTo == '') {
setIsChecking(true);
const versionInfo = (await DeckyBackend.callable(
'updater/check_for_updates',
)()) as unknown as VerInfo;
setIsChecking(false);
if (versionInfo?.remote && versionInfo?.remote?.tag_name != versionInfo?.current) {
setSetVersionToUpdateTo(versionInfo.remote.tag_name);
} else {
setSetVersionToUpdateTo('');
}
} else {
DeckyBackend.callable('updater/do_update')();
setUpdateProgress(0);
}
}}
>
{' '}
{isChecking
? 'Checking for updates...'
: versionToUpdateTo != ''
? 'Update to ' + versionToUpdateTo
: 'Check for updates'}
</button>
</div>
)}
</div>
}
{wasCausedByPlugin && (
<div style={{ display: 'block', marginBottom: '5px' }}>
{'\n'}
+14 -1
View File
@@ -1,12 +1,14 @@
import { FC, ReactNode, createContext, useContext, useEffect, useState } from 'react';
import { DEFAULT_NOTIFICATION_SETTINGS, NotificationSettings } from '../notification-service';
import { Plugin } from '../plugin';
import { DisabledPlugin, Plugin } from '../plugin';
import { PluginUpdateMapping } from '../store';
import { VerInfo } from '../updater';
interface PublicDeckyState {
plugins: Plugin[];
disabled: DisabledPlugin[];
installedPlugins: (Plugin | DisabledPlugin)[];
pluginOrder: string[];
frozenPlugins: string[];
hiddenPlugins: string[];
@@ -26,6 +28,8 @@ export interface UserInfo {
export class DeckyState {
private _plugins: Plugin[] = [];
private _disabledPlugins: DisabledPlugin[] = [];
private _installedPlugins: (Plugin | DisabledPlugin)[] = [];
private _pluginOrder: string[] = [];
private _frozenPlugins: string[] = [];
private _hiddenPlugins: string[] = [];
@@ -42,6 +46,8 @@ export class DeckyState {
publicState(): PublicDeckyState {
return {
plugins: this._plugins,
disabled: this._disabledPlugins,
installedPlugins: this._installedPlugins,
pluginOrder: this._pluginOrder,
frozenPlugins: this._frozenPlugins,
hiddenPlugins: this._hiddenPlugins,
@@ -62,6 +68,13 @@ export class DeckyState {
setPlugins(plugins: Plugin[]) {
this._plugins = plugins;
this._installedPlugins = [...plugins, ...this._disabledPlugins];
this.notifyUpdate();
}
setDisabledPlugins(disabledPlugins: DisabledPlugin[]) {
this._disabledPlugins = disabledPlugins;
this._installedPlugins = [...this._plugins, ...disabledPlugins];
this.notifyUpdate();
}
+7 -2
View File
@@ -1,4 +1,4 @@
import { Focusable, Navigation } from '@decky/ui';
import { Focusable, Navigation, findClass, findClassByName } from '@decky/ui';
import { FunctionComponent, useRef } from 'react';
import ReactMarkdown, { Options as ReactMarkdownOptions } from 'react-markdown';
import remarkGfm from 'remark-gfm';
@@ -8,6 +8,9 @@ interface MarkdownProps extends ReactMarkdownOptions {
}
const Markdown: FunctionComponent<MarkdownProps> = (props) => {
const eventDetailsBodyClassName = findClassByName('EventDetailsBody') || undefined;
const eventLinkClassName = findClass('43088', 'Link');
return (
<Focusable>
<ReactMarkdown
@@ -25,8 +28,10 @@ const Markdown: FunctionComponent<MarkdownProps> = (props) => {
Navigation.NavigateToExternalWeb(aRef.current!.href);
}}
style={{ display: 'inline' }}
focusClassName="steam-focus"
className={eventDetailsBodyClassName}
>
<a ref={aRef} {...nodeProps.node.properties}>
<a ref={aRef} {...nodeProps.node.properties} className={eventLinkClassName}>
{nodeProps.children}
</a>
</Focusable>
@@ -0,0 +1,46 @@
import { ConfirmModal, Spinner } from '@decky/ui';
import { FC, useState } from 'react';
import { disablePlugin } from '../../plugin';
interface PluginUninstallModalProps {
name: string;
title: string;
buttonText: string;
description: string;
closeModal?(): void;
}
const PluginDisableModal: FC<PluginUninstallModalProps> = ({ name, title, buttonText, description, closeModal }) => {
const [disabling, setDisabling] = useState<boolean>(false);
return (
<ConfirmModal
closeModal={closeModal}
onOK={async () => {
setDisabling(true);
await disablePlugin(name);
//not sure about this yet
// uninstalling a plugin resets the hidden setting for it server-side
// we invalidate here so if you re-install it, you won't have an out-of-date hidden filter
await DeckyPluginLoader.frozenPluginsService.invalidate();
await DeckyPluginLoader.hiddenPluginsService.invalidate();
closeModal?.();
}}
bOKDisabled={disabling}
bCancelDisabled={disabling}
strTitle={
<div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', width: '100%' }}>
{title}
{disabling && <Spinner width="24px" height="24px" style={{ marginLeft: 'auto' }} />}
</div>
}
strOKButtonText={buttonText}
>
{description}
</ConfirmModal>
);
};
export default PluginDisableModal;
@@ -47,7 +47,7 @@ export default async function libraryPatch() {
}
const unlisten = History.listen(() => {
if (window.SteamClient.Apps.PromptToChangeShortcut !== patch.patchedFunction) {
if ((window.SteamClient.Apps as any).PromptToChangeShortcut !== patch.patchedFunction) {
rePatch();
}
});
@@ -72,7 +72,16 @@ export default function DeveloperSettings() {
}
icon={<FaLink style={{ display: 'block' }} />}
>
<DialogButton disabled={pluginURL.length == 0} onClick={() => installFromURL(pluginURL)}>
<DialogButton
disabled={pluginURL.length == 0}
onClick={() => {
if (/^https?:\/\//.test(pluginURL)) {
installFromURL(pluginURL);
} else {
installFromURL('https://' + pluginURL);
}
}}
>
{t('SettingsDeveloperIndex.third_party_plugins.button_install')}
</DialogButton>
</Field>
@@ -1,14 +1,4 @@
import {
Carousel,
DialogButton,
Field,
FocusRing,
Focusable,
ProgressBarWithInfo,
Spinner,
findSP,
showModal,
} from '@decky/ui';
import { Carousel, DialogButton, Field, Focusable, ProgressBarWithInfo, Spinner, findSP, showModal } from '@decky/ui';
import { Suspense, lazy, useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { FaExclamation } from 'react-icons/fa';
@@ -23,9 +13,31 @@ const MarkdownRenderer = lazy(() => import('../../../Markdown'));
function PatchNotesModal({ versionInfo, closeModal }: { versionInfo: VerInfo | null; closeModal?: () => {} }) {
const SP = findSP();
const { t } = useTranslation();
return (
<Focusable onCancelButton={closeModal}>
<FocusRing>
<>
<style>
{`
.steam-focus {
outline-offset: 3px;
outline: 2px solid rgba(255, 255, 255, 0.6);
animation: pulseOutline 1.2s infinite ease-in-out;
}
@keyframes pulseOutline {
0% {
outline: 2px solid rgba(255, 255, 255, 0.6);
}
50% {
outline: 2px solid rgba(255, 255, 255, 1);
}
100% {
outline: 2px solid rgba(255, 255, 255, 0.6);
}
}`}
</style>
<Focusable onCancelButton={closeModal}>
<Carousel
fnItemRenderer={(id: number) => (
<Focusable
@@ -35,7 +47,9 @@ function PatchNotesModal({ versionInfo, closeModal }: { versionInfo: VerInfo | n
overflowY: 'scroll',
display: 'flex',
justifyContent: 'center',
margin: '40px',
margin: '30px',
padding: '0 15px',
backgroundColor: 'rgba(37, 40, 46, 0.5)',
}}
>
<div>
@@ -57,11 +71,11 @@ function PatchNotesModal({ versionInfo, closeModal }: { versionInfo: VerInfo | n
nItemMarginX={0}
initialColumn={0}
autoFocus={true}
fnGetColumnWidth={() => SP.innerWidth}
fnGetColumnWidth={() => SP.innerWidth - SP.innerWidth * (10 / 100)}
name={t('Updater.decky_updates') as string}
/>
</FocusRing>
</Focusable>
</Focusable>
</>
);
}
@@ -1,15 +1,16 @@
import { FC } from 'react';
import { useTranslation } from 'react-i18next';
import { FaEyeSlash, FaLock } from 'react-icons/fa';
import { FaEyeSlash, FaLock, FaMoon } from 'react-icons/fa';
interface PluginListLabelProps {
frozen: boolean;
hidden: boolean;
disabled: boolean;
name: string;
version?: string;
}
const PluginListLabel: FC<PluginListLabelProps> = ({ name, frozen, hidden, version }) => {
const PluginListLabel: FC<PluginListLabelProps> = ({ name, frozen, hidden, version, disabled }) => {
const { t } = useTranslation();
return (
<div style={{ display: 'flex', flexDirection: 'column', gap: '6px' }}>
@@ -43,6 +44,20 @@ const PluginListLabel: FC<PluginListLabelProps> = ({ name, frozen, hidden, versi
{t('PluginListLabel.hidden')}
</div>
)}
{disabled && (
<div
style={{
fontSize: '0.8rem',
color: '#dcdedf',
display: 'flex',
alignItems: 'center',
gap: '10px',
}}
>
<FaMoon />
{t('PluginListLabel.disabled')}
</div>
)}
</div>
);
};
@@ -13,7 +13,7 @@ import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { FaDownload, FaEllipsisH, FaRecycle } from 'react-icons/fa';
import { InstallType } from '../../../../plugin';
import { enablePlugin, InstallType } from '../../../../plugin';
import {
StorePluginVersion,
getPluginList,
@@ -35,6 +35,7 @@ async function reinstallPlugin(pluginName: string, currentVersion?: string) {
type PluginTableData = PluginData & {
name: string;
disabled: boolean;
frozen: boolean;
onFreeze(): void;
onUnfreeze(): void;
@@ -54,7 +55,7 @@ function PluginInteractables(props: { entry: ReorderableEntry<PluginTableData> }
return null;
}
const { name, update, version, onHide, onShow, hidden, onFreeze, onUnfreeze, frozen, isDeveloper } = props.entry.data;
const { name, update, version, onHide, onShow, hidden, onFreeze, onUnfreeze, frozen, isDeveloper, disabled } = props.entry.data;
const showCtxMenu = (e: MouseEvent | GamepadEvent) => {
showContextMenu(
@@ -82,6 +83,25 @@ function PluginInteractables(props: { entry: ReorderableEntry<PluginTableData> }
>
{t('PluginListIndex.uninstall')}
</MenuItem>
{disabled ?
<MenuItem
onSelected={() => enablePlugin(name)}
>
{t('PluginListIndex.plugin_enable')}
</MenuItem> :
<MenuItem
onSelected={() =>
DeckyPluginLoader.disablePlugin(
name,
t('PluginLoader.plugin_disable.title', { name }),
t('PluginLoader.plugin_disable.button'),
t('PluginLoader.plugin_disable.desc', { name }),
)
}
>
{t('PluginListIndex.plugin_disable')}
</MenuItem>
}
{hidden ? (
<MenuItem onSelected={onShow}>{t('PluginListIndex.show')}</MenuItem>
) : (
@@ -147,10 +167,11 @@ type PluginData = {
};
export default function PluginList({ isDeveloper }: { isDeveloper: boolean }) {
const { plugins, updates, pluginOrder, setPluginOrder, frozenPlugins, hiddenPlugins } = useDeckyState();
const { installedPlugins, disabled, updates, pluginOrder, setPluginOrder, frozenPlugins, hiddenPlugins } = useDeckyState();
const [_, setPluginOrderSetting] = useSetting<string[]>(
'pluginOrder',
plugins.map((plugin) => plugin.name),
installedPlugins.map((plugin) => plugin.name),
);
const { t } = useTranslation();
@@ -164,15 +185,17 @@ export default function PluginList({ isDeveloper }: { isDeveloper: boolean }) {
useEffect(() => {
setPluginEntries(
plugins.map(({ name, version }) => {
installedPlugins.map(({ name, version }) => {
const frozen = frozenPlugins.includes(name);
const hidden = hiddenPlugins.includes(name);
return {
label: <PluginListLabel name={name} frozen={frozen} hidden={hidden} version={version} />,
label: <PluginListLabel name={name} frozen={frozen} hidden={hidden} version={version}
disabled={disabled.find(p => p.name == name) !== undefined} />,
position: pluginOrder.indexOf(name),
data: {
name,
disabled: disabled.some(disabledPlugin => disabledPlugin.name === name),
frozen,
hidden,
isDeveloper,
@@ -186,9 +209,9 @@ export default function PluginList({ isDeveloper }: { isDeveloper: boolean }) {
};
}),
);
}, [plugins, updates, hiddenPlugins]);
}, [installedPlugins, updates, hiddenPlugins]);
if (plugins.length === 0) {
if (installedPlugins.length === 0) {
return (
<div>
<p>{t('PluginListIndex.no_plugin')}</p>
+2 -2
View File
@@ -3,13 +3,13 @@ import { CSSProperties, FC, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { FaArrowDown, FaArrowUp, FaCheck, FaDownload, FaRecycle } from 'react-icons/fa';
import { InstallType, Plugin } from '../../plugin';
import { DisabledPlugin, InstallType, Plugin } from '../../plugin';
import { StorePlugin, requestPluginInstall } from '../../store';
import ExternalLink from '../ExternalLink';
interface PluginCardProps {
storePlugin: StorePlugin;
installedPlugin: Plugin | undefined;
installedPlugin: Plugin | DisabledPlugin | undefined;
}
const PluginCard: FC<PluginCardProps> = ({ storePlugin, installedPlugin }) => {
+1 -1
View File
@@ -105,7 +105,7 @@ const BrowseTab: FC<{ setPluginCount: Dispatch<SetStateAction<number | null>> }>
})();
}, []);
const { plugins: installedPlugins } = useDeckyState();
const { installedPlugins } = useDeckyState();
return (
<>
+37 -10
View File
@@ -1,5 +1,6 @@
import { ToastNotification } from '@decky/api';
import {
EUIMode,
ModalRoot,
Navigation,
PanelSection,
@@ -29,8 +30,8 @@ import { FrozenPluginService } from './frozen-plugins-service';
import { HiddenPluginsService } from './hidden-plugins-service';
import Logger from './logger';
import { NotificationService } from './notification-service';
import { InstallType, Plugin, PluginLoadType } from './plugin';
import RouterHook, { UIMode } from './router-hook';
import { DisabledPlugin, InstallType, Plugin, PluginLoadType } from './plugin';
import RouterHook from './router-hook';
import { deinitSteamFixes, initSteamFixes } from './steamfixes';
import { checkForPluginUpdates } from './store';
import TabsHook from './tabs-hook';
@@ -38,6 +39,7 @@ import Toaster from './toaster';
import { getVersionInfo } from './updater';
import { getSetting, setSetting } from './utils/settings';
import TranslationHelper, { TranslationClass } from './utils/TranslationHelper';
import PluginDisablelModal from './components/modals/PluginDisablelModal';
const StorePage = lazy(() => import('./components/store/Store'));
const SettingsPage = lazy(() => import('./components/settings'));
@@ -90,6 +92,7 @@ class PluginLoader extends Logger {
DeckyBackend.addEventListener('loader/notify_updates', this.notifyUpdates.bind(this));
DeckyBackend.addEventListener('loader/import_plugin', this.importPlugin.bind(this));
DeckyBackend.addEventListener('loader/unload_plugin', this.unloadPlugin.bind(this));
DeckyBackend.addEventListener('loader/disable_plugin', this.doDisablePlugin.bind(this));
DeckyBackend.addEventListener('loader/add_plugin_install_prompt', this.addPluginInstallPrompt.bind(this));
DeckyBackend.addEventListener(
'loader/add_multiple_plugins_install_prompt',
@@ -196,7 +199,7 @@ class PluginLoader extends Logger {
private getPluginsFromBackend = DeckyBackend.callable<
[],
{ name: string; version: string; load_type: PluginLoadType }[]
{ name: string; version: string; load_type: PluginLoadType; disabled: boolean }[]
>('loader/get_plugins');
private restartWebhelper = DeckyBackend.callable<[], void>('utilities/restart_webhelper');
@@ -205,12 +208,12 @@ class PluginLoader extends Logger {
let registration: any;
const uiMode = await new Promise(
(r) =>
(registration = SteamClient.UI.RegisterForUIModeChanged((mode: UIMode) => {
r(mode);
registration.unregister();
})),
(registration = SteamClient.UI.RegisterForUIModeChanged((mode: EUIMode) => {
r(mode);
registration.unregister();
})),
);
if (uiMode == UIMode.BigPicture) {
if (uiMode == EUIMode.GamePad) {
// wait for SP window to exist before loading plugins
while (!findSP()) {
await sleep(100);
@@ -219,10 +222,16 @@ class PluginLoader extends Logger {
this.runCrashChecker();
const plugins = await this.getPluginsFromBackend();
const pluginLoadPromises = [];
const disabledPlugins: DisabledPlugin[] = [];
const loadStart = performance.now();
for (const plugin of plugins) {
if (!this.hasPlugin(plugin.name))
pluginLoadPromises.push(this.importPlugin(plugin.name, plugin.version, plugin.load_type, false));
if (plugin.disabled) {
disabledPlugins.push({ name: plugin.name, version: plugin.version });
this.deckyState.setDisabledPlugins(disabledPlugins);
} else {
if (!this.hasPlugin(plugin.name))
pluginLoadPromises.push(this.importPlugin(plugin.name, plugin.version, plugin.load_type, false));
}
}
await Promise.all(pluginLoadPromises);
const loadEnd = performance.now();
@@ -334,6 +343,10 @@ class PluginLoader extends Logger {
showModal(<PluginUninstallModal name={name} title={title} buttonText={buttonText} description={description} />);
}
public disablePlugin(name: string, title: string, buttonText: string, description: string) {
showModal(<PluginDisablelModal name={name} title={title} buttonText={buttonText} description={description} />);
}
public hasPlugin(name: string) {
return Boolean(this.plugins.find((plugin) => plugin.name == name));
}
@@ -372,6 +385,17 @@ class PluginLoader extends Logger {
this.errorBoundaryHook.deinit();
}
public doDisablePlugin(name: string) {
const plugin = this.plugins.find((plugin) => plugin.name === name);
if (plugin == undefined) return;
plugin?.onDismount?.();
this.plugins = this.plugins.filter((p) => p !== plugin);
this.deckyState.setDisabledPlugins([...this.deckyState.publicState().disabled,
{ name: plugin.name, version: plugin.version }]);
this.deckyState.setPlugins(this.plugins);
}
public unloadPlugin(name: string, skipStateUpdate: boolean = false) {
const plugin = this.plugins.find((plugin) => plugin.name === name);
plugin?.onDismount?.();
@@ -391,12 +415,15 @@ class PluginLoader extends Logger {
return;
}
this.deckyState.setDisabledPlugins(this.deckyState.publicState().disabled.filter(d => d.name !== name))
try {
if (useQueue) this.reloadLock = true;
this.log(`Trying to load ${name}`);
this.unloadPlugin(name, true);
const startTime = performance.now();
await this.importReactPlugin(name, version, loadType);
const endTime = performance.now();
+4
View File
@@ -14,6 +14,8 @@ export interface Plugin {
titleView?: JSX.Element;
}
export type DisabledPlugin = Pick<Plugin, 'name' | 'version'>;
export enum InstallType {
INSTALL,
REINSTALL,
@@ -55,3 +57,5 @@ type installPluginsArgs = [
export let installPlugins = DeckyBackend.callable<installPluginsArgs>('utilities/install_plugins');
export let uninstallPlugin = DeckyBackend.callable<[name: string]>('utilities/uninstall_plugin');
export let enablePlugin = DeckyBackend.callable<[name: string]>('utilities/enable_plugin');
export let disablePlugin = DeckyBackend.callable<[name: string]>('utilities/disable_plugin');
+3 -7
View File
@@ -1,4 +1,5 @@
import {
EUIMode,
ErrorBoundary,
Patch,
afterPatch,
@@ -31,11 +32,6 @@ declare global {
}
}
export enum UIMode {
BigPicture = 4,
Desktop = 7,
}
const isPatched = Symbol('is patched');
class RouterHook extends Logger {
@@ -76,13 +72,13 @@ class RouterHook extends Logger {
this.error('Failed to find router stack module');
}
this.modeChangeRegistration = SteamClient.UI.RegisterForUIModeChanged((mode: UIMode) => {
this.modeChangeRegistration = SteamClient.UI.RegisterForUIModeChanged((mode: EUIMode) => {
this.debug(`UI mode changed to ${mode}`);
if (this.patchedModes.has(mode)) return;
this.patchedModes.add(mode);
this.debug(`Patching router for UI mode ${mode}`);
switch (mode) {
case UIMode.BigPicture:
case EUIMode.GamePad:
this.debug('Patching gamepad router');
this.patchGamepadRouter();
break;
+1 -1
View File
@@ -64,7 +64,7 @@ class Toaster extends Logger {
nNotificationID: window.NotificationStore.m_nNextTestNotificationID++,
bNewIndicator: toast.showNewIndicator,
rtCreated: Date.now(),
eType: toast.eType || 13,
eType: toast.eType || 31,
eSource: 1, // Client
nToastDurationMS: toast.duration || (toast.duration = 5e3),
data: toast,
Regular → Executable
+29 -5
View File
@@ -2,6 +2,13 @@
# Usage: deckdebug.sh DECKIP:8081
# Dependencies: websocat jq curl chromium
if [ "$#" -ne 1 ]; then
echo "Error: Missing or incorrect argument." >&2
echo "Usage: deckdebug.sh DECKIP:8081" >&2
exit 1
fi
# https://jackson.dev/post/a-portable-nix-shell-shebang/
if [ -z "$INSIDE_NIX_RANDOMSTRING" ] && command -v nix &> /dev/null; then
# If the user has nix, relaunch in nix shell with dependencies added
@@ -13,7 +20,20 @@ if [ -z "$INSIDE_NIX_RANDOMSTRING" ] && command -v nix &> /dev/null; then
exit $?
fi
chromium --remote-debugging-port=9222 &
[[ -f "$HOME/.config/deckdebug/config.sh" ]] && source "$HOME/.config/deckdebug/config.sh"
CHROMIUM="${CHROMIUM:-chromium}"
required_dependencies=(websocat jq curl $CHROMIUM)
# Check if the dependencies are installed
for cmd in "${required_dependencies[@]}"; do
if ! command -v "$cmd" &> /dev/null; then
echo "Error: '$cmd' is not installed. Please install it and try again." >&2
exit 1
fi
done
$CHROMIUM --remote-debugging-port=9222 &
sleep 2
ADDR=$1
@@ -32,13 +52,17 @@ while :; do
TARGET=$NEWTARGET
TARGETURL="http://$ADDR/devtools/inspector.html?ws=$ADDR/devtools/page/$TARGET"
LOCALTARGET=$(echo '{"id": 1, "method": "Target.createTarget", "params": {"background": true, "url": "'$TARGETURL'"}}
echo '{"id": 1, "method": "Target.createTarget", "params": {"background": true, "url": "'$TARGETURL'"}}
{"id": 2, "method": "Target.closeTarget", "params": {"targetId": "'$LOCALTARGET'"}}' \
| websocat ws://$LOCAL/devtools/page/$LOCALTARGET \
| jq -r '.result.targetId')
| websocat -t ws://$LOCAL/devtools/page/$LOCALTARGET
sleep 2
LOCALTARGETS=$(curl -s http://$LOCAL/json/list)
LOCALTARGET=$(jq -r '.[] | select(.title | startswith("DevTools")) | .id' <<< "$LOCALTARGETS")
echo started devtools at $LOCALTARGET
fi
sleep 5
done
done
Regular → Executable
View File
+120
View File
@@ -0,0 +1,120 @@
#!/usr/bin/env bash
# ./script/task.sh: Run a VSCode task from tasks.json including its dependencies.
#
# Usage: ./scripts/task.sh TASK_LABEL
#
# This script looks for .vscode/tasks.json in your workspace folder (or current directory)
# and executes the command associated with the given task label.
#
# It also handles the "dependsOn" field recursively.
#
# Requirements: jq sed
# https://jackson.dev/post/a-portable-nix-shell-shebang/
if [ -z "$INSIDE_NIX_RANDOMSTRING" ] && command -v nix &> /dev/null; then
# If the user has nix, relaunch in nix shell with dependencies added
INSIDE_NIX_RANDOMSTRING=1 nix shell \
nixpkgs#jq \
nixpkgs#gnused \
--command "$0" "$@"
exit $?
fi
required_dependencies=(jq sed)
# Check if the dependencies are installed
for cmd in "${required_dependencies[@]}"; do
if ! command -v "$cmd" &> /dev/null; then
echo "Error: '$cmd' is not installed. Please install it and try again." >&2
exit 1
fi
done
set -euo pipefail
# Use WORKSPACE_FOLDER if set; otherwise, assume current directory.
WORKSPACE_FOLDER="${WORKSPACE_FOLDER:-$(pwd)}"
TASKS_FILE="$WORKSPACE_FOLDER/.vscode/tasks.json"
if [ ! -f "$TASKS_FILE" ]; then
echo "Error: tasks.json not found at $TASKS_FILE" >&2
exit 1
fi
if [ $# -lt 1 ]; then
echo "Usage: $0 TASK_LABEL" >&2
exit 1
fi
# Remove comment lines (lines starting with //) from the tasks file to be compliant with the JSON format.
TASKS_JSON=$(sed '/^[[:space:]]*\/\//d' "$TASKS_FILE")
TASK_LABEL="$1"
shift
# run_task recursively looks up the task by label,
# runs any dependencies first, then executes its command.
run_task() {
local label="$1"
echo "Looking up task: $label"
# Get the task object from the cleaned JSON.
local task
task=$(echo "$TASKS_JSON" | jq --arg label "$label" -r '.tasks[] | select(.label == $label)')
if [ -z "$task" ]; then
echo "Error: Task with label '$label' not found in $TASKS_FILE" >&2
exit 1
fi
# If the task has dependencies, run them first.
local depends
depends=$(echo "$task" | jq -r '.dependsOn? // empty')
if [ -n "$depends" ] && [ "$depends" != "null" ]; then
# "dependsOn" can be an array or a string.
if echo "$depends" | jq -e 'if type=="array" then . else empty end' >/dev/null; then
for dep in $(echo "$depends" | jq -r '.[]'); do
run_task "$dep"
done
else
run_task "$depends"
fi
fi
# Check if the task has either a command or script.
local has_command has_script
has_command=$(echo "$task" | jq -r 'has("command")')
has_script=$(echo "$task" | jq -r 'has("script")')
if [[ "$has_command" != "true" && "$has_script" != "true" ]]; then
echo "Task '$label' has no command or script; skipping execution."
return
fi
# Determine the command to run:
local cmd=""
if echo "$task" | jq 'has("command")' | grep -q "true"; then
cmd=$(echo "$task" | jq -r '.command')
elif echo "$task" | jq 'has("script")' | grep -q "true"; then
local script
script=$(echo "$task" | jq -r '.script')
local path
path=$(echo "$task" | jq -r '.path // empty')
if [ -n "$path" ]; then
cmd="cd $path && npm run $script"
else
cmd="npm run $script"
fi
else
echo "Error: Task '$label' does not have a command or script." >&2
exit 1
fi
# Substitute ${workspaceFolder} with the actual folder path.
cmd="${cmd//\$\{workspaceFolder\}/$WORKSPACE_FOLDER}"
echo "Running task '$label': $cmd"
# Run the task in a subshell so that directory changes don't persist.
( eval "$cmd" )
}
run_task "$TASK_LABEL"