auto-launch
Advanced tools
Comparing version 5.0.3 to 5.0.5
@@ -63,5 +63,7 @@ var AutoLaunch, isPathAbsolute, | ||
AutoLaunch.prototype.fixMacExecPath = function(path) { | ||
AutoLaunch.prototype.fixMacExecPath = function(path, macOptions) { | ||
path = path.replace(/(^.+?[^\/]+?\.app)\/Contents\/(Frameworks\/((\1|[^\/]+?) Helper)\.app\/Contents\/MacOS\/\3|MacOS\/Electron)/, '$1'); | ||
path = path.replace(/\.app\/Contents\/MacOS\/[^\/]*$/, '.app'); | ||
if (!macOptions.useLaunchAgent) { | ||
path = path.replace(/\.app\/Contents\/MacOS\/[^\/]*$/, '.app'); | ||
} | ||
return path; | ||
@@ -74,3 +76,3 @@ }; | ||
if (/darwin/.test(process.platform)) { | ||
this.opts.appPath = this.fixMacExecPath(this.opts.appPath); | ||
this.opts.appPath = this.fixMacExecPath(this.opts.appPath, this.opts.mac); | ||
} | ||
@@ -77,0 +79,0 @@ if (this.opts.appPath.indexOf('/') !== -1) { |
{ | ||
"name": "auto-launch", | ||
"version": "5.0.3", | ||
"version": "5.0.5", | ||
"description": "Launch node applications or executables at login (Mac, Windows, and Linux)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20822
287
0