aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.WebDashboard/Api/DashboardService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.WebDashboard/Api/DashboardService.cs')
-rw-r--r--MediaBrowser.WebDashboard/Api/DashboardService.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.cs
index ab9ff8e6f..ab8b2a673 100644
--- a/MediaBrowser.WebDashboard/Api/DashboardService.cs
+++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs
@@ -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);