Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis-portto committed Nov 14, 2022
2 parents 175857b + c84c79f commit a3ac9cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/Editor/BuildProfileInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Linq;
using System.Text;
using Editor;
using Flow.Net.SDK.Extensions;
using UnityEditor;
using UnityEditor.Build.Reporting;
using UnityEngine;
Expand Down Expand Up @@ -176,12 +177,15 @@ private BuildReport TaskExecuteor(BuildTask task)
return $"Assets/{tmp}";
}).ToList();

var timeVersion = $"{DateTime.UtcNow.DayOfYear}{(DateTime.UtcNow.Hour * 60) + DateTime.UtcNow.Minute}";
var version = $"{task.BuildVersion}.{timeVersion}";

directories.AddRange(bloctoSdkDirPaths);
directories.Add("Assets/Dll");
directories.Add($"Assets/Plugins/Android");
directories.Add($"Assets/Plugins/iOS/UnityIosPlugin");
directories.Add($"Assets/Plugins/System.ComponentModel.Annotations.dll");
AssetDatabase.ExportPackage(directories.ToArray(), $"release/blocto-unity-sdk/Blocto-unity-sdk.{task.BuildVersion}.unitypackage", ExportPackageOptions.Recurse | ExportPackageOptions.Default);
AssetDatabase.ExportPackage(directories.ToArray(), $"release/blocto-unity-sdk/Blocto-unity-sdk.{version}.unitypackage", ExportPackageOptions.Recurse | ExportPackageOptions.Default);
Debug.Log("Blocto-unity-SDK export successed.");
break;
}
Expand Down

0 comments on commit a3ac9cc

Please sign in to comment.