Unpack changeset value and fix missing escape characters
parent
12fc1f50f7
commit
bd1602dad0
|
|
@ -1334,7 +1334,7 @@ class SetupMac {
|
|||
//static unityHubPath = `/Applications/Unity\\\\ Hub.app/Contents/MacOS/Unity\\\\ Hub`;
|
||||
static setup(buildParameters, actionFolder) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const changeset = yield unity_changeset_1.getUnityChangeset(buildParameters.version).changeset;
|
||||
const [, changeset] = yield unity_changeset_1.getUnityChangeset(buildParameters.version);
|
||||
//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.UNITY_VERSION = buildParameters.version;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -6,8 +6,8 @@ brew install unity-hub
|
|||
|
||||
echo "Installing Unity Editor $UNITY_VERSION ($UNITY_CHANGESET)"
|
||||
|
||||
/Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install
|
||||
--version $UNITY_VERSION
|
||||
--changeset $UNITY_CHANGESET
|
||||
--module mac-il2cpp
|
||||
/Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install \
|
||||
--version $UNITY_VERSION \
|
||||
--changeset $UNITY_CHANGESET \
|
||||
--module mac-il2cpp \
|
||||
--childModules
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ class SetupMac {
|
|||
//static unityHubPath = `/Applications/Unity\\\\ Hub.app/Contents/MacOS/Unity\\\\ Hub`;
|
||||
|
||||
public static async setup(buildParameters: BuildParameters, actionFolder: string) {
|
||||
const changeset = await getUnityChangeset(buildParameters.version).changeset;
|
||||
const [, changeset] = await getUnityChangeset(buildParameters.version);
|
||||
//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.UNITY_VERSION = buildParameters.version;
|
||||
|
|
|
|||
Loading…
Reference in New Issue