Skip to content

Commit 42edec0

Browse files
authored
Merge pull request #11 from NoTaskStudios/release/v1.0.6
Release/v1.0.6
2 parents 8897058 + ac2b674 commit 42edec0

8 files changed

Lines changed: 241 additions & 92 deletions

File tree

.releaserc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"tagFormat": "${version}",
33
"preset": "angular",
4+
"repositoryUrl": "https://github.com/NoTaskStudios/unity-cli-tools.git",
45
"branches": [
56
"master",
67
{
78
"name": "release/v*",
8-
"type": "prerelease",
9-
"prerelease": true,
9+
"prerelease": "rc",
1010
"channel": "rc"
1111
}
1212
],

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## [1.0.6-rc.2](https://github.com/NoTaskStudios/unity-cli-tools/compare/1.0.6-rc.1...1.0.6-rc.2) (2025-04-30)
2+
3+
4+
### Bug Fixes
5+
6+
* **Hub:** auto detect system arch when arg no passed ([1e6ff27](https://github.com/NoTaskStudios/unity-cli-tools/commit/1e6ff27ca37a70014823693489447d8cd2ada9b9))
7+
8+
## [1.0.6-rc.1](https://github.com/NoTaskStudios/unity-cli-tools/compare/1.0.5...1.0.6-rc.1) (2025-04-30)
9+
10+
11+
### Bug Fixes
12+
13+
* **Hub:** adjust in default params values ([ca12050](https://github.com/NoTaskStudios/unity-cli-tools/commit/ca120505433e4c6c01c54e1917de564a4883416b))
14+
* **Hub:** Remove some class members ([78c37e2](https://github.com/NoTaskStudios/unity-cli-tools/commit/78c37e2b83197e6d8445bbdeeb23ff4c457eedd0))
15+
116
## [1.0.5](https://github.com/NoTaskStudios/unity-cli-tools/compare/1.0.4...1.0.5) (2025-04-29)
217

318

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@notask/unity-cli-tools",
3-
"version": "1.0.5",
3+
"version": "1.0.6-rc.2",
44
"main": "dist/cjs/index.js",
55
"module": "dist/esm/index.js",
66
"types": "dist/esm/index.d.ts",

src/types/unity.ts

Lines changed: 137 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,222 @@
1-
export type UnityEditorInfo = Record<string, string>;
2-
1+
/**
2+
* Interface representing a Unity project as stored in Unity Hub
3+
* Contains metadata about a project tracked by Unity Hub
4+
*/
35
export interface UnityHubProject {
6+
/** Project name */
47
title: string;
8+
9+
/** Timestamp of last modification (in milliseconds since epoch) */
510
lastModified: number;
11+
12+
/** Whether the project uses a custom editor (non-standard Unity version) */
613
isCustomEditor: boolean;
14+
15+
/** Full path to the project folder */
716
path: string;
17+
18+
/** Path to the parent folder containing the project */
819
containingFolderPath: string;
20+
21+
/** Unity version used by the project (e.g., "2023.3.0f1") */
922
version: string;
23+
24+
/** CPU architecture of the Unity editor (e.g., "x64") */
1025
architecture: string;
26+
27+
/** Specific Unity changeset hash for this version */
1128
changeset: string;
29+
30+
/** Whether the project is marked as favorite in Unity Hub */
1231
isFavorite: boolean;
32+
33+
/** Unique identifier for the project used locally */
1334
localProjectId: string;
35+
36+
/** Whether Unity Cloud services are enabled for this project */
1437
cloudEnabled: boolean;
1538
}
1639

40+
/**
41+
* Interface representing the structure of the Unity Hub projects list file
42+
* Contains an array of Unity projects tracked by Unity Hub
43+
*/
1744
export interface UnityHubProjectsList {
45+
/** Array of Unity projects */
1846
data: UnityHubProject[];
1947
}
2048

2149
export enum UnityModules {
50+
/** Unity documentation */
2251
Documentation = "documentation",
52+
53+
/** Android build support module */
2354
AndroidBuildSupport = "android",
55+
56+
/** Android SDK and NDK tools child modules */
2457
AndroidSDKNDKTools = "android-sdk-ndk-tools",
58+
59+
/** OpenJDK for Android development */
2560
OpenJDK = "android-open-jdk",
61+
62+
/** iOS build support module */
2663
IOSBuildSupport = "ios",
64+
65+
/** tvOS build support module */
2766
TvOSBuildSupport = "appletv",
67+
68+
/** Linux build support with Mono scripting backend */
2869
LinuxBuildSupportMono = "linux-mono",
70+
71+
/** Linux build support with IL2CPP scripting backend */
2972
LinuxBuildSupportIL2CPP = "linux-il2cpp",
73+
74+
/** WebGL build support module */
3075
WebGLBuildSupport = "webgl",
76+
77+
/** Generic Windows build support */
3178
WindowsBuildSupport = "windows",
79+
80+
/** Vuforia Augmented Reality support */
3281
VuforiaAR = "vuforia-ar",
82+
83+
/** Windows build support with Mono scripting backend */
3384
WindowsBuildSupportMono = "windows-mono",
85+
86+
/** Lumin (Magic Leap) build support */
3487
LuminBuildSupport = "lumin",
88+
89+
/** Visual Studio Community integration */
3590
VisualStudioCommunity = "visualstudio",
91+
92+
/** macOS build support with Mono scripting backend */
3693
MacBuildSupportMono = "mac-mono",
94+
95+
/** macOS build support with IL2CPP scripting backend */
3796
MacBuildSupportIL2CPP = "mac-il2cpp",
97+
98+
/** Universal Windows Platform support */
3899
UniversalWindowsPlatform = "universal-windows-platform",
100+
101+
/** Universal Windows Platform build support with IL2CPP */
39102
UWPBuildSupportIL2CPP = "uwp-il2cpp",
103+
104+
/** Universal Windows Platform build support with .NET */
40105
UWPBuildSupportDotNet = "uwp-.net",
41106
}
42107

108+
/**
109+
* Enum for language packs that can be installed for Unity Editor
110+
* These values correspond to the language module IDs used in Unity Hub CLI commands
111+
*/
43112
export enum UnityEditorLanguages {
113+
/** Japanese language pack */
44114
Japanese = "language-ja",
115+
116+
/** Korean language pack */
45117
Korean = "language-ko",
118+
119+
/** Simplified Chinese language pack */
46120
ChineseSimplified = "language-zh-hans",
121+
122+
/** Traditional Chinese language pack */
47123
ChineseTraditional = "language-zh-hant",
124+
125+
/** Chinese language pack (mainland China) */
48126
Chinese = "language-zh-cn",
49127
}
50128

129+
/**
130+
* Enum for Unity Editor architectures
131+
* These values correspond to the architecture module IDs used in Unity Hub CLI commands
132+
*/
51133
export enum EditorArchitecture {
52134
x86_64 = "x86_64",
53135
arm64 = "arm64",
54136
}
55137

138+
/**
139+
* Union type for all Unity module IDs (both regular modules and language packs)
140+
* Used when adding modules to Unity installations
141+
*/
56142
export type ModuleId = UnityModules | UnityEditorLanguages;
143+
57144
export type UnityInstallations = Record<string, string>;
58145

146+
/**
147+
* Type representing a mapping of Unity versions to their installation paths
148+
* Example: { "2023.3.0f1": "C:/Program Files/Unity/Hub/Editor/2023.3.0f1" }
149+
*/
150+
export type UnityEditorInfo = Record<string, string>;
151+
59152
//EDITOR
153+
60154
export interface ProjectInfo {
61155
projectName: string;
62156
projectPath: string;
63157
editorVersion: string;
64-
scenes?: string[];
65158
}
66159

67-
// Ref https://docs.unity3d.com/Packages/com.unity.test-framework@1.4/manual/reference-command-line.html#testplatform
160+
//
161+
/** Enum for Unity test platforms
162+
* These values correspond to the test platform options used in Unity CLI commands
163+
* and are used to specify the type for running tests.
164+
* @link https://docs.unity3d.com/Packages/com.unity.test-framework@1.4/manual/reference-command-line.html#testplatform
165+
*/
68166
export enum TestMode {
167+
/** Play mode test platform */
69168
EditMode = "editmode",
169+
/** Play mode test platform */
70170
PlayMode = "playmode",
71171
}
72172

73-
// Ref: https://docs.unity3d.com/ScriptReference/BuildTarget.html
173+
/**
174+
* Enum for Unity build targets
175+
* These values correspond to the build target options used in Unity CLI commands
176+
* @link https://docs.unity3d.com/ScriptReference/BuildTarget.html
177+
*/
74178
export enum UnityBuildTarget {
179+
/** Standalone OS X build target */
75180
StandaloneOSX = "StandaloneOSX",
181+
182+
/** Standalone Windows build target */
76183
StandaloneWindows = "StandaloneWindows",
184+
185+
/** iOS build target */
77186
iOS = "iOS",
187+
188+
/** Android build target */
78189
Android = "Android",
190+
191+
/** Standalone Windows 64-bit build target */
79192
StandaloneWindows64 = "StandaloneWindows64",
193+
194+
/** WebGL build target */
80195
WebGL = "WebGL",
196+
197+
/** Windows Store App build target */
81198
WSAPlayer = "WSAPlayer",
199+
82200
StandaloneLinux64 = "StandaloneLinux64",
201+
202+
/** PlayStation 4 build target */
83203
PS4 = "PS4",
204+
205+
/** Xbox One build target */
84206
XboxOne = "XboxOne",
207+
208+
/** tvOS build target */
85209
tvOS = "tvOS",
210+
211+
/** Switch build target */
86212
Switch = "Switch",
213+
214+
/** Linux Headless build target */
87215
LinuxHeadlessSimulation = "LinuxHeadlessSimulation",
216+
217+
/** PlayStation 5 build target */
88218
PS5 = "PS5",
219+
220+
/** VisionOS build target */
89221
VisionOS = "VisionOS",
90222
}

0 commit comments

Comments
 (0)