X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftools%2Fmacpack%2FMacPack.cs;h=405fac4d7c267de25d01045310eff036a0451fbe;hb=779127e0a5cac26926da5abfc60d7eae48625fc8;hp=1c56a81b074fd4e76f7752aa506484cc5c7eeb11;hpb=669beaed8380fa592533c8755f72593b4422d01d;p=mono.git diff --git a/mcs/tools/macpack/MacPack.cs b/mcs/tools/macpack/MacPack.cs index 1c56a81b074..405fac4d7c2 100644 --- a/mcs/tools/macpack/MacPack.cs +++ b/mcs/tools/macpack/MacPack.cs @@ -132,7 +132,14 @@ namespace Mac { data = Encoding.ASCII.GetBytes (script); writer.Write (data, 0, data.Length); writer.Close (); - chmod (Path.Combine (opts.output, String.Format ("{0}.app/Contents/MacOS/{0}", opts.appname)), Convert.ToUInt32 ("755", 8)); + try { + chmod (Path.Combine (opts.output, + String.Format ("{0}.app/Contents/MacOS/{0}", opts.appname)), + Convert.ToUInt32 ("755", 8)); + } catch { + Console.WriteLine ("WARNING: It was not possible to set the executable permissions on\n" + + "the file {0}.app/Contents/MacOS/{0}, the bundle might not work", opts.appname); + } s = Assembly.GetEntryAssembly ().GetManifestResourceStream ("PLIST"); reader = new BinaryReader (s);