Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez Gual <lluis@novell.com>2011-09-21 18:32:32 +0400
committerLluis Sanchez Gual <lluis@novell.com>2011-09-21 18:34:09 +0400
commit7c93c3ce494ed3218d77ae1b2df9c26c674a751e (patch)
tree6a3e5cfc29a22a5836e521b4fb25a8ed8eaf68df /main/src/addins/Deployment
parent1bff7a94687c983e6a544b5eff9a6f069bd53e85 (diff)
[Deployment] Use correct platform id
Diffstat (limited to 'main/src/addins/Deployment')
-rw-r--r--main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/DeployService.cs9
-rw-r--r--main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/InstallResolver.cs2
-rw-r--r--main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/PackageBuilder.cs2
3 files changed, 10 insertions, 3 deletions
diff --git a/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/DeployService.cs b/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/DeployService.cs
index fa347ac433..b6f9695245 100644
--- a/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/DeployService.cs
+++ b/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/DeployService.cs
@@ -70,7 +70,14 @@ namespace MonoDevelop.Deployment
}
public static string CurrentPlatform {
- get { return "Linux"; }
+ get {
+ if (Platform.IsMac)
+ return "MacOSX";
+ else if (Platform.IsWindows)
+ return "Windows";
+ else
+ return "Linux";
+ }
}
public static DeployProperties GetDeployProperties (ProjectFile file)
diff --git a/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/InstallResolver.cs b/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/InstallResolver.cs
index 76a82f5436..50e1ca8951 100644
--- a/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/InstallResolver.cs
+++ b/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/InstallResolver.cs
@@ -44,7 +44,7 @@ namespace MonoDevelop.Deployment
{
this.appName = appName;
- using (DeployContext ctx = new DeployContext (this, "Linux", prefix)) {
+ using (DeployContext ctx = new DeployContext (this, DeployService.CurrentPlatform, prefix)) {
InstallEntry (monitor, ctx, entry, configuration);
}
}
diff --git a/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/PackageBuilder.cs b/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/PackageBuilder.cs
index 3ea9f1982a..51d8cd6cc3 100644
--- a/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/PackageBuilder.cs
+++ b/main/src/addins/Deployment/MonoDevelop.Deployment/MonoDevelop.Deployment/PackageBuilder.cs
@@ -162,7 +162,7 @@ namespace MonoDevelop.Deployment
public virtual DeployContext CreateDeployContext ()
{
- return new DeployContext (this, "Linux", null);
+ return new DeployContext (this, DeployService.CurrentPlatform, null);
}
public void SetSolutionItem (SolutionItem entry)