diff --git a/OpenRA.Launcher.Mac/Controller.m b/OpenRA.Launcher.Mac/Controller.m index 791db648eb..b368c5cb6d 100644 --- a/OpenRA.Launcher.Mac/Controller.m +++ b/OpenRA.Launcher.Mac/Controller.m @@ -65,7 +65,7 @@ extern char **environ; - (void)installRAPackages:(NSArray *)args { // 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]; } diff --git a/OpenRA.Launcher.Mac/build/Release/OpenRA.app/Contents/MacOS/OpenRA b/OpenRA.Launcher.Mac/build/Release/OpenRA.app/Contents/MacOS/OpenRA index 6dd080c849..769bc2a49b 100755 Binary files a/OpenRA.Launcher.Mac/build/Release/OpenRA.app/Contents/MacOS/OpenRA and b/OpenRA.Launcher.Mac/build/Release/OpenRA.app/Contents/MacOS/OpenRA differ diff --git a/OpenRA.Utility/Command.cs b/OpenRA.Utility/Command.cs index 5386e9f959..f13e3dcd19 100644 --- a/OpenRA.Utility/Command.cs +++ b/OpenRA.Utility/Command.cs @@ -70,7 +70,7 @@ namespace OpenRA.Utility Console.WriteLine("Status: Extracting {0}", file.ToLowerInvariant()); File.Copy( Path.Combine(fromPath, file), - Path.Combine(toPath, file.ToLowerInvariant()), true); + Path.Combine(toPath, Path.GetFileName(file).ToLowerInvariant()), true); } Console.WriteLine("Status: Completed");