Remove debug
parent
d6222f0684
commit
3f364f7260
|
|
@ -1335,11 +1335,6 @@ class SetupMac {
|
||||||
static setup(buildParameters, actionFolder) {
|
static setup(buildParameters, actionFolder) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const unityChangeset = yield unity_changeset_1.getUnityChangeset(buildParameters.version);
|
const unityChangeset = yield unity_changeset_1.getUnityChangeset(buildParameters.version);
|
||||||
console.log('changeset object: ');
|
|
||||||
console.log(unityChangeset);
|
|
||||||
console.log('changeset');
|
|
||||||
console.log(unityChangeset.changeset);
|
|
||||||
console.log('Got here');
|
|
||||||
//Since we are using shell scripts on the host, we need to set the environment variables from here
|
//Since we are using shell scripts on the host, we need to set the environment variables from here
|
||||||
process.env.SCRIPT_DIRECTORY = `${actionFolder}/platforms/mac/`;
|
process.env.SCRIPT_DIRECTORY = `${actionFolder}/platforms/mac/`;
|
||||||
process.env.UNITY_VERSION = buildParameters.version;
|
process.env.UNITY_VERSION = buildParameters.version;
|
||||||
|
|
@ -1362,11 +1357,6 @@ class SetupMac {
|
||||||
process.env.ANDROID_SDK_MANAGER_PARAMETERS = buildParameters.androidSdkManagerParameters;
|
process.env.ANDROID_SDK_MANAGER_PARAMETERS = buildParameters.androidSdkManagerParameters;
|
||||||
process.env.CUSTOM_PARAMETERS = buildParameters.customParameters;
|
process.env.CUSTOM_PARAMETERS = buildParameters.customParameters;
|
||||||
process.env.CHOWN_FILES_TO = buildParameters.chownFilesTo;
|
process.env.CHOWN_FILES_TO = buildParameters.chownFilesTo;
|
||||||
// const unityEditorPath = `/Applications/Unity/Hub/Editor/${buildParameters.version}/Unity.app/Contents/MacOS/Unity`;
|
|
||||||
// if (!fs.existsSync(unityEditorPath)) {
|
|
||||||
// await SetupMac.installUnityHub();
|
|
||||||
// await SetupMac.installUnity(buildParameters);
|
|
||||||
// }
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint no-console: "off" */
|
|
||||||
import { BuildParameters } from '..';
|
import { BuildParameters } from '..';
|
||||||
import { getUnityChangeset } from 'unity-changeset';
|
import { getUnityChangeset } from 'unity-changeset';
|
||||||
|
|
||||||
|
|
@ -7,11 +6,7 @@ class SetupMac {
|
||||||
|
|
||||||
public static async setup(buildParameters: BuildParameters, actionFolder: string) {
|
public static async setup(buildParameters: BuildParameters, actionFolder: string) {
|
||||||
const unityChangeset = await getUnityChangeset(buildParameters.version);
|
const unityChangeset = await getUnityChangeset(buildParameters.version);
|
||||||
console.log('changeset object: ');
|
|
||||||
console.log(unityChangeset);
|
|
||||||
console.log('changeset');
|
|
||||||
console.log(unityChangeset.changeset);
|
|
||||||
console.log('Got here');
|
|
||||||
//Since we are using shell scripts on the host, we need to set the environment variables from here
|
//Since we are using shell scripts on the host, we need to set the environment variables from here
|
||||||
process.env.SCRIPT_DIRECTORY = `${actionFolder}/platforms/mac/`;
|
process.env.SCRIPT_DIRECTORY = `${actionFolder}/platforms/mac/`;
|
||||||
process.env.UNITY_VERSION = buildParameters.version;
|
process.env.UNITY_VERSION = buildParameters.version;
|
||||||
|
|
@ -34,29 +29,7 @@ class SetupMac {
|
||||||
process.env.ANDROID_SDK_MANAGER_PARAMETERS = buildParameters.androidSdkManagerParameters;
|
process.env.ANDROID_SDK_MANAGER_PARAMETERS = buildParameters.androidSdkManagerParameters;
|
||||||
process.env.CUSTOM_PARAMETERS = buildParameters.customParameters;
|
process.env.CUSTOM_PARAMETERS = buildParameters.customParameters;
|
||||||
process.env.CHOWN_FILES_TO = buildParameters.chownFilesTo;
|
process.env.CHOWN_FILES_TO = buildParameters.chownFilesTo;
|
||||||
// const unityEditorPath = `/Applications/Unity/Hub/Editor/${buildParameters.version}/Unity.app/Contents/MacOS/Unity`;
|
|
||||||
// if (!fs.existsSync(unityEditorPath)) {
|
|
||||||
// await SetupMac.installUnityHub();
|
|
||||||
// await SetupMac.installUnity(buildParameters);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// private static async installUnityHub(silent = false) {
|
|
||||||
// const command = 'brew install unity-hub';
|
|
||||||
// if (!fs.existsSync(this.unityHubPath)) {
|
|
||||||
// await exec(command, undefined, { silent });
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// private static async installUnity(buildParameters: BuildParameters, silent = false) {
|
|
||||||
|
|
||||||
// const command = `${this.unityHubPath} -- --headless install
|
|
||||||
// --version ${buildParameters.version}
|
|
||||||
// --changeset ${changeset}
|
|
||||||
// --module mac-il2cpp
|
|
||||||
// --childModules`;
|
|
||||||
// await exec(command, undefined, { silent });
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SetupMac;
|
export default SetupMac;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue