Bug 1076941: Keep supporting the legacy location under Contents/MacOS for the webapprt folder on OSX. r=myk

This commit is contained in:
Stephen Pohl 2014-10-03 08:04:44 -04:00
parent f6c188526f
commit aae0cf9d0c
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
[DEFAULT]
skip-if = buildapp == 'mulet' || os == "mac" # see bug 993690 and bug 1076941
skip-if = buildapp == 'mulet' || os == "mac" && os_version == "10.6" # see bug 993690
support-files =
head.js
app.sjs

View File

@ -117,7 +117,13 @@ main(int argc, char **argv)
NSString* myWebRTPath = [myBundle pathForResource:@"webapprt"
ofType:nil];
if (!myWebRTPath) {
@throw MakeException(@"Missing Web Runtime Files", @"Cannot locate binary for this App");
myWebRTPath = [myBundlePath stringByAppendingPathComponent:@"Contents"];
myWebRTPath = [myWebRTPath stringByAppendingPathComponent:@"MacOS"];
myWebRTPath = [myWebRTPath stringByAppendingPathComponent:@"webapprt"];
if ([[NSFileManager defaultManager] fileExistsAtPath:myWebRTPath] == NO) {
@throw MakeException(@"Missing Web Runtime Files",
@"Cannot locate binary for this App");
}
}
//GET FIREFOX BUILD ID