com.wallstop-studios.unity-helpers 2.0.0-rc77.3 → 2.0.0-rc77.5
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.
|
@@ -28,10 +28,47 @@
|
|
|
28
28
|
StringComparer.OrdinalIgnoreCase
|
|
29
29
|
);
|
|
30
30
|
|
|
31
|
+
public static bool IsRunningInBatchMode => Application.isBatchMode;
|
|
32
|
+
|
|
33
|
+
public static bool IsRunningInContinuousIntegration
|
|
34
|
+
{
|
|
35
|
+
get
|
|
36
|
+
{
|
|
37
|
+
if (
|
|
38
|
+
!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("GITHUB_ACTIONS"))
|
|
39
|
+
)
|
|
40
|
+
{
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("CI")))
|
|
45
|
+
{
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("JENKINS_URL")))
|
|
50
|
+
{
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("GITLAB_CI")))
|
|
55
|
+
{
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
31
63
|
internal static string[] AllSpriteLabels;
|
|
32
64
|
|
|
33
65
|
public static string[] GetAllSpriteLabelNames()
|
|
34
66
|
{
|
|
67
|
+
if (IsRunningInContinuousIntegration || IsRunningInBatchMode)
|
|
68
|
+
{
|
|
69
|
+
return Array.Empty<string>();
|
|
70
|
+
}
|
|
71
|
+
|
|
35
72
|
#if UNITY_EDITOR
|
|
36
73
|
if (AllSpriteLabels != null)
|
|
37
74
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "com.wallstop-studios.unity-helpers",
|
|
3
|
-
"version": "2.0.0-rc77.
|
|
3
|
+
"version": "2.0.0-rc77.5",
|
|
4
4
|
"displayName": "Unity Helpers",
|
|
5
5
|
"description": "Various Unity Helper Library",
|
|
6
6
|
"dependencies": {},
|
|
@@ -86,6 +86,8 @@
|
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
|
|
89
|
+
|
|
90
|
+
|
|
89
91
|
|
|
90
92
|
|
|
91
93
|
|