@rage-against-the-pixel/unity-cli 1.0.1 → 1.0.3
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.
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +298 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -284
- package/dist/index.js.map +1 -1
- package/dist/logging.js +1 -1
- package/dist/logging.js.map +1 -1
- package/package.json +22 -2
package/dist/cli.d.ts
ADDED
package/dist/cli.js
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
require("source-map-support/register");
|
|
38
|
+
const fs = __importStar(require("fs"));
|
|
39
|
+
const os = __importStar(require("os"));
|
|
40
|
+
const commander_1 = require("commander");
|
|
41
|
+
const path_1 = __importStar(require("path"));
|
|
42
|
+
const license_client_1 = require("./license-client");
|
|
43
|
+
const utilities_1 = require("./utilities");
|
|
44
|
+
const unity_hub_1 = require("./unity-hub");
|
|
45
|
+
const logging_1 = require("./logging");
|
|
46
|
+
const unity_version_1 = require("./unity-version");
|
|
47
|
+
const unity_project_1 = require("./unity-project");
|
|
48
|
+
const android_sdk_1 = require("./android-sdk");
|
|
49
|
+
const unity_editor_1 = require("./unity-editor");
|
|
50
|
+
const pkgPath = (0, path_1.join)(__dirname, '..', 'package.json');
|
|
51
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
|
|
52
|
+
const program = new commander_1.Command();
|
|
53
|
+
program.name('unity-cli')
|
|
54
|
+
.description('A command line utility for the Unity Game Engine.')
|
|
55
|
+
.version(pkg.version);
|
|
56
|
+
program.command('license-version')
|
|
57
|
+
.description('Print the version of the Unity License Client.')
|
|
58
|
+
.action(async () => {
|
|
59
|
+
const client = new license_client_1.LicensingClient();
|
|
60
|
+
await client.Version();
|
|
61
|
+
});
|
|
62
|
+
program.command('activate-license')
|
|
63
|
+
.description('Activate a Unity license.')
|
|
64
|
+
.option('-e, --email <email>', 'Email associated with the Unity account. Required when activating a personal or professional license.')
|
|
65
|
+
.option('-p, --password <password>', 'Password for the Unity account. Required when activating a personal or professional license.')
|
|
66
|
+
.option('-s, --serial <serial>', 'License serial number. Required when activating a professional license.')
|
|
67
|
+
.option('-l, --license <license>', 'License type (personal, professional, floating).')
|
|
68
|
+
.option('-c, --config <config>', 'Path to the configuration file. Required when activating a floating license.')
|
|
69
|
+
.option('--verbose', 'Enable verbose logging.')
|
|
70
|
+
.action(async (options) => {
|
|
71
|
+
if (options.verbose) {
|
|
72
|
+
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
73
|
+
}
|
|
74
|
+
logging_1.Logger.instance.debug(JSON.stringify(options));
|
|
75
|
+
const client = new license_client_1.LicensingClient();
|
|
76
|
+
const licenseStr = options.license?.toString()?.trim();
|
|
77
|
+
if (!licenseStr || licenseStr.length === 0) {
|
|
78
|
+
throw new Error('License type is required. Use -l or --license to specify it.');
|
|
79
|
+
}
|
|
80
|
+
const licenseType = options.license.toLowerCase();
|
|
81
|
+
if (![license_client_1.LicenseType.personal, license_client_1.LicenseType.professional, license_client_1.LicenseType.floating].includes(licenseType)) {
|
|
82
|
+
throw new Error(`Invalid license type: ${licenseType}`);
|
|
83
|
+
}
|
|
84
|
+
if (licenseType !== license_client_1.LicenseType.floating) {
|
|
85
|
+
if (!options.email) {
|
|
86
|
+
options.email = await (0, utilities_1.PromptForSecretInput)('Email: ');
|
|
87
|
+
}
|
|
88
|
+
if (!options.password) {
|
|
89
|
+
options.password = await (0, utilities_1.PromptForSecretInput)('Password: ');
|
|
90
|
+
}
|
|
91
|
+
if (licenseType === license_client_1.LicenseType.professional && !options.serial) {
|
|
92
|
+
options.serial = await (0, utilities_1.PromptForSecretInput)('Serial: ');
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
await client.Activate(licenseType, options.config, options.serial, options.email, options.password);
|
|
96
|
+
});
|
|
97
|
+
program.command('return-license')
|
|
98
|
+
.description('Return a Unity license.')
|
|
99
|
+
.option('-l, --license <license>', 'License type (personal, professional, floating)')
|
|
100
|
+
.option('--verbose', 'Enable verbose logging.')
|
|
101
|
+
.action(async (options) => {
|
|
102
|
+
if (options.verbose) {
|
|
103
|
+
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
104
|
+
}
|
|
105
|
+
logging_1.Logger.instance.debug(JSON.stringify(options));
|
|
106
|
+
const client = new license_client_1.LicensingClient();
|
|
107
|
+
const licenseStr = options.license?.toString()?.trim();
|
|
108
|
+
if (!licenseStr || licenseStr.length === 0) {
|
|
109
|
+
throw new Error('License type is required. Use -l or --license to specify it.');
|
|
110
|
+
}
|
|
111
|
+
const licenseType = licenseStr.toLowerCase();
|
|
112
|
+
if (![license_client_1.LicenseType.personal, license_client_1.LicenseType.professional, license_client_1.LicenseType.floating].includes(licenseType)) {
|
|
113
|
+
throw new Error(`Invalid license type: ${licenseType}`);
|
|
114
|
+
}
|
|
115
|
+
await client.Deactivate(licenseType);
|
|
116
|
+
});
|
|
117
|
+
program.command('hub-version')
|
|
118
|
+
.description('Print the version of the Unity Hub.')
|
|
119
|
+
.action(async () => {
|
|
120
|
+
const unityHub = new unity_hub_1.UnityHub();
|
|
121
|
+
const version = await unityHub.Version();
|
|
122
|
+
process.stdout.write(`${version}\n`);
|
|
123
|
+
});
|
|
124
|
+
program.command('hub-install')
|
|
125
|
+
.description('Install the Unity Hub.')
|
|
126
|
+
.option('--verbose', 'Enable verbose logging.')
|
|
127
|
+
.option('--json', 'Prints the last line of output as JSON string.')
|
|
128
|
+
.action(async (options) => {
|
|
129
|
+
if (options.verbose) {
|
|
130
|
+
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
131
|
+
}
|
|
132
|
+
const unityHub = new unity_hub_1.UnityHub();
|
|
133
|
+
const hubPath = await unityHub.Install();
|
|
134
|
+
if (options.json) {
|
|
135
|
+
process.stdout.write(`\n${JSON.stringify({ UNITY_HUB_PATH: hubPath })}\n`);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
process.stdout.write(`${hubPath}\n`);
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
program.command('hub-path')
|
|
142
|
+
.description('Print the path to the Unity Hub executable.')
|
|
143
|
+
.option('--json', 'Prints the last line of output as JSON string.')
|
|
144
|
+
.action(async (options) => {
|
|
145
|
+
const hub = new unity_hub_1.UnityHub();
|
|
146
|
+
if (options.json) {
|
|
147
|
+
process.stdout.write(`\n${JSON.stringify({ UNITY_HUB_PATH: hub.executable })}\n`);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
process.stdout.write(`${hub.executable}\n`);
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
program.command('hub')
|
|
154
|
+
.description('Run commands directly to the Unity Hub. (You need not to pass --headless or -- to this command).')
|
|
155
|
+
.allowUnknownOption(true)
|
|
156
|
+
.argument('<args...>', 'Arguments to pass to the Unity Hub executable.')
|
|
157
|
+
.option('--verbose', 'Enable verbose logging.')
|
|
158
|
+
.action(async (args, options) => {
|
|
159
|
+
if (options.verbose) {
|
|
160
|
+
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
161
|
+
}
|
|
162
|
+
logging_1.Logger.instance.debug(JSON.stringify({ args, options }));
|
|
163
|
+
const unityHub = new unity_hub_1.UnityHub();
|
|
164
|
+
await unityHub.Exec(args, { silent: false, showCommand: logging_1.Logger.instance.logLevel === logging_1.LogLevel.DEBUG });
|
|
165
|
+
});
|
|
166
|
+
program.command('setup-unity')
|
|
167
|
+
.description('Sets up the environment for the specified project and finds or installs the Unity Editor version for it.')
|
|
168
|
+
.option('-p, --unity-project <unityProjectPath>', 'The path to a Unity project or "none" to skip project detection.')
|
|
169
|
+
.option('-u, --unity-version <unityVersion>', 'The Unity version to get (e.g. 2020.3.1f1, 2021.x, 2022.1.*, 6000). If specified, it will override the version read from the project.')
|
|
170
|
+
.option('-c, --changeset <changeset>', 'The Unity changeset to get (e.g. 1234567890ab).')
|
|
171
|
+
.option('-a, --arch <architecture>', 'The Unity architecture to get (e.g. x86_64, arm64). Defaults to the architecture of the current process.')
|
|
172
|
+
.option('-b, --build-targets <buildTargets>', 'The Unity build target to get (e.g. iOS, Android).')
|
|
173
|
+
.option('-m, --modules <modules>', 'The Unity module to get (e.g. ios, android).')
|
|
174
|
+
.option('-i, --install-path <installPath>', 'The path to install the Unity Editor to. By default, it will be installed to the default Unity Hub location.')
|
|
175
|
+
.option('--verbose', 'Enable verbose logging.')
|
|
176
|
+
.option('--json', 'Prints the last line of output as JSON string.')
|
|
177
|
+
.action(async (options) => {
|
|
178
|
+
if (options.verbose) {
|
|
179
|
+
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
180
|
+
}
|
|
181
|
+
logging_1.Logger.instance.debug(JSON.stringify(options));
|
|
182
|
+
let unityProject;
|
|
183
|
+
if (options.unityProject) {
|
|
184
|
+
unityProject = await unity_project_1.UnityProject.GetProject(options.unityProject);
|
|
185
|
+
}
|
|
186
|
+
if (!options.unityVersion && !unityProject) {
|
|
187
|
+
throw new Error('You must specify a Unity version or project with -u, --unity-version, -p, --unity-project.');
|
|
188
|
+
}
|
|
189
|
+
const unityVersion = unityProject?.version ?? new unity_version_1.UnityVersion(options.unityVersion, options.changeset);
|
|
190
|
+
const modules = options.modules ? options.modules.split(/[ ,]+/).filter(Boolean) : [];
|
|
191
|
+
const buildTargets = options.buildTargets ? options.buildTargets.split(/[ ,]+/).filter(Boolean) : [];
|
|
192
|
+
const moduleBuildTargetMap = unity_hub_1.UnityHub.GetPlatformTargetModuleMap();
|
|
193
|
+
for (const target of buildTargets) {
|
|
194
|
+
const module = moduleBuildTargetMap[target];
|
|
195
|
+
if (module === undefined) {
|
|
196
|
+
if (target.toLowerCase() !== 'none') {
|
|
197
|
+
logging_1.Logger.instance.warn(`${target} is not a valid build target for ${os.type()}`);
|
|
198
|
+
}
|
|
199
|
+
continue;
|
|
200
|
+
}
|
|
201
|
+
if (!modules.includes(module)) {
|
|
202
|
+
modules.push(module);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
if (modules.includes('none') ||
|
|
206
|
+
modules.includes('None')) {
|
|
207
|
+
modules.length = 0;
|
|
208
|
+
}
|
|
209
|
+
const unityHub = new unity_hub_1.UnityHub();
|
|
210
|
+
const editorPath = await unityHub.GetEditor(unityVersion, modules);
|
|
211
|
+
const output = {
|
|
212
|
+
'UNITY_HUB_PATH': unityHub.executable,
|
|
213
|
+
'UNITY_EDITOR': editorPath
|
|
214
|
+
};
|
|
215
|
+
if (unityProject) {
|
|
216
|
+
output['UNITY_PROJECT_PATH'] = unityProject.projectPath;
|
|
217
|
+
if (modules.includes('android')) {
|
|
218
|
+
await (0, android_sdk_1.CheckAndroidSdkInstalled)(editorPath, unityProject.projectPath);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
if (options.json) {
|
|
222
|
+
process.stdout.write(`\n${JSON.stringify(output)}\n`);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
program.command('create-project')
|
|
226
|
+
.description('Create a new Unity project.')
|
|
227
|
+
.option('--name <projectName>', 'The name of the new Unity project. If unspecified, the project will be created in the specified path or the current working directory.')
|
|
228
|
+
.option('--path <projectPath>', 'The path to create the new Unity project. If unspecified, the current working directory will be used.')
|
|
229
|
+
.option('--template <projectTemplate>', 'The name of the template package to use for creating the unity project. Supports regex patterns.', 'com.unity.template.3d(-cross-platform)?')
|
|
230
|
+
.option('--unity-editor <unityEditorPath>', 'The path to the Unity Editor executable. If unspecified, the UNITY_EDITOR environment variable must be set.')
|
|
231
|
+
.option('--verbose', 'Enable verbose logging.')
|
|
232
|
+
.option('--json', 'Prints the last line of output as JSON string.')
|
|
233
|
+
.action(async (options) => {
|
|
234
|
+
if (options.verbose) {
|
|
235
|
+
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
236
|
+
}
|
|
237
|
+
logging_1.Logger.instance.debug(JSON.stringify(options));
|
|
238
|
+
const editorPath = options.unityEditor?.toString()?.trim() || process.env.UNITY_EDITOR;
|
|
239
|
+
if (!editorPath || editorPath.length === 0) {
|
|
240
|
+
throw new Error('The Unity Editor path was not specified. Use -e or --unity-editor to specify it, or set the UNITY_EDITOR environment variable.');
|
|
241
|
+
}
|
|
242
|
+
const unityEditor = new unity_editor_1.UnityEditor(editorPath);
|
|
243
|
+
if (!options.template || options.template.length === 0) {
|
|
244
|
+
throw new Error('The project template name was not specified. Use -t or --template to specify it.');
|
|
245
|
+
}
|
|
246
|
+
const templatePath = unityEditor.GetTemplatePath(options.template);
|
|
247
|
+
const projectName = options.name?.toString()?.trim();
|
|
248
|
+
let projectPath = options.path?.toString()?.trim() || process.cwd();
|
|
249
|
+
if (projectName && projectName.length > 0) {
|
|
250
|
+
projectPath = path_1.default.join(projectPath, projectName);
|
|
251
|
+
}
|
|
252
|
+
await unityEditor.Run({
|
|
253
|
+
projectPath: projectPath,
|
|
254
|
+
args: [
|
|
255
|
+
'-quit',
|
|
256
|
+
'-nographics',
|
|
257
|
+
'-batchmode',
|
|
258
|
+
'-createProject', projectPath,
|
|
259
|
+
'-cloneFromTemplate', templatePath
|
|
260
|
+
]
|
|
261
|
+
});
|
|
262
|
+
if (options.json) {
|
|
263
|
+
process.stdout.write(`\n${JSON.stringify({ UNITY_PROJECT_PATH: projectPath })}\n`);
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
program.command('run')
|
|
267
|
+
.description('Run command line args directly to the Unity Editor.')
|
|
268
|
+
.option('--unity-editor <unityEditorPath>', 'The path to the Unity Editor executable. If unspecified, the UNITY_EDITOR environment variable must be set.')
|
|
269
|
+
.option('--unity-project <unityProjectPath>', 'The path to a Unity project. If unspecified, the UNITY_PROJECT_PATH environment variable or the current working directory will be used.')
|
|
270
|
+
.option('--log-name <logName>', 'The name of the log file.')
|
|
271
|
+
.allowUnknownOption(true)
|
|
272
|
+
.argument('<args...>', 'Arguments to pass to the Unity Editor executable.')
|
|
273
|
+
.option('--verbose', 'Enable verbose logging.')
|
|
274
|
+
.action(async (args, options) => {
|
|
275
|
+
if (options.verbose) {
|
|
276
|
+
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
277
|
+
}
|
|
278
|
+
logging_1.Logger.instance.debug(JSON.stringify({ options, args }));
|
|
279
|
+
const editorPath = options.unityEditor?.toString()?.trim() || process.env.UNITY_EDITOR;
|
|
280
|
+
if (!editorPath || editorPath.length === 0) {
|
|
281
|
+
throw new Error('The Unity Editor path was not specified. Use -e or --unity-editor to specify it, or set the UNITY_EDITOR environment variable.');
|
|
282
|
+
}
|
|
283
|
+
const unityEditor = new unity_editor_1.UnityEditor(editorPath);
|
|
284
|
+
const projectPath = options.unityProject?.toString()?.trim() || process.env.UNITY_PROJECT_PATH || process.cwd();
|
|
285
|
+
const unityProject = await unity_project_1.UnityProject.GetProject(projectPath);
|
|
286
|
+
if (!unityProject) {
|
|
287
|
+
throw new Error(`The specified path is not a valid Unity project: ${projectPath}`);
|
|
288
|
+
}
|
|
289
|
+
if (!args.includes('-logFile')) {
|
|
290
|
+
const logPath = unityEditor.GenerateLogFilePath(unityProject.projectPath, options.logName);
|
|
291
|
+
args.push('-logFile', logPath);
|
|
292
|
+
}
|
|
293
|
+
await unityEditor.Run({
|
|
294
|
+
args: [...args]
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
program.parse(process.argv);
|
|
298
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uCAAqC;AACrC,uCAAyB;AACzB,uCAAyB;AACzB,yCAAoC;AACpC,6CAAkC;AAClC,qDAAgE;AAChE,2CAAmD;AACnD,2CAAuC;AACvC,uCAA6C;AAC7C,mDAA+C;AAC/C,mDAA+C;AAC/C,+CAAyD;AACzD,iDAA6C;AAE7C,MAAM,OAAO,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI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AAC,CAAC;AACP,CAAC,CAAC,CAAC;AAEP,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
"use strict";
|
|
3
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
3
|
if (k2 === undefined) k2 = k;
|
|
@@ -11,45 +10,10 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
11
10
|
if (k2 === undefined) k2 = k;
|
|
12
11
|
o[k2] = m[k];
|
|
13
12
|
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
37
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
38
15
|
};
|
|
39
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
require("source-map-support/register");
|
|
41
|
-
const fs = __importStar(require("fs"));
|
|
42
|
-
const os = __importStar(require("os"));
|
|
43
|
-
const commander_1 = require("commander");
|
|
44
|
-
const path_1 = __importStar(require("path"));
|
|
45
|
-
const license_client_1 = require("./license-client");
|
|
46
|
-
const utilities_1 = require("./utilities");
|
|
47
|
-
const unity_hub_1 = require("./unity-hub");
|
|
48
|
-
const logging_1 = require("./logging");
|
|
49
|
-
const unity_version_1 = require("./unity-version");
|
|
50
|
-
const unity_project_1 = require("./unity-project");
|
|
51
|
-
const android_sdk_1 = require("./android-sdk");
|
|
52
|
-
const unity_editor_1 = require("./unity-editor");
|
|
53
17
|
// export public API
|
|
54
18
|
__exportStar(require("./license-client"), exports);
|
|
55
19
|
__exportStar(require("./utilities"), exports);
|
|
@@ -59,252 +23,4 @@ __exportStar(require("./unity-version"), exports);
|
|
|
59
23
|
__exportStar(require("./unity-project"), exports);
|
|
60
24
|
__exportStar(require("./android-sdk"), exports);
|
|
61
25
|
__exportStar(require("./unity-editor"), exports);
|
|
62
|
-
const pkgPath = (0, path_1.join)(__dirname, '..', 'package.json');
|
|
63
|
-
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
|
|
64
|
-
const program = new commander_1.Command();
|
|
65
|
-
program.name('unity-cli')
|
|
66
|
-
.description('A command line utility for the Unity Game Engine.')
|
|
67
|
-
.version(pkg.version);
|
|
68
|
-
program.command('license-version')
|
|
69
|
-
.description('Print the version of the Unity License Client.')
|
|
70
|
-
.action(async () => {
|
|
71
|
-
const client = new license_client_1.LicensingClient();
|
|
72
|
-
await client.Version();
|
|
73
|
-
});
|
|
74
|
-
program.command('activate-license')
|
|
75
|
-
.description('Activate a Unity license.')
|
|
76
|
-
.option('-e, --email <email>', 'Email associated with the Unity account. Required when activating a personal or professional license.')
|
|
77
|
-
.option('-p, --password <password>', 'Password for the Unity account. Required when activating a personal or professional license.')
|
|
78
|
-
.option('-s, --serial <serial>', 'License serial number. Required when activating a professional license.')
|
|
79
|
-
.option('-l, --license <license>', 'License type (personal, professional, floating).')
|
|
80
|
-
.option('-c, --config <config>', 'Path to the configuration file. Required when activating a floating license.')
|
|
81
|
-
.option('--verbose', 'Enable verbose logging.')
|
|
82
|
-
.action(async (options) => {
|
|
83
|
-
if (options.verbose) {
|
|
84
|
-
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
85
|
-
}
|
|
86
|
-
logging_1.Logger.instance.debug(JSON.stringify(options));
|
|
87
|
-
const client = new license_client_1.LicensingClient();
|
|
88
|
-
const licenseStr = options.license?.toString()?.trim();
|
|
89
|
-
if (!licenseStr || licenseStr.length === 0) {
|
|
90
|
-
throw new Error('License type is required. Use -l or --license to specify it.');
|
|
91
|
-
}
|
|
92
|
-
const licenseType = options.license.toLowerCase();
|
|
93
|
-
if (![license_client_1.LicenseType.personal, license_client_1.LicenseType.professional, license_client_1.LicenseType.floating].includes(licenseType)) {
|
|
94
|
-
throw new Error(`Invalid license type: ${licenseType}`);
|
|
95
|
-
}
|
|
96
|
-
if (licenseType !== license_client_1.LicenseType.floating) {
|
|
97
|
-
if (!options.email) {
|
|
98
|
-
options.email = await (0, utilities_1.PromptForSecretInput)('Email: ');
|
|
99
|
-
}
|
|
100
|
-
if (!options.password) {
|
|
101
|
-
options.password = await (0, utilities_1.PromptForSecretInput)('Password: ');
|
|
102
|
-
}
|
|
103
|
-
if (licenseType === license_client_1.LicenseType.professional && !options.serial) {
|
|
104
|
-
options.serial = await (0, utilities_1.PromptForSecretInput)('Serial: ');
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
await client.Activate(licenseType, options.config, options.serial, options.email, options.password);
|
|
108
|
-
});
|
|
109
|
-
program.command('return-license')
|
|
110
|
-
.description('Return a Unity license.')
|
|
111
|
-
.option('-l, --license <license>', 'License type (personal, professional, floating)')
|
|
112
|
-
.option('--verbose', 'Enable verbose logging.')
|
|
113
|
-
.action(async (options) => {
|
|
114
|
-
if (options.verbose) {
|
|
115
|
-
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
116
|
-
}
|
|
117
|
-
logging_1.Logger.instance.debug(JSON.stringify(options));
|
|
118
|
-
const client = new license_client_1.LicensingClient();
|
|
119
|
-
const licenseStr = options.license?.toString()?.trim();
|
|
120
|
-
if (!licenseStr || licenseStr.length === 0) {
|
|
121
|
-
throw new Error('License type is required. Use -l or --license to specify it.');
|
|
122
|
-
}
|
|
123
|
-
const licenseType = licenseStr.toLowerCase();
|
|
124
|
-
if (![license_client_1.LicenseType.personal, license_client_1.LicenseType.professional, license_client_1.LicenseType.floating].includes(licenseType)) {
|
|
125
|
-
throw new Error(`Invalid license type: ${licenseType}`);
|
|
126
|
-
}
|
|
127
|
-
await client.Deactivate(licenseType);
|
|
128
|
-
});
|
|
129
|
-
program.command('hub-version')
|
|
130
|
-
.description('Print the version of the Unity Hub.')
|
|
131
|
-
.action(async () => {
|
|
132
|
-
const unityHub = new unity_hub_1.UnityHub();
|
|
133
|
-
const version = await unityHub.Version();
|
|
134
|
-
process.stdout.write(`${version}\n`);
|
|
135
|
-
});
|
|
136
|
-
program.command('hub-install')
|
|
137
|
-
.description('Install the Unity Hub.')
|
|
138
|
-
.option('--verbose', 'Enable verbose logging.')
|
|
139
|
-
.option('--json', 'Prints the last line of output as JSON string.')
|
|
140
|
-
.action(async (options) => {
|
|
141
|
-
if (options.verbose) {
|
|
142
|
-
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
143
|
-
}
|
|
144
|
-
const unityHub = new unity_hub_1.UnityHub();
|
|
145
|
-
const hubPath = await unityHub.Install();
|
|
146
|
-
if (options.json) {
|
|
147
|
-
process.stdout.write(`\n${JSON.stringify({ UNITY_HUB_PATH: hubPath })}\n`);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
process.stdout.write(`${hubPath}\n`);
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
program.command('hub-path')
|
|
154
|
-
.description('Print the path to the Unity Hub executable.')
|
|
155
|
-
.option('--json', 'Prints the last line of output as JSON string.')
|
|
156
|
-
.action(async (options) => {
|
|
157
|
-
const hub = new unity_hub_1.UnityHub();
|
|
158
|
-
if (options.json) {
|
|
159
|
-
process.stdout.write(`\n${JSON.stringify({ UNITY_HUB_PATH: hub.executable })}\n`);
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
process.stdout.write(`${hub.executable}\n`);
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
program.command('hub')
|
|
166
|
-
.description('Run commands directly to the Unity Hub. (You need not to pass --headless or -- to this command).')
|
|
167
|
-
.allowUnknownOption(true)
|
|
168
|
-
.argument('<args...>', 'Arguments to pass to the Unity Hub executable.')
|
|
169
|
-
.option('--verbose', 'Enable verbose logging.')
|
|
170
|
-
.action(async (args, options) => {
|
|
171
|
-
if (options.verbose) {
|
|
172
|
-
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
173
|
-
}
|
|
174
|
-
logging_1.Logger.instance.debug(JSON.stringify({ args, options }));
|
|
175
|
-
const unityHub = new unity_hub_1.UnityHub();
|
|
176
|
-
await unityHub.Exec(args, { silent: false, showCommand: logging_1.Logger.instance.logLevel === logging_1.LogLevel.DEBUG });
|
|
177
|
-
});
|
|
178
|
-
program.command('setup-unity')
|
|
179
|
-
.description('Sets up the environment for the specified project and finds or installs the Unity Editor version for it.')
|
|
180
|
-
.option('-p, --unity-project <unityProjectPath>', 'The path to a Unity project or "none" to skip project detection.')
|
|
181
|
-
.option('-u, --unity-version <unityVersion>', 'The Unity version to get (e.g. 2020.3.1f1, 2021.x, 2022.1.*, 6000). If specified, it will override the version read from the project.')
|
|
182
|
-
.option('-c, --changeset <changeset>', 'The Unity changeset to get (e.g. 1234567890ab).')
|
|
183
|
-
.option('-a, --arch <architecture>', 'The Unity architecture to get (e.g. x86_64, arm64). Defaults to the architecture of the current process.')
|
|
184
|
-
.option('-b, --build-targets <buildTargets>', 'The Unity build target to get (e.g. iOS, Android).')
|
|
185
|
-
.option('-m, --modules <modules>', 'The Unity module to get (e.g. ios, android).')
|
|
186
|
-
.option('-i, --install-path <installPath>', 'The path to install the Unity Editor to. By default, it will be installed to the default Unity Hub location.')
|
|
187
|
-
.option('--verbose', 'Enable verbose logging.')
|
|
188
|
-
.option('--json', 'Prints the last line of output as JSON string.')
|
|
189
|
-
.action(async (options) => {
|
|
190
|
-
if (options.verbose) {
|
|
191
|
-
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
192
|
-
}
|
|
193
|
-
logging_1.Logger.instance.debug(JSON.stringify(options));
|
|
194
|
-
let unityProject;
|
|
195
|
-
if (options.unityProject) {
|
|
196
|
-
unityProject = await unity_project_1.UnityProject.GetProject(options.unityProject);
|
|
197
|
-
}
|
|
198
|
-
if (!options.unityVersion && !unityProject) {
|
|
199
|
-
throw new Error('You must specify a Unity version or project with -u, --unity-version, -p, --unity-project.');
|
|
200
|
-
}
|
|
201
|
-
const unityVersion = unityProject?.version ?? new unity_version_1.UnityVersion(options.unityVersion, options.changeset);
|
|
202
|
-
const modules = options.modules ? options.modules.split(/[ ,]+/).filter(Boolean) : [];
|
|
203
|
-
const buildTargets = options.buildTargets ? options.buildTargets.split(/[ ,]+/).filter(Boolean) : [];
|
|
204
|
-
const moduleBuildTargetMap = unity_hub_1.UnityHub.GetPlatformTargetModuleMap();
|
|
205
|
-
for (const target of buildTargets) {
|
|
206
|
-
const module = moduleBuildTargetMap[target];
|
|
207
|
-
if (module === undefined) {
|
|
208
|
-
if (target.toLowerCase() !== 'none') {
|
|
209
|
-
logging_1.Logger.instance.warn(`${target} is not a valid build target for ${os.type()}`);
|
|
210
|
-
}
|
|
211
|
-
continue;
|
|
212
|
-
}
|
|
213
|
-
if (!modules.includes(module)) {
|
|
214
|
-
modules.push(module);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
if (modules.includes('none') ||
|
|
218
|
-
modules.includes('None')) {
|
|
219
|
-
modules.length = 0;
|
|
220
|
-
}
|
|
221
|
-
const unityHub = new unity_hub_1.UnityHub();
|
|
222
|
-
const editorPath = await unityHub.GetEditor(unityVersion, modules);
|
|
223
|
-
const output = {
|
|
224
|
-
'UNITY_HUB_PATH': unityHub.executable,
|
|
225
|
-
'UNITY_EDITOR': editorPath
|
|
226
|
-
};
|
|
227
|
-
if (unityProject) {
|
|
228
|
-
output['UNITY_PROJECT_PATH'] = unityProject.projectPath;
|
|
229
|
-
if (modules.includes('android')) {
|
|
230
|
-
await (0, android_sdk_1.CheckAndroidSdkInstalled)(editorPath, unityProject.projectPath);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
if (options.json) {
|
|
234
|
-
process.stdout.write(`\n${JSON.stringify(output)}\n`);
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
program.command('create-project')
|
|
238
|
-
.description('Create a new Unity project.')
|
|
239
|
-
.option('--name <projectName>', 'The name of the new Unity project. If unspecified, the project will be created in the specified path or the current working directory.')
|
|
240
|
-
.option('--path <projectPath>', 'The path to create the new Unity project. If unspecified, the current working directory will be used.')
|
|
241
|
-
.option('--template <projectTemplate>', 'The name of the template package to use for creating the unity project. Supports regex patterns.', 'com.unity.template.3d(-cross-platform)?')
|
|
242
|
-
.option('--unity-editor <unityEditorPath>', 'The path to the Unity Editor executable. If unspecified, the UNITY_EDITOR environment variable must be set.')
|
|
243
|
-
.option('--verbose', 'Enable verbose logging.')
|
|
244
|
-
.option('--json', 'Prints the last line of output as JSON string.')
|
|
245
|
-
.action(async (options) => {
|
|
246
|
-
if (options.verbose) {
|
|
247
|
-
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
248
|
-
}
|
|
249
|
-
logging_1.Logger.instance.debug(JSON.stringify(options));
|
|
250
|
-
const editorPath = options.unityEditor?.toString()?.trim() || process.env.UNITY_EDITOR;
|
|
251
|
-
if (!editorPath || editorPath.length === 0) {
|
|
252
|
-
throw new Error('The Unity Editor path was not specified. Use -e or --unity-editor to specify it, or set the UNITY_EDITOR environment variable.');
|
|
253
|
-
}
|
|
254
|
-
const unityEditor = new unity_editor_1.UnityEditor(editorPath);
|
|
255
|
-
if (!options.template || options.template.length === 0) {
|
|
256
|
-
throw new Error('The project template name was not specified. Use -t or --template to specify it.');
|
|
257
|
-
}
|
|
258
|
-
const templatePath = unityEditor.GetTemplatePath(options.template);
|
|
259
|
-
const projectName = options.name?.toString()?.trim();
|
|
260
|
-
let projectPath = options.path?.toString()?.trim() || process.cwd();
|
|
261
|
-
if (projectName && projectName.length > 0) {
|
|
262
|
-
projectPath = path_1.default.join(projectPath, projectName);
|
|
263
|
-
}
|
|
264
|
-
await unityEditor.Run({
|
|
265
|
-
projectPath: projectPath,
|
|
266
|
-
args: [
|
|
267
|
-
'-quit',
|
|
268
|
-
'-nographics',
|
|
269
|
-
'-batchmode',
|
|
270
|
-
'-createProject', projectPath,
|
|
271
|
-
'-cloneFromTemplate', templatePath
|
|
272
|
-
]
|
|
273
|
-
});
|
|
274
|
-
if (options.json) {
|
|
275
|
-
process.stdout.write(`\n${JSON.stringify({ UNITY_PROJECT_PATH: projectPath })}\n`);
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
program.command('run')
|
|
279
|
-
.description('Run command line args directly to the Unity Editor.')
|
|
280
|
-
.option('--unity-editor <unityEditorPath>', 'The path to the Unity Editor executable. If unspecified, the UNITY_EDITOR environment variable must be set.')
|
|
281
|
-
.option('--unity-project <unityProjectPath>', 'The path to a Unity project. If unspecified, the UNITY_PROJECT_PATH environment variable or the current working directory will be used.')
|
|
282
|
-
.option('--log-name <logName>', 'The name of the log file.')
|
|
283
|
-
.allowUnknownOption(true)
|
|
284
|
-
.argument('<args...>', 'Arguments to pass to the Unity Editor executable.')
|
|
285
|
-
.option('--verbose', 'Enable verbose logging.')
|
|
286
|
-
.action(async (args, options) => {
|
|
287
|
-
if (options.verbose) {
|
|
288
|
-
logging_1.Logger.instance.logLevel = logging_1.LogLevel.DEBUG;
|
|
289
|
-
}
|
|
290
|
-
logging_1.Logger.instance.debug(JSON.stringify({ options, args }));
|
|
291
|
-
const editorPath = options.unityEditor?.toString()?.trim() || process.env.UNITY_EDITOR;
|
|
292
|
-
if (!editorPath || editorPath.length === 0) {
|
|
293
|
-
throw new Error('The Unity Editor path was not specified. Use -e or --unity-editor to specify it, or set the UNITY_EDITOR environment variable.');
|
|
294
|
-
}
|
|
295
|
-
const unityEditor = new unity_editor_1.UnityEditor(editorPath);
|
|
296
|
-
const projectPath = options.unityProject?.toString()?.trim() || process.env.UNITY_PROJECT_PATH || process.cwd();
|
|
297
|
-
const unityProject = await unity_project_1.UnityProject.GetProject(projectPath);
|
|
298
|
-
if (!unityProject) {
|
|
299
|
-
throw new Error(`The specified path is not a valid Unity project: ${projectPath}`);
|
|
300
|
-
}
|
|
301
|
-
if (!args.includes('-logFile')) {
|
|
302
|
-
const logPath = unityEditor.GenerateLogFilePath(unityProject.projectPath, options.logName);
|
|
303
|
-
args.push('-logFile', logPath);
|
|
304
|
-
}
|
|
305
|
-
await unityEditor.Run({
|
|
306
|
-
args: [...args]
|
|
307
|
-
});
|
|
308
|
-
});
|
|
309
|
-
program.parse(process.argv);
|
|
310
26
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uCAAqC;AACrC,uCAAyB;AACzB,uCAAyB;AACzB,yCAAoC;AACpC,6CAAkC;AAClC,qDAAgE;AAChE,2CAAmD;AACnD,2CAAuC;AACvC,uCAA6C;AAC7C,mDAA+C;AAC/C,mDAA+C;AAC/C,+CAAyD;AACzD,iDAA6C;AAE7C,oBAAoB;AACpB,mDAAiC;AACjC,8CAA4B;AA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AAI,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,MAAM,WAAW,CAAC,GAAG,CAAC;QAClB,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;KAClB,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAEP,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,mDAAiC;AACjC,8CAA4B;AAC5B,8CAA4B;AAC5B,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,gDAA8B;AAC9B,iDAA+B"}
|
package/dist/logging.js
CHANGED
|
@@ -14,7 +14,7 @@ class Logger {
|
|
|
14
14
|
_ci;
|
|
15
15
|
static instance = new Logger();
|
|
16
16
|
constructor() {
|
|
17
|
-
if (process.env.GITHUB_ACTIONS) {
|
|
17
|
+
if (process.env.GITHUB_ACTIONS === 'true') {
|
|
18
18
|
this._ci = 'GITHUB_ACTIONS';
|
|
19
19
|
this.logLevel = process.env.ACTIONS_STEP_DEBUG === 'true' ? LogLevel.DEBUG : LogLevel.CI;
|
|
20
20
|
}
|
package/dist/logging.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.js","sourceRoot":"","sources":["../src/logging.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAMX;AAND,WAAY,QAAQ;IAChB,2BAAe,CAAA;IACf,qBAAS,CAAA;IACT,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,2BAAe,CAAA;AACnB,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB;AAED,MAAa,MAAM;IACR,QAAQ,GAAa,QAAQ,CAAC,IAAI,CAAC;IACzB,GAAG,CAAqB;IACzC,MAAM,CAAU,QAAQ,GAAW,IAAI,MAAM,EAAE,CAAC;IAEhD;QACI,I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HANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rage-against-the-pixel/unity-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A command line utility for the Unity Game Engine.",
|
|
5
5
|
"author": "RageAgainstThePixel",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,9 +12,29 @@
|
|
|
12
12
|
"url": "https://github.com/RageAgainstThePixel/unity-cli/issues"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://github.com/RageAgainstThePixel/unity-cli#readme",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"unity",
|
|
17
|
+
"cli",
|
|
18
|
+
"command-line",
|
|
19
|
+
"command line",
|
|
20
|
+
"tool",
|
|
21
|
+
"utility",
|
|
22
|
+
"game development",
|
|
23
|
+
"devOps",
|
|
24
|
+
"automation",
|
|
25
|
+
"build",
|
|
26
|
+
"continuous integration",
|
|
27
|
+
"ci",
|
|
28
|
+
"cd",
|
|
29
|
+
"development",
|
|
30
|
+
"gameDev",
|
|
31
|
+
"game dev",
|
|
32
|
+
"rage-against-the-pixel",
|
|
33
|
+
"rage against the pixel"
|
|
34
|
+
],
|
|
15
35
|
"main": "dist/index.js",
|
|
16
36
|
"bin": {
|
|
17
|
-
"unity-cli": "
|
|
37
|
+
"unity-cli": "dist/cli.js"
|
|
18
38
|
},
|
|
19
39
|
"files": [
|
|
20
40
|
"dist"
|