Skip to content

Commit

Permalink
fix:copy ios resource script
Browse files Browse the repository at this point in the history
  • Loading branch information
hexinghuaxd committed May 9, 2022
1 parent 7e347a8 commit 030e5a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Plugins/iOS/Editor/BuidPostProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,16 @@ public static void OnPostProcessBuild(BuildTarget target, string path)
var parentFolder = Directory.GetParent(appDataPath).FullName;
var tdsResourcePath = "";
var remotePackagePath = FilterFileByPrefix(parentFolder + "/Library/PackageCache/", $"com.tapsdk.antiaddiction@");
var assetLocalPackagePath = FilterFileByPrefix(parentFolder + "/Assets/", "Plugins");
var localPackagePath = FilterFileByPrefix(parentFolder, "AntiAddiction");

var localPackagePath = FilterFileByPrefix(parentFolder + "/Packages/", "AntiAddiction");

if (!string.IsNullOrEmpty(remotePackagePath))
{
tdsResourcePath = remotePackagePath + "/Plugins/iOS/resources";
} else if (!string.IsNullOrEmpty(localPackagePath)){
tdsResourcePath = localPackagePath + "/Plugins/iOS/resources";
} else {
var assetLocalPackagePath = FilterFileByPrefix(parentFolder + "/Assets/", "Plugins");
tdsResourcePath = assetLocalPackagePath + "/iOS/resources";
}

Expand Down

0 comments on commit 030e5a8

Please sign in to comment.