unity-devkit 0.1.21.dev36667980974__py3-none-any.whl → 0.1.22.dev36674472959__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- unity_devkit/player_build.py +21 -2
- {unity_devkit-0.1.21.dev36667980974.dist-info → unity_devkit-0.1.22.dev36674472959.dist-info}/METADATA +1 -1
- {unity_devkit-0.1.21.dev36667980974.dist-info → unity_devkit-0.1.22.dev36674472959.dist-info}/RECORD +5 -5
- {unity_devkit-0.1.21.dev36667980974.dist-info → unity_devkit-0.1.22.dev36674472959.dist-info}/WHEEL +0 -0
- {unity_devkit-0.1.21.dev36667980974.dist-info → unity_devkit-0.1.22.dev36674472959.dist-info}/entry_points.txt +0 -0
unity_devkit/player_build.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import json
|
|
2
|
+
import os
|
|
2
3
|
import re
|
|
3
4
|
import shutil
|
|
4
5
|
import sys
|
|
@@ -28,6 +29,14 @@ UNITYCI_IMAGE_REVISION = "3"
|
|
|
28
29
|
LICENSE_IMAGE_MODULE = "linux-il2cpp"
|
|
29
30
|
PLAYERBUILD_ENTRY = "Outernet.PlayerBuild.Entry"
|
|
30
31
|
|
|
32
|
+
# Pinned to the v2026.07.21 tag of dotnet/install-scripts (raw at the commit SHA, which
|
|
33
|
+
# is immutable, unlike the moving https://dot.net/v1/dotnet-install.sh redirect).
|
|
34
|
+
DOTNET_INSTALL_SCRIPT_COMMIT = "da3ce11ba63f3dbb0fb835d41bda2665d5c48e84"
|
|
35
|
+
DOTNET_INSTALL_SCRIPT_URL = (
|
|
36
|
+
f"https://raw.githubusercontent.com/dotnet/install-scripts/{DOTNET_INSTALL_SCRIPT_COMMIT}/src/dotnet-install.sh"
|
|
37
|
+
)
|
|
38
|
+
DOTNET_SDK_VERSION = "8.0.421"
|
|
39
|
+
|
|
31
40
|
# Unity exits 0 while reporting fatal package-manager errors only in the editor log. Every
|
|
32
41
|
# Unity invocation goes through run_unity_batchmode, which scans the captured log for these
|
|
33
42
|
# signatures and fails regardless of the exit code. Extend the tuple as new silent failures
|
|
@@ -151,8 +160,18 @@ def prepare_unity_project(project_path: Path) -> None:
|
|
|
151
160
|
# their manifest); elsewhere it would demand the dotnet SDK + tool manifest and
|
|
152
161
|
# litter Assets/ with NuGet.config/packages.config/Packages.meta scaffolding.
|
|
153
162
|
if (project_path / "Assets" / "packages.config").exists():
|
|
154
|
-
|
|
155
|
-
|
|
163
|
+
# The unityci editor containers ship no dotnet CLI; provision the pinned SDK on
|
|
164
|
+
# demand into ~/.dotnet (persisting across runs on self-hosted runners).
|
|
165
|
+
env: dict[str, str] = {}
|
|
166
|
+
if not shutil.which("dotnet"):
|
|
167
|
+
install_dir = Path.home() / ".dotnet"
|
|
168
|
+
if not (install_dir / "dotnet").exists():
|
|
169
|
+
script_path = Path(tempfile.gettempdir()) / "dotnet-install.sh"
|
|
170
|
+
bash(f"curl -fsSL {DOTNET_INSTALL_SCRIPT_URL} -o {script_path}")
|
|
171
|
+
bash(f"bash {script_path} --version {DOTNET_SDK_VERSION} --install-dir {install_dir}")
|
|
172
|
+
env = {"PATH": f"{install_dir}{os.pathsep}{os.environ['PATH']}", "DOTNET_CLI_TELEMETRY_OPTOUT": "1"}
|
|
173
|
+
bash("dotnet tool restore", env=env)
|
|
174
|
+
bash(f"dotnet nugetforunity restore {project_path}", env=env)
|
|
156
175
|
|
|
157
176
|
|
|
158
177
|
def parse_environment_fields(entries: Sequence[str]) -> dict[str, str]:
|
{unity_devkit-0.1.21.dev36667980974.dist-info → unity_devkit-0.1.22.dev36674472959.dist-info}/RECORD
RENAMED
|
@@ -7,12 +7,12 @@ unity_devkit/license.py,sha256=nSE3Mn-irTbjom7BOgJf6d8X-O3o7WT8ZJ8XSdhAGVU,828
|
|
|
7
7
|
unity_devkit/license_restore.py,sha256=MMu1duRf_fXw3nbn5-Nsja9BlQXp24RNB69RiOeEOhM,2529
|
|
8
8
|
unity_devkit/lock_unity.py,sha256=-1d-mHva5XUOlki8LSO5qwABR52q7jzc7FTJnnTH9f8,1012
|
|
9
9
|
unity_devkit/matrix.py,sha256=jCi0bMMncFPNWDyGHa48CBz84jCkt70MZ5est6StXLk,2729
|
|
10
|
-
unity_devkit/player_build.py,sha256=
|
|
10
|
+
unity_devkit/player_build.py,sha256=I9QDlDkSlesGHEuf3qIZWcbDCJSmB4UWRgZ4qO0gAM8,11089
|
|
11
11
|
unity_devkit/projects.py,sha256=PO5plIj-mn8KkKOUhGRRIL_sDdd6ohl12neS2poILhs,2665
|
|
12
12
|
unity_devkit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
unity_devkit/test_unity.py,sha256=SpeWnV2hpdZBaGsstL8RTO50C2HEAcvantzBQYeaTpE,1075
|
|
14
14
|
unity_devkit/upm_cache.py,sha256=3TgGjweDj0R8ca_xz25v91lxnguNLBcIn6wKmmvhb_U,1331
|
|
15
|
-
unity_devkit-0.1.
|
|
16
|
-
unity_devkit-0.1.
|
|
17
|
-
unity_devkit-0.1.
|
|
18
|
-
unity_devkit-0.1.
|
|
15
|
+
unity_devkit-0.1.22.dev36674472959.dist-info/METADATA,sha256=AHXMQMQcfBCNTeSWUoHaKIj5EZVhZul3p5jf03Uzx-4,305
|
|
16
|
+
unity_devkit-0.1.22.dev36674472959.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
17
|
+
unity_devkit-0.1.22.dev36674472959.dist-info/entry_points.txt,sha256=ma3InxWKmFwqjQ7e2bJV5cxgH3GYoU2m9wEAvVHczUI,520
|
|
18
|
+
unity_devkit-0.1.22.dev36674472959.dist-info/RECORD,,
|
{unity_devkit-0.1.21.dev36667980974.dist-info → unity_devkit-0.1.22.dev36674472959.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|