File tree 1 file changed +3
-0
lines changed
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]) {
2124
2124
fileTree(dir : project. ext. pluginExplodedDir),
2125
2125
pluginTemplateFilesMap. values())
2126
2126
doLast {
2127
+ // Delete and regenerate built .unitypackage in the repo.
2127
2128
delete fileTree(
2128
2129
dir : project. ext. pluginReleaseFile. parentFile,
2129
2130
includes : [project. ext. currentPluginBasename + " -*.unitypackage" ])
@@ -2137,6 +2138,7 @@ task releasePlugin(dependsOn: [buildPlugin, buildUpmPlugin]) {
2137
2138
into project. ext. pluginReleaseFileUnversioned. parentFile
2138
2139
rename { src_filename -> project. ext. pluginReleaseFileUnversioned. name }
2139
2140
}
2141
+ // Delete and regenerate the exploded plugin folder in the repo.
2140
2142
delete fileTree(dir : project. ext. pluginExplodedDir)
2141
2143
copy {
2142
2144
from project. ext. pluginStagingAreaDir
@@ -2145,6 +2147,7 @@ task releasePlugin(dependsOn: [buildPlugin, buildUpmPlugin]) {
2145
2147
it. path + " /**/*"
2146
2148
}
2147
2149
}
2150
+ // Delete and regenerate the UPM package in the repo.
2148
2151
delete fileTree(dir : project. ext. pluginUpmDir)
2149
2152
copy {
2150
2153
// Rename the top-level package folder to upm.
You can’t perform that action at this time.
0 commit comments