- 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);
+ }