File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2124,6 +2124,7 @@ task releasePlugin(dependsOn: [buildPlugin, buildUpmPlugin]) {
21242124 fileTree(dir : project. ext. pluginExplodedDir),
21252125 pluginTemplateFilesMap. values())
21262126 doLast {
2127+ // Delete and regenerate built .unitypackage in the repo.
21272128 delete fileTree(
21282129 dir : project. ext. pluginReleaseFile. parentFile,
21292130 includes : [project. ext. currentPluginBasename + " -*.unitypackage" ])
@@ -2137,6 +2138,7 @@ task releasePlugin(dependsOn: [buildPlugin, buildUpmPlugin]) {
21372138 into project. ext. pluginReleaseFileUnversioned. parentFile
21382139 rename { src_filename -> project. ext. pluginReleaseFileUnversioned. name }
21392140 }
2141+ // Delete and regenerate the exploded plugin folder in the repo.
21402142 delete fileTree(dir : project. ext. pluginExplodedDir)
21412143 copy {
21422144 from project. ext. pluginStagingAreaDir
@@ -2145,6 +2147,7 @@ task releasePlugin(dependsOn: [buildPlugin, buildUpmPlugin]) {
21452147 it. path + " /**/*"
21462148 }
21472149 }
2150+ // Delete and regenerate the UPM package in the repo.
21482151 delete fileTree(dir : project. ext. pluginUpmDir)
21492152 copy {
21502153 // Rename the top-level package folder to upm.
You can’t perform that action at this time.
0 commit comments