Merge commit '9fff3627757a76db932be572b62521043322e901' into remote-builder/refactor-cloudformation
commit
9ba8b83721
|
|
@ -53,14 +53,11 @@ namespace UnityBuilderAction
|
||||||
if (addressableAssetSettingsType != null)
|
if (addressableAssetSettingsType != null)
|
||||||
{
|
{
|
||||||
// ReSharper disable once PossibleNullReferenceException, used from try-catch
|
// ReSharper disable once PossibleNullReferenceException, used from try-catch
|
||||||
void CallAddressablesMethod(string methodName, object[] args) => addressableAssetSettingsType
|
|
||||||
.GetMethod(methodName, BindingFlags.Static | BindingFlags.Public)
|
|
||||||
.Invoke(null, args);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
CallAddressablesMethod("CleanPlayerContent", new object[] { null });
|
addressableAssetSettingsType.GetMethod("CleanPlayerContent", BindingFlags.Static | BindingFlags.Public)
|
||||||
CallAddressablesMethod("BuildPlayerContent", Array.Empty<object>());
|
.Invoke(null, new object[] {null});
|
||||||
|
addressableAssetSettingsType.GetMethod("BuildPlayerContent", new Type[0]).Invoke(null, new object[0]);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ if [[ -n "$UNITY_LICENSE" ]] || [[ -n "$UNITY_LICENSE_FILE" ]]; then
|
||||||
|
|
||||||
# Activate license
|
# Activate license
|
||||||
ACTIVATION_OUTPUT=$(unity-editor \
|
ACTIVATION_OUTPUT=$(unity-editor \
|
||||||
-nographics \
|
|
||||||
-logFile /dev/stdout \
|
-logFile /dev/stdout \
|
||||||
-quit \
|
-quit \
|
||||||
-manualLicenseFile $FILE_PATH)
|
-manualLicenseFile $FILE_PATH)
|
||||||
|
|
@ -62,8 +61,6 @@ elif [[ -n "$UNITY_SERIAL" && -n "$UNITY_EMAIL" && -n "$UNITY_PASSWORD" ]]; then
|
||||||
|
|
||||||
# Activate license
|
# Activate license
|
||||||
unity-editor \
|
unity-editor \
|
||||||
-batchmode \
|
|
||||||
-nographics \
|
|
||||||
-logFile /dev/stdout \
|
-logFile /dev/stdout \
|
||||||
-quit \
|
-quit \
|
||||||
-serial "$UNITY_SERIAL" \
|
-serial "$UNITY_SERIAL" \
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,6 @@ echo "###########################"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
unity-editor \
|
unity-editor \
|
||||||
-nographics \
|
|
||||||
-logfile /dev/stdout \
|
-logfile /dev/stdout \
|
||||||
-quit \
|
-quit \
|
||||||
-customBuildName "$BUILD_NAME" \
|
-customBuildName "$BUILD_NAME" \
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ if [[ -n "$UNITY_SERIAL" ]]; then
|
||||||
# This will return the license that is currently in use.
|
# This will return the license that is currently in use.
|
||||||
#
|
#
|
||||||
unity-editor \
|
unity-editor \
|
||||||
-nographics \
|
|
||||||
-logFile /dev/stdout \
|
-logFile /dev/stdout \
|
||||||
-quit \
|
-quit \
|
||||||
-returnlicense
|
-returnlicense
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue