react-native-email-imap-smtp 0.3.12 → 0.3.14
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/server/bin.mjs +5 -2
package/package.json
CHANGED
package/server/bin.mjs
CHANGED
|
@@ -57,8 +57,11 @@ if (openWindow && !foreground) {
|
|
|
57
57
|
const termPid = process.ppid;
|
|
58
58
|
|
|
59
59
|
if (process.platform === 'win32') {
|
|
60
|
-
|
|
61
|
-
spawn('cmd', [
|
|
60
|
+
// 拆成独立参数传给 spawn,避免 Node.js 自动加外层引号导致 start 误解析
|
|
61
|
+
spawn('cmd', [
|
|
62
|
+
'/c', 'start', `"Email Proxy :${port}"`, 'cmd', '/c',
|
|
63
|
+
`set PROXY_WATCH_PPID=${termPid}&& "${nodeExe}" "${scriptPath}" --foreground --port ${port}`
|
|
64
|
+
], { stdio: 'ignore', detached: true, windowsHide: false }).unref();
|
|
62
65
|
} else {
|
|
63
66
|
spawn('open', ['-a', 'Terminal', scriptPath, '--args', '--foreground', `--port=${port}`], {
|
|
64
67
|
stdio: 'ignore', detached: true,
|