19 lines
634 B
C#
19 lines
634 B
C#
using System.IO;
|
|
using UnityEngine;
|
|
|
|
namespace CaoCao.Editor
|
|
{
|
|
public class SaveBuildAssets : IBuildJobStep
|
|
{
|
|
//"E:/HxMobileProject/BundlesCache/Android/HotfixB.json"
|
|
public void Start(BuildJob job)
|
|
{
|
|
var buildAssets = ScriptableObject.CreateInstance<BuildAssets>();
|
|
buildAssets.bundledAssets = job.bundledAssets.ToArray();
|
|
buildAssets.rawAssets = job.rawAssets.ToArray();
|
|
var json = JsonUtility.ToJson(buildAssets);
|
|
var path = Settings.GetCachePath(job.parameters.name + ".json");
|
|
File.WriteAllText(path, json);
|
|
}
|
|
}
|
|
} |