From f1e5cb3f5f48d076fa578226419203eff3192980 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 17 Nov 2026 15:28:07 +0100 Subject: [PATCH] chore: pin the bootstraps to the split installer --- install.ps1 | 2 +- install.sh | 2 +- install/launchers/index.json | 16 ++-- mypy-baseline.txt | 181 ----------------------------------- 4 files changed, 10 insertions(+), 191 deletions(-) delete mode 100644 mypy-baseline.txt diff --git a/install.ps1 b/install.ps1 index 1aa4fabb6..57609743d 100644 --- a/install.ps1 +++ b/install.ps1 @@ -16,7 +16,7 @@ # and Invoke-WebRequest throws on a cut transfer before the hash is read: # the site's build rewrites this line there (scripts/sitebootstrap.py). $mismatchAdvice = "The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that." - $defaultInstallSha256 = "5ff90f40cfcdab22fd1056f9a40ea2193541155eaf4c1ab48c8d16ac1f230c44" + $defaultInstallSha256 = "cc9b659e56ddd209196f2ab9401ea1530c0d16d944922237dfa37d429b8e1c82" # The pin above refuses any changed byte: this cap only stops a body that # cannot be the installer (a sign-in portal's page) before it is hashed. $maximumInstallerBytes = 8MB diff --git a/install.sh b/install.sh index 604ab4f14..b7cd1e74b 100755 --- a/install.sh +++ b/install.sh @@ -23,7 +23,7 @@ DEFAULT_INSTALL_URL="https://raw.githubusercontent.com/Abdess/retrobios/main/ins # curl or wget stop on a cut transfer before the hash is read: the site's # build rewrites this line there (scripts/sitebootstrap.py). MISMATCH_ADVICE="The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that." -DEFAULT_INSTALL_SHA256="5ff90f40cfcdab22fd1056f9a40ea2193541155eaf4c1ab48c8d16ac1f230c44" +DEFAULT_INSTALL_SHA256="cc9b659e56ddd209196f2ab9401ea1530c0d16d944922237dfa37d429b8e1c82" # The pin above refuses any changed byte: this cap only stops a body that # cannot be the installer (a sign-in portal's page) before it is hashed. MAX_INSTALLER_BYTES=8388608 diff --git a/install/launchers/index.json b/install/launchers/index.json index 2b8f5014e..aaaba87a6 100644 --- a/install/launchers/index.json +++ b/install/launchers/index.json @@ -27,8 +27,8 @@ { "dest": "roms/ports/retrobios/install.py", "repo_path": "install.py", - "size": 1384197, - "sha256": "5ff90f40cfcdab22fd1056f9a40ea2193541155eaf4c1ab48c8d16ac1f230c44", + "size": 1439914, + "sha256": "cc9b659e56ddd209196f2ab9401ea1530c0d16d944922237dfa37d429b8e1c82", "executable": false }, { @@ -71,8 +71,8 @@ "muos": { "archive": { "dest": "ARCHIVE/RetroBIOS.muxapp", - "size": 1437822, - "sha256": "c82fdd8134e2579f5fcff020a3b1b97135bb73ee8893b4aaa892022b31792021" + "size": 1493539, + "sha256": "f23c4a056cd9cb85f2ae653a4bbeea329c877be3b6ed69d3212bda7800ec23b3" }, "members": [ { @@ -92,8 +92,8 @@ { "name": "RetroBIOS/install.py", "repo_path": "install.py", - "size": 1384197, - "sha256": "5ff90f40cfcdab22fd1056f9a40ea2193541155eaf4c1ab48c8d16ac1f230c44", + "size": 1439914, + "sha256": "cc9b659e56ddd209196f2ab9401ea1530c0d16d944922237dfa37d429b8e1c82", "executable": false }, { @@ -166,8 +166,8 @@ { "dest": ".config/modules/retrobios/install.py", "repo_path": "install.py", - "size": 1384197, - "sha256": "5ff90f40cfcdab22fd1056f9a40ea2193541155eaf4c1ab48c8d16ac1f230c44", + "size": 1439914, + "sha256": "cc9b659e56ddd209196f2ab9401ea1530c0d16d944922237dfa37d429b8e1c82", "executable": false }, { diff --git a/mypy-baseline.txt b/mypy-baseline.txt deleted file mode 100644 index 0f598dde9..000000000 --- a/mypy-baseline.txt +++ /dev/null @@ -1,181 +0,0 @@ -install.py:0: error: "Invocation" has no attribute "__iter__" (not iterable) [attr-defined] -install.py:0: error: "None" object is not iterable [misc] -install.py:0: error: "OSError" has no attribute "attempts" [attr-defined] -install.py:0: error: "_Unclosed" has no attribute "name" [attr-defined] -install.py:0: error: "bool" has no attribute "name" [attr-defined] -install.py:0: error: "bool" has no attribute "parent" [attr-defined] -install.py:0: error: "object" has no attribute "get" [attr-defined] -install.py:0: error: "object" has no attribute "get" [attr-defined] -install.py:0: error: "object" object is not iterable [misc] -install.py:0: error: "object" object is not iterable [misc] -install.py:0: error: Argument 1 to "_ZippedLookup" has incompatible type "FolderIndex | None"; expected "FolderIndex" [arg-type] -install.py:0: error: Argument 1 to "__iadd__" of "list" has incompatible type "Invocation"; expected "Iterable[str]" [arg-type] -install.py:0: error: Argument 1 to "_digest_file" has incompatible type "Path | None"; expected "Path" [arg-type] -install.py:0: error: Argument 1 to "_folder_writable" has incompatible type "Path | None"; expected "Path" [arg-type] -install.py:0: error: Argument 1 to "_listed_names" has incompatible type "bool"; expected "Path" [arg-type] -install.py:0: error: Argument 1 to "_nearest_folder" has incompatible type "Path | None"; expected "Path" [arg-type] -install.py:0: error: Argument 1 to "_replace_released" has incompatible type "Path | None"; expected "Path" [arg-type] -install.py:0: error: Argument 1 to "append" of "list" has incompatible type "CardApp | None"; expected "CardApp" [arg-type] -install.py:0: error: Argument 1 to "append" of "list" has incompatible type "TuiKey | TuiMouse"; expected "TuiKey" [arg-type] -install.py:0: error: Argument 1 to "cannot_write_words" has incompatible type "Path | None"; expected "Path" [arg-type] -install.py:0: error: Argument 1 to "chmod" has incompatible type "Path | None"; expected "int | str | bytes | PathLike[str] | PathLike[bytes]" [arg-type] -install.py:0: error: Argument 1 to "copy_source_refusal" has incompatible type "object"; expected "Path | None" [arg-type] -install.py:0: error: Argument 1 to "first_holding" of "FolderIndex" has incompatible type "set[Any | None]"; expected "set[int]" [arg-type] -install.py:0: error: Argument 1 to "len" has incompatible type "Any | None"; expected "Sized" [arg-type] -install.py:0: error: Argument 1 to "len" has incompatible type "Any | None"; expected "Sized" [arg-type] -install.py:0: error: Argument 1 to "len" has incompatible type "Any | None"; expected "Sized" [arg-type] -install.py:0: error: Argument 1 to "len" has incompatible type "list[dict[Any, Any]] | None"; expected "Sized" [arg-type] -install.py:0: error: Argument 1 to "remove" of "list" has incompatible type "int"; expected "FolderIndex" [arg-type] -install.py:0: error: Argument 1 to "replace" has incompatible type "Path | None"; expected "str | bytes | PathLike[str] | PathLike[bytes]" [arg-type] -install.py:0: error: Argument 1 to "setdefault" of "MutableMapping" has incompatible type "Any | None"; expected "str" [arg-type] -install.py:0: error: Argument 1 to "settimeout" of "socket" has incompatible type "object"; expected "float | None" [arg-type] -install.py:0: error: Argument 1 to "shown_path" has incompatible type "Path | None"; expected "Path | str" [arg-type] -install.py:0: error: Argument 1 to "shown_path" has incompatible type "Path | None"; expected "Path | str" [arg-type] -install.py:0: error: Argument 1 to "shown_path" has incompatible type "Path | None"; expected "Path | str" [arg-type] -install.py:0: error: Argument 1 to "shown_path" has incompatible type "Path | None"; expected "Path | str" [arg-type] -install.py:0: error: Argument 2 to "_browse_to" has incompatible type "object"; expected "Path | None" [arg-type] -install.py:0: error: Argument 2 to "_browse_to" has incompatible type "object"; expected "Path | None" [arg-type] -install.py:0: error: Argument 2 to "_choose_card" has incompatible type "Path | None"; expected "Path" [arg-type] -install.py:0: error: Argument 2 to "_choose_card" has incompatible type "object"; expected "Path" [arg-type] -install.py:0: error: Argument 2 to "_found_elsewhere" has incompatible type "FolderIndex | None"; expected "FolderIndex" [arg-type] -install.py:0: error: Argument 2 to "_setup_label" has incompatible type "Path | None"; expected "Path" [arg-type] -install.py:0: error: Argument 2 to "_toggle_region" has incompatible type "object"; expected "str" [arg-type] -install.py:0: error: Argument 2 to "core_dirs" has incompatible type "Path | None"; expected "Path" [arg-type] -install.py:0: error: Argument 2 to "detected_os" has incompatible type "Path | None"; expected "Path" [arg-type] -install.py:0: error: Argument 2 to "first_holding" of "FolderIndex" has incompatible type "set[Any | None]"; expected "set[str]" [arg-type] -install.py:0: error: Argument 2 to "from_bytes" of "int" has incompatible type "str"; expected "Literal['little', 'big']" [arg-type] -install.py:0: error: Argument 2 to "insert" of "list" has incompatible type "str"; expected "TuiLine" [arg-type] -install.py:0: error: Argument 2 to "insert" of "list" has incompatible type "str"; expected "TuiLine" [arg-type] -install.py:0: error: Argument 2 to "insert" of "list" has incompatible type "str"; expected "TuiLine" [arg-type] -install.py:0: error: Argument 2 to "insert" of "list" has incompatible type "str"; expected "TuiLine" [arg-type] -install.py:0: error: Argument 2 to "insert" of "list" has incompatible type "str"; expected "TuiLine" [arg-type] -install.py:0: error: Argument 3 to "CardSetup" has incompatible type "str | None"; expected "str" [arg-type] -install.py:0: error: Argument 3 to "_choose" has incompatible type "Path | None"; expected "Path" [arg-type] -install.py:0: error: Argument 3 to "_choose" has incompatible type "object"; expected "Path" [arg-type] -install.py:0: error: Argument 3 to "_misplaced" has incompatible type "FolderIndex | None"; expected "FolderIndex" [arg-type] -install.py:0: error: Argument 3 to "_wrong_contents" has incompatible type "FolderIndex | None"; expected "FolderIndex" [arg-type] -install.py:0: error: Argument 3 to "create_connection" has incompatible type "object"; expected "tuple[Any, ...] | str | Buffer | None" [arg-type] -install.py:0: error: Argument 3 to "keep_regions" has incompatible type "list[str]"; expected "frozenset[Any]" [arg-type] -install.py:0: error: Argument 4 to "_write_verified" has incompatible type "Callable[[], IO[bytes]]"; expected "Callable[[], ContextManager[BinaryIO]]" [arg-type] -install.py:0: error: Argument 6 to "_compose" has incompatible type "tuple[()]"; expected "list[Any]" [arg-type] -install.py:0: error: Argument 6 to "_compose" has incompatible type "tuple[()]"; expected "list[Any]" [arg-type] -install.py:0: error: Argument 6 to "_compose" has incompatible type "tuple[()]"; expected "list[Any]" [arg-type] -install.py:0: error: Argument 7 to "_install_data_member" has incompatible type "object"; expected "list[tuple[str, str]]" [arg-type] -install.py:0: error: Cannot determine type of "cores" [has-type] -install.py:0: error: Cannot determine type of "mount" [has-type] -install.py:0: error: Cannot determine type of "mount" [has-type] -install.py:0: error: Cannot determine type of "plat" [has-type] -install.py:0: error: Cannot determine type of "plat" [has-type] -install.py:0: error: Cannot determine type of "plat" [has-type] -install.py:0: error: Cannot determine type of "regions" [has-type] -install.py:0: error: Cannot determine type of "system" [has-type] -install.py:0: error: Cannot determine type of "system" [has-type] -install.py:0: error: Cannot determine type of "system" [has-type] -install.py:0: error: Cannot determine type of "systems" [has-type] -install.py:0: error: Cannot infer type of lambda [misc] -install.py:0: error: Cannot infer type of lambda [misc] -install.py:0: error: Cannot infer type of lambda [misc] -install.py:0: error: Cannot infer type of lambda [misc] -install.py:0: error: Incompatible default for parameter "after" (default has type "tuple[()]", parameter has type "list[Any]") [assignment] -install.py:0: error: Incompatible default for parameter "copied" (default has type "tuple[()]", parameter has type "list[str]") [assignment] -install.py:0: error: Incompatible default for parameter "cores" (default has type "tuple[()]", parameter has type "list[str]") [assignment] -install.py:0: error: Incompatible default for parameter "footer" (default has type "tuple[()]", parameter has type "list[Any]") [assignment] -install.py:0: error: Incompatible default for parameter "omitted" (default has type "tuple[()]", parameter has type "list[dict[Any, Any]]") [assignment] -install.py:0: error: Incompatible default for parameter "pinned" (default has type "tuple[()]", parameter has type "list[Any]") [assignment] -install.py:0: error: Incompatible default for parameter "regions" (default has type "tuple[()]", parameter has type "list[str]") [assignment] -install.py:0: error: Incompatible default for parameter "systems" (default has type "tuple[()]", parameter has type "list[str]") [assignment] -install.py:0: error: Incompatible default for parameter "trees" (default has type "tuple[()]", parameter has type "list[tuple[dict[Any, Any], dict[str, dict[Any, Any]]]]") [assignment] -install.py:0: error: Incompatible return value type (got "Any | object", expected "str") [return-value] -install.py:0: error: Incompatible return value type (got "IO[bytes]", expected "ContextManager[BinaryIO]") [return-value] -install.py:0: error: Incompatible return value type (got "Path | None", expected "Path") [return-value] -install.py:0: error: Incompatible return value type (got "list[TuiLine]", expected "list[str]") [return-value] -install.py:0: error: Incompatible return value type (got "list[tuple[str | None, str]]", expected "list[tuple[str, str]]") [return-value] -install.py:0: error: Incompatible return value type (got "object", expected "dict[Any, Any]") [return-value] -install.py:0: error: Incompatible types in "yield" (actual type "IO[bytes]", expected type "BinaryIO") [misc] -install.py:0: error: Incompatible types in "yield" (actual type "tuple[str, int, Callable[[Any], IO[bytes] | None]]", expected type "tuple[str, int, Callable[[], BinaryIO]]") [misc] -install.py:0: error: Incompatible types in "yield" (actual type "tuple[str, int, Callable[[Any], IO[bytes]]]", expected type "tuple[str, int, Callable[[], BinaryIO]]") [misc] -install.py:0: error: Incompatible types in assignment (expression has type "Any | bool", variable has type "str") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "Any | list[Any]", variable has type "set[str]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "FolderIndex", base class "tuple" defined the type as "Callable[[Any, SupportsIndex, SupportsIndex], int]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "FolderIndex", base class "tuple" defined the type as "Callable[[Any, SupportsIndex, SupportsIndex], int]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "FolderIndex", variable has type "int") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "GamesChoice", variable has type "tuple[list[str], list[str], list[str]] | None") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "GamesChoice", variable has type "tuple[list[str], list[str], list[str]] | None") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "GamesChoice", variable has type "tuple[list[str], list[str], list[str]] | None") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "bool") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "Progress | None", variable has type "Progress") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "_TemporaryFileWrapper[bytes]", variable has type "_Unclosed") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "float", variable has type "int | None") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "frozenset[Any] | None", variable has type "list[str]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "frozenset[Any] | None", variable has type "tuple[int, str] | None") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Any, SupportsIndex, SupportsIndex], int]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Any], int]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "int", variable has type "list[dict[Any, Any]] | list[dict[Any, Any] | Any]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "int", variable has type "str") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "list[dict[Any, Any] | Any]", variable has type "int") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "list[str]", variable has type "Invocation") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "set[int]", variable has type "int") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "set[int]", variable has type "list[dict[Any, Any]]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "set[int]", variable has type "list[dict[Any, Any]]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "str", target has type "int") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "Path | None") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "bool") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "tuple[list[str], list[str], list[str]] | None") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "tuple[int, str]", variable has type "frozenset[Any] | None") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "tuple[list[str], list[str], list[str]] | str | GamesChoice | None", variable has type "tuple[list[str], list[str], list[str]] | None") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "tuple[tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any]]", variable has type "tuple[tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any]]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "tuple[tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any]]", variable has type "tuple[tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any]]") [assignment] -install.py:0: error: Item "None" of "BinaryIO | None" has no attribute "truncate" [union-attr] -install.py:0: error: Item "None" of "Element[str] | None" has no attribute "iter" [union-attr] -install.py:0: error: Item "None" of "PackSource | None" has no attribute "name" [union-attr] -install.py:0: error: Item "None" of "PackSource | None" has no attribute "name" [union-attr] -install.py:0: error: Item "None" of "Path | None" has no attribute "read_text" [union-attr] -install.py:0: error: Item "None" of "Path | None" has no attribute "write_text" [union-attr] -install.py:0: error: Item "None" of "Terminal | None" has no attribute "stream" [union-attr] -install.py:0: error: Item "None" of "Terminal | None" has no attribute "stream" [union-attr] -install.py:0: error: Item "None" of "Terminal | None" has no attribute "stream" [union-attr] -install.py:0: error: Item "None" of "Terminal | None" has no attribute "stream" [union-attr] -install.py:0: error: Item "None" of "TuiHits | None" has no attribute "frame" [union-attr] -install.py:0: error: Item "None" of "TuiHits | None" has no attribute "shown" [union-attr] -install.py:0: error: List comprehension has incompatible type List[object]; expected List[str] [misc] -install.py:0: error: List item 0 has incompatible type "int"; expected "FolderIndex" [list-item] -install.py:0: error: List item 0 has incompatible type "tuple[str | None, str]"; expected "tuple[str, str]" [list-item] -install.py:0: error: List item 0 has incompatible type "tuple[str | None, str]"; expected "tuple[str, str]" [list-item] -install.py:0: error: List item 3 has incompatible type "tuple[str | None, str]"; expected "tuple[str, str]" [list-item] -install.py:0: error: Module has no attribute "HKEY_CURRENT_USER" [attr-defined] -install.py:0: error: Module has no attribute "HKEY_LOCAL_MACHINE" [attr-defined] -install.py:0: error: Module has no attribute "LK_NBLCK" [attr-defined] -install.py:0: error: Module has no attribute "OpenKey" [attr-defined] -install.py:0: error: Module has no attribute "QueryValueEx" [attr-defined] -install.py:0: error: Module has no attribute "locking" [attr-defined] -install.py:0: error: Name "top" already defined on line 0 [no-redef] -install.py:0: error: Need type annotation for "removed" (hint: "removed: list[] = ...") [var-annotated] -install.py:0: error: Need type annotation for "words" (hint: "words: list[] = ...") [var-annotated] -install.py:0: error: No overload variant of "__getitem__" of "list" matches argument type "object" [call-overload] -install.py:0: error: No overload variant of "min" matches argument types "float", "object" [call-overload] -install.py:0: error: Unsupported left operand type for + ("None") [operator] -install.py:0: error: Unsupported left operand type for + ("None") [operator] -install.py:0: error: Unsupported left operand type for + ("None") [operator] -install.py:0: error: Unsupported left operand type for < ("object") [operator] -install.py:0: error: Unsupported operand types for + ("object" and "int") [operator] -install.py:0: error: Unsupported operand types for + ("object" and "int") [operator] -install.py:0: error: Unsupported operand types for / ("Path" and "None") [operator] -install.py:0: error: Unsupported operand types for / ("Path" and "None") [operator] -install.py:0: error: Unsupported operand types for > ("str" and "int") [operator] -install.py:0: error: Unsupported operand types for in ("object" and "str") [operator] -install.py:0: error: Unsupported right operand type for in ("int") [operator] -install.py:0: error: Value of type "Match[str] | None" is not indexable [index] -install.py:0: error: Value of type "Match[str] | None" is not indexable [index] -install.py:0: error: Value of type "dict[Any, Any] | None" is not indexable [index] -install.py:0: error: Value of type "object" is not indexable [index] -install.py:0: error: Value of type "object" is not indexable [index] -install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] -install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] -install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] -install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] -install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] -install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] -install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] -install.py:0: error: Value of type variable "SupportsRichComparisonT" of "min" cannot be "object" [type-var] -install.py:0: error: Value of type variable "SupportsRichComparisonT" of "sorted" cannot be "Any | None" [type-var]