diff --git a/browser/app/macbuild/Contents/MacOS-files.in b/browser/app/macbuild/Contents/MacOS-files.in index 32ebf105f3ee..849336bc9be6 100644 --- a/browser/app/macbuild/Contents/MacOS-files.in +++ b/browser/app/macbuild/Contents/MacOS-files.in @@ -5,6 +5,5 @@ /gtest/*** /pk12util /ssltunnel -/webapprt-stub /xpcshell /XUL diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in index 7cbeb3b8c7df..125354ff90a7 100644 --- a/browser/installer/package-manifest.in +++ b/browser/installer/package-manifest.in @@ -856,11 +856,7 @@ bin/libfreebl_32int64_3.so #ifdef XP_WIN @BINPATH@/webapp-uninstaller@BIN_SUFFIX@ #endif -#ifdef XP_MACOSX -@APPNAME@/Contents/MacOS/webapprt-stub@BIN_SUFFIX@ -#else @BINPATH@/webapprt-stub@BIN_SUFFIX@ -#endif @BINPATH@/webapprt/webapprt.ini @BINPATH@/webapprt/chrome.manifest @BINPATH@/webapprt/chrome/webapprt@JAREXT@ diff --git a/testing/mochitest/mach_commands.py b/testing/mochitest/mach_commands.py index f3851448ac68..581323a03b67 100644 --- a/testing/mochitest/mach_commands.py +++ b/testing/mochitest/mach_commands.py @@ -92,7 +92,7 @@ def get_webapp_runtime_path(self): appname = 'webapprt-stub' + mozinfo.info.get('bin_suffix', '') if sys.platform.startswith('darwin'): appname = os.path.join(self.distdir, self.substs['MOZ_MACBUNDLE_NAME'], - 'Contents', 'MacOS', appname) + 'Contents', 'Resources', appname) else: appname = os.path.join(self.distdir, 'bin', appname) return appname diff --git a/testing/testsuite-targets.mk b/testing/testsuite-targets.mk index 2143ed000956..a1b0b3af2e8d 100644 --- a/testing/testsuite-targets.mk +++ b/testing/testsuite-targets.mk @@ -169,7 +169,7 @@ endif $(CHECK_TEST_ERROR) ifeq ($(OS_ARCH),Darwin) -webapprt_stub_path = $(TARGET_DIST)/$(MOZ_MACBUNDLE_NAME)/Contents/MacOS/webapprt-stub$(BIN_SUFFIX) +webapprt_stub_path = $(TARGET_DIST)/$(MOZ_MACBUNDLE_NAME)/Contents/Resources/webapprt-stub$(BIN_SUFFIX) endif ifeq ($(OS_ARCH),WINNT) webapprt_stub_path = $(TARGET_DIST)/bin/webapprt-stub$(BIN_SUFFIX) diff --git a/toolkit/webapps/MacNativeApp.js b/toolkit/webapps/MacNativeApp.js index 0e12503f5985..dadd6c43ed45 100644 --- a/toolkit/webapps/MacNativeApp.js +++ b/toolkit/webapps/MacNativeApp.js @@ -222,7 +222,8 @@ NativeApp.prototype = { _copyPrebuiltFiles: function(aDir) { let destDir = getFile(aDir, this.macOSDir); - let stub = getFile(this.runtimeFolder, "webapprt-stub"); + let stub = getFile(OS.Path.join(OS.Path.dirname(this.runtimeFolder), + "Resources"), "webapprt-stub"); stub.copyTo(destDir, "webapprt"); }, diff --git a/webapprt/mac/webapprt.mm b/webapprt/mac/webapprt.mm index dea620e4d44c..4e2299ad207b 100644 --- a/webapprt/mac/webapprt.mm +++ b/webapprt/mac/webapprt.mm @@ -166,7 +166,7 @@ //we know the firefox path, so copy the new webapprt here NSString *newWebRTPath = - [NSString stringWithFormat: @"%@%s%s", firefoxPath, APP_MACOS_PATH, + [NSString stringWithFormat: @"%@%s%s", firefoxPath, APP_RESOURCES_PATH, WEBAPPRT_EXECUTABLE]; NSLog(@"### Firefox webapprt path: %@", newWebRTPath); if (![fileClerk fileExistsAtPath:newWebRTPath]) {