Skip to content

Commit 2b45566

Browse files
authored
OnPostprocessBuild copy for windows only (otherwise android build fails)
1 parent 73823b0 commit 2b45566

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Assets/Scripts/Editor/BuildProcess/PostBuildCopyEmptyFolders.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ public class PostBuildCopyEmptyFolders : MonoBehaviour
1212
[PostProcessBuildAttribute(1)]
1313
public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject)
1414
{
15+
// only for windows
16+
if (target != BuildTarget.StandaloneWindows) return;
17+
1518
Debug.Log("<color=#00FF00>### POSTBUILD : COPY EMPTY STREAMINGASSETS-FOLDERS ###</color>");
1619
Debug.Log("Build done: " + pathToBuiltProject);
1720

0 commit comments

Comments
 (0)