|
|
|
@ -308,9 +308,9 @@ namespace MediaBrowser.WebDashboard.Api
|
|
|
|
|
|
|
|
|
|
if (!string.Equals(mode, "cordova", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
var versionedBowerPath = Path.Combine(Path.GetDirectoryName(bowerPath), "bower_components" + _appHost.ApplicationVersion);
|
|
|
|
|
Directory.Move(bowerPath, versionedBowerPath);
|
|
|
|
|
bowerPath = versionedBowerPath;
|
|
|
|
|
//var versionedBowerPath = Path.Combine(Path.GetDirectoryName(bowerPath), "bower_components" + _appHost.ApplicationVersion);
|
|
|
|
|
//Directory.Move(bowerPath, versionedBowerPath);
|
|
|
|
|
//bowerPath = versionedBowerPath;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DeleteFilesByExtension(bowerPath, ".log");
|
|
|
|
@ -340,7 +340,11 @@ namespace MediaBrowser.WebDashboard.Api
|
|
|
|
|
DeleteFoldersByName(bowerPath, "guides");
|
|
|
|
|
DeleteFoldersByName(bowerPath, "grunt");
|
|
|
|
|
DeleteFoldersByName(bowerPath, "rollups");
|
|
|
|
|
DeleteFoldersByName(Path.Combine(bowerPath, "emby-webcomponents"), "fonts");
|
|
|
|
|
|
|
|
|
|
if (string.Equals(mode, "cordova", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
DeleteFoldersByName(Path.Combine(bowerPath, "emby-webcomponents"), "fonts");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_fileSystem.DeleteDirectory(Path.Combine(bowerPath, "jquery", "src"), true);
|
|
|
|
|
|
|
|
|
|