Fix path issues

pull/326/head
Andrew Kahr 2022-01-26 02:08:56 -08:00
parent cdf7e5d845
commit 9105cc8a7a
5 changed files with 8 additions and 8 deletions

2
dist/index.js vendored
View File

@ -1336,7 +1336,7 @@ class SetupMac {
const unityChangeset = yield unity_changeset_1.getUnityChangeset(buildParameters.version);
//Need to set environment variables from here because we execute
//the scripts on the host for mac
process.env.SCRIPT_DIRECTORY = `${actionFolder}/platforms/mac`;
process.env.ACTION_FOLDER = actionFolder;
process.env.UNITY_VERSION = buildParameters.version;
process.env.UNITY_CHANGESET = unityChangeset.changeset;
process.env.UNITY_SERIAL = buildParameters.unitySerial;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -3,10 +3,10 @@
#
# Run steps
#
source $SCRIPT_DIRECTORY/steps/setup.sh
source $SCRIPT_DIRECTORY/steps/activate.sh
source $SCRIPT_DIRECTORY/steps/build.sh
source $SCRIPT_DIRECTORY/steps/return_license.sh
source $ACTION_FOLDER/platforms/mac/steps/setup.sh
source $ACTION_FOLDER/platforms/mac/steps/activate.sh
source $ACTION_FOLDER/platforms/mac/steps/build.sh
source $ACTION_FOLDER/platforms/mac/steps/return_license.sh
#
# Instructions for debugging

View File

@ -48,7 +48,7 @@ if [ -z "$BUILD_METHOD" ]; then
# Create Editor directory if it does not exist
mkdir -p "$UNITY_PROJECT_PATH/Assets/Editor/"
# Copy the build script of Unity Builder action
cp -R "/UnityBuilderAction/Assets/Editor/" "$UNITY_PROJECT_PATH/Assets/Editor/"
cp -R "$ACTION_FOLDER/default-build-script/Assets/Editor/" "$UNITY_PROJECT_PATH/Assets/Editor/"
# Set the Build method to that of UnityBuilder Action
BUILD_METHOD="UnityBuilderAction.Builder.BuildProject"
# Verify recursive paths

View File

@ -7,7 +7,7 @@ class SetupMac {
//Need to set environment variables from here because we execute
//the scripts on the host for mac
process.env.SCRIPT_DIRECTORY = `${actionFolder}/platforms/mac`;
process.env.ACTION_FOLDER = actionFolder;
process.env.UNITY_VERSION = buildParameters.version;
process.env.UNITY_CHANGESET = unityChangeset.changeset;
process.env.UNITY_SERIAL = buildParameters.unitySerial;