https://github.com/al1abb/invoify
请问 Mac 机器下如何设置该程序开机自动运行?
https://github.com/al1abb/invoify
请问 Mac 机器下如何设置该程序开机自动运行?
|
AtmaNov 20, 2025 via Android
1
设置里面启动项或者登录项
|
|
3
做一个 launchagent 的 plist 文件
|
|
4
写个 shell script, 744, 里面写 npm run dev. 把你的 shell script 添加到开机启动项.
|
|
5
npm 项目我一般使用 supervisor
|
|
6
1. 先新建个 start.sh 脚本
2. 在系统设置的登录项里添加这个脚本 之前开机启动 GOST 的时候记录了一下,你可以参考: https://senjianlu.com/2025/07/27/start_script_when_mac_boot/ |
|
7
@rabbirbot00 你这个实现方法最简洁, 多谢.
|
|
AoEiuV020JPNov 20, 2025
8
|