Fix installing ra from disk
This commit is contained in:
@@ -65,7 +65,7 @@ extern char **environ;
|
|||||||
- (void)installRAPackages:(NSArray *)args
|
- (void)installRAPackages:(NSArray *)args
|
||||||
{
|
{
|
||||||
// Todo: check if we can write to the requested dir, escalate priviledges if required.
|
// Todo: check if we can write to the requested dir, escalate priviledges if required.
|
||||||
NSArray *a = [NSArray arrayWithObjects:@"--install-ra-packages-inner", [args objectAtIndex:2], nil];
|
NSArray *a = [NSArray arrayWithObjects:@"--install-ra-packages-inner", [args objectAtIndex:2], [args objectAtIndex:3], nil];
|
||||||
[self runUtilityWithArgs:a];
|
[self runUtilityWithArgs:a];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -70,7 +70,7 @@ namespace OpenRA.Utility
|
|||||||
Console.WriteLine("Status: Extracting {0}", file.ToLowerInvariant());
|
Console.WriteLine("Status: Extracting {0}", file.ToLowerInvariant());
|
||||||
File.Copy(
|
File.Copy(
|
||||||
Path.Combine(fromPath, file),
|
Path.Combine(fromPath, file),
|
||||||
Path.Combine(toPath, file.ToLowerInvariant()), true);
|
Path.Combine(toPath, Path.GetFileName(file).ToLowerInvariant()), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLine("Status: Completed");
|
Console.WriteLine("Status: Completed");
|
||||||
|
|||||||
Reference in New Issue
Block a user