Add 'enableGpu' param, allowing running Unity w/o -nographics (#636)
This commit is contained in:
7
dist/index.js
generated
vendored
7
dist/index.js
generated
vendored
@@ -303,6 +303,7 @@ class BuildParameters {
|
||||
buildMethod: input_1.default.buildMethod,
|
||||
buildVersion,
|
||||
manualExit: input_1.default.manualExit,
|
||||
enableGpu: input_1.default.enableGpu,
|
||||
androidVersionCode,
|
||||
androidKeystoreName: input_1.default.androidKeystoreName,
|
||||
androidKeystoreBase64: input_1.default.androidKeystoreBase64,
|
||||
@@ -6430,6 +6431,7 @@ class ImageEnvironmentFactory {
|
||||
{ name: 'BUILD_FILE', value: parameters.buildFile },
|
||||
{ name: 'BUILD_METHOD', value: parameters.buildMethod },
|
||||
{ name: 'MANUAL_EXIT', value: parameters.manualExit },
|
||||
{ name: 'ENABLE_GPU', value: parameters.enableGpu },
|
||||
{ name: 'VERSION', value: parameters.buildVersion },
|
||||
{ name: 'ANDROID_VERSION_CODE', value: parameters.androidVersionCode },
|
||||
{ name: 'ANDROID_KEYSTORE_NAME', value: parameters.androidKeystoreName },
|
||||
@@ -6984,6 +6986,10 @@ class Input {
|
||||
const input = Input.getInput('manualExit') ?? false;
|
||||
return input === 'true';
|
||||
}
|
||||
static get enableGpu() {
|
||||
const input = Input.getInput('enableGpu') ?? false;
|
||||
return input === 'true';
|
||||
}
|
||||
static get customParameters() {
|
||||
return Input.getInput('customParameters') ?? '';
|
||||
}
|
||||
@@ -7455,6 +7461,7 @@ class SetupMac {
|
||||
process.env.CUSTOM_PARAMETERS = buildParameters.customParameters;
|
||||
process.env.CHOWN_FILES_TO = buildParameters.chownFilesTo;
|
||||
process.env.MANUAL_EXIT = buildParameters.manualExit.toString();
|
||||
process.env.ENABLE_GPU = buildParameters.enableGpu.toString();
|
||||
}
|
||||
}
|
||||
SetupMac.unityHubBasePath = `/Applications/"Unity Hub.app"`;
|
||||
|
||||
Reference in New Issue
Block a user