Pass CLI args to worker and update login script example
The quickLoginExample.bat script was updated to use the new launcher script names and argument format. In napcat.ts, the master process now forwards its command line arguments to the worker process, enabling better parameter handling.
This commit is contained in:
1 parent
d4478275ee
commit
0ba5862753
2 files changed
+4
-3
No files matched your search
@@ -151,7 +151,8 @@ async function startWorker (): Promise<void> {
|
||||
const workerScript = getWorkerScriptPath();
|
||||
const processType = getProcessTypeName();
|
||||
|
||||
const child = processManager.createWorker(workerScript, [], {
|
||||
// 传递 master 进程的命令行参数给 worker 进程
|
||||
const child = processManager.createWorker(workerScript, process.argv.slice(2), {
|
||||
env: {
|
||||
...process.env,
|
||||
NAPCAT_WORKER_PROCESS: '1',
|
||||
|
||||
Reference in new issue
Block a user