loadtoagent 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/terminalHost.js +6 -4
package/package.json
CHANGED
package/src/terminalHost.js
CHANGED
|
@@ -239,11 +239,13 @@ function launchTerminalHost(options = {}) {
|
|
|
239
239
|
|
|
240
240
|
function resolveTerminalHostExecutable(options = {}) {
|
|
241
241
|
const platform = options.platform || process.platform;
|
|
242
|
-
const executable =
|
|
242
|
+
const executable = String(options.executable || process.execPath);
|
|
243
243
|
if (platform !== 'darwin' || !options.isPackaged) return executable;
|
|
244
|
-
const
|
|
245
|
-
const
|
|
246
|
-
|
|
244
|
+
const targetPath = path.posix;
|
|
245
|
+
const resolvedExecutable = targetPath.resolve(executable);
|
|
246
|
+
const productName = targetPath.basename(resolvedExecutable);
|
|
247
|
+
const helper = targetPath.resolve(
|
|
248
|
+
targetPath.dirname(resolvedExecutable),
|
|
247
249
|
'..',
|
|
248
250
|
'Frameworks',
|
|
249
251
|
`${productName} Helper.app`,
|