engine7 7.0.8 → 7.0.9
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/dist/cli.mjs +3 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -603,6 +603,8 @@ cd /d "${cwd}"\r
|
|
|
603
603
|
const plistDir = path.join(process.env.HOME, "Library", "LaunchAgents");
|
|
604
604
|
fs.mkdirSync(plistDir, { recursive: true });
|
|
605
605
|
const plistPath = path.join(plistDir, `${label}.plist`);
|
|
606
|
+
const localCli = path.join("node_modules", "engine7", "dist", "cli.mjs");
|
|
607
|
+
const cliMjs = fs.existsSync(localCli) ? path.resolve(localCli) : path.join(path.dirname(path.dirname(engine7Bin)), "lib", "node_modules", "engine7", "dist", "cli.mjs");
|
|
606
608
|
const plist = `<?xml version="1.0" encoding="UTF-8"?>
|
|
607
609
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
608
610
|
<plist version="1.0">
|
|
@@ -611,7 +613,7 @@ cd /d "${cwd}"\r
|
|
|
611
613
|
<key>ProgramArguments</key>
|
|
612
614
|
<array>
|
|
613
615
|
<string>${process.execPath}</string>
|
|
614
|
-
<string>${
|
|
616
|
+
<string>${cliMjs}</string>
|
|
615
617
|
<string>start</string>
|
|
616
618
|
<string>--config</string>
|
|
617
619
|
<string>${path.resolve(configPath2)}</string>
|