PicGo4MWeb
项目可以为MWeb 和Picgo 提供图床桥接.
若要实现PicGo4MWeb
项目的开机自启则需要如下配置:
下载PicGo4MWeb
git clone https://github.com/petter-gao/PicGo4MWeb.git ~/Documents
创建配置文件
vi ~/Library/LaunchAgents/com.molunerfinn.picgo.service.plist
编辑配置文件
<?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"> <plist version="1.0"> <dict> <key>Label</key> <string>com.molunerfinn.picgo4mweb.upload</string> <key>ProgramArguments</key> <array> <string>/opt/homebrew/bin/node</string> <string>~/Documents/PicGo4MWeb/index.js</string> </array> <key>RunAtLoad</key> <true /> <key>KeepAlive</key> <true/> <key>StandardOutPath</key> <string>/tmp/PicGo4MWeb.log</string> <key>StandardErrorPath</key> <string>/tmp/PicGo4MWeb.err</string> </dict> </plist>
根据安装路径不同, 需要修改
node
和PicGo4MWeb
的路径
可以需要赋予node
完全磁盘访问权限启动服务
chmod 644 ~/Library/LaunchAgents/com.molunerfinn.picgo.service.plist aunchctl load ~/Library/LaunchAgents/com.molunerfinn.picgo.service.plist
文章作者: qbeenslee