mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-15 18:13:40 +03:00
Fixed plugin installation ssl verification issue (#101)
* Added cert location debugging * Install certifi * Try adding manual cacert in install request * Properly use ssl * More efficiently load ssl certificate
This commit is contained in:
@@ -13,6 +13,8 @@ from subprocess import Popen
|
||||
|
||||
import json
|
||||
|
||||
import helpers
|
||||
|
||||
class PluginInstallContext:
|
||||
def __init__(self, artifact, name, version, hash) -> None:
|
||||
self.artifact = artifact
|
||||
@@ -72,7 +74,7 @@ class PluginBrowser:
|
||||
self.log.info(f"Installing {name} (Version: {version})")
|
||||
async with ClientSession() as client:
|
||||
self.log.debug(f"Fetching {artifact}")
|
||||
res = await client.get(artifact)
|
||||
res = await client.get(artifact, ssl=helpers.get_ssl_context())
|
||||
if res.status == 200:
|
||||
self.log.debug("Got 200. Reading...")
|
||||
data = await res.read()
|
||||
|
||||
Reference in New Issue
Block a user