Skip to content

Commit 520f66b

Browse files
committed
[update] export script
1 parent e41dba0 commit 520f66b

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

Assets/Editor/ExportPackage.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,13 @@ public class ExportPackage
77
private readonly static string[] Paths = {
88
"Assets/Plugins/MemoryInfoPlugin",
99
};
10-
11-
private const string ReadMe = "README.md";
12-
private const string License = "LICENSE";
13-
10+
1411
[MenuItem("Assets/Export MemoryInfoPlugin")]
1512
private static void Export()
1613
{
17-
string readmePath = Path.Combine(Application.dataPath, "Plugins/MemoryInfoPlugin", ReadMe);
18-
string licensePath = Path.Combine(Application.dataPath, "Plugins/MemoryInfoPlugin", License);
19-
File.Copy(Path.Combine(Application.dataPath, "..", ReadMe), readmePath);
20-
File.Copy(Path.Combine(Application.dataPath, "..", License), licensePath);
21-
AssetDatabase.Refresh();
22-
2314
AssetDatabase.ExportPackage(Paths, "MemoryInfoPlugin-for-Unity.unitypackage", ExportPackageOptions.Recurse);
2415
Debug.Log("Export complete!");
2516

26-
File.Delete(readmePath);
27-
File.Delete(licensePath);
28-
File.Delete(readmePath + ".meta");
29-
File.Delete(licensePath + ".meta");
3017
AssetDatabase.Refresh();
3118
}
3219
}

0 commit comments

Comments
 (0)