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