Unpack changeset value and fix missing escape characters

pull/326/head
Andrew Kahr 2022-01-25 23:09:58 -08:00
parent 12fc1f50f7
commit bd1602dad0
4 changed files with 7 additions and 7 deletions

2
dist/index.js vendored
View File

@ -1334,7 +1334,7 @@ class SetupMac {
//static unityHubPath = `/Applications/Unity\\\\ Hub.app/Contents/MacOS/Unity\\\\ Hub`; //static unityHubPath = `/Applications/Unity\\\\ Hub.app/Contents/MacOS/Unity\\\\ Hub`;
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 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 //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;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -6,8 +6,8 @@ brew install unity-hub
echo "Installing Unity Editor $UNITY_VERSION ($UNITY_CHANGESET)" echo "Installing Unity Editor $UNITY_VERSION ($UNITY_CHANGESET)"
/Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install \
--version $UNITY_VERSION --version $UNITY_VERSION \
--changeset $UNITY_CHANGESET --changeset $UNITY_CHANGESET \
--module mac-il2cpp --module mac-il2cpp \
--childModules --childModules

View File

@ -5,7 +5,7 @@ class SetupMac {
//static unityHubPath = `/Applications/Unity\\\\ Hub.app/Contents/MacOS/Unity\\\\ Hub`; //static unityHubPath = `/Applications/Unity\\\\ Hub.app/Contents/MacOS/Unity\\\\ Hub`;
public static async setup(buildParameters: BuildParameters, actionFolder: string) { 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 //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;