Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
fix problem when build project
Browse files Browse the repository at this point in the history
  • Loading branch information
KleinerHacker committed Feb 25, 2022
1 parent bff5ddd commit 2cb4f5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Scripts/Runtime/Utils/UnityTesting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private static void StoreBase(UnityBuilding.BuildBehavior? behavior, BuildingDat
var fileName = Path.GetTempPath() + "/" + BaseFileName;
using var stream = new FileStream(fileName, FileMode.Create);
using var writer = new StreamWriter(stream);
writer.WriteLine(JsonUtility.ToJson(behavior));
writer.WriteLine(behavior == null ? "<null>" : JsonUtility.ToJson(behavior.Value));
writer.WriteLine(JsonUtility.ToJson(overwriteData));
}

Expand All @@ -103,7 +103,8 @@ private static bool LoadBase(out UnityBuilding.BuildBehavior? behavior, out Buil
{
using var stream = new FileStream(fileName, FileMode.Open);
using var reader = new StreamReader(stream);
behavior = JsonUtility.FromJson<UnityBuilding.BuildBehavior?>(reader.ReadLine());
var behaviorStr = reader.ReadLine();
behavior = behaviorStr == "<null>" ? null : JsonUtility.FromJson<UnityBuilding.BuildBehavior>(behaviorStr);
overwriteData = JsonUtility.FromJson<BuildingData>(reader.ReadLine());
}
finally
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "org.pcsoft.build-tooling",
"version": "1.4.6",
"version": "1.4.7",
"displayName": "Build Tooling",
"description": "Add a build toolbar into unity to create and run build very easy.",
"unity": "2021.1",
Expand All @@ -12,7 +12,7 @@
],
"dependencies": {
"com.marijnzwemmer.unity-toolbar-extender": "1.4.1",
"org.pcsoft.editor-ex": "1.1.7"
"org.pcsoft.editor-ex": "1.1.8"
},
"author": {
"name": "Pfeiffer C Soft",
Expand Down

0 comments on commit 2cb4f5c

Please sign in to comment.