1#!/usr/bin/env node
2import{createRequire as e}from"node:module";import{copyFileSync as t,existsSync as n,mkdirSync as r,openSync as i,readFileSync as a,realpathSync as o,renameSync as s,rmSync as c,st...
3 `)},i=e=>[`' ${G}`,`CreateObject("WScript.Shell").Run """${e}""", 0, False`,``].join(`\r
⋯
6`);return[`<?xml version="1.0" encoding="UTF-8"?>`,`<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">`,`<!-- ${W}: launch daemo...
7`)},i=le();u(i,r(e,t),`utf-8`),await q(`launchctl`,[`unload`,i]);let a=await q(`launchctl`,[`load`,i]);if(a!==0)throw Error(`launchctl load 失败(退出码 ${String(a)})。请手动执行: launchctl lo...
8`),r=he(e,t).map(e=>`"${e.replace(/"/g,`\\"`)}"`).join(` `);return[`[Unit]`,`Description=ezllm autostart (${W},