PicGo4MWeb 项目可以为MWebPicgo 提供图床桥接.

若要实现PicGo4MWeb项目的开机自启则需要如下配置:

  1. 下载PicGo4MWeb

    git clone https://github.com/petter-gao/PicGo4MWeb.git ~/Documents
  2. 创建配置文件

    vi ~/Library/LaunchAgents/com.molunerfinn.picgo.service.plist
  3. 编辑配置文件

    <?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>

    根据安装路径不同, 需要修改nodePicGo4MWeb的路径
    可以需要赋予node完全磁盘访问权限

  4. 启动服务

    chmod 644 ~/Library/LaunchAgents/com.molunerfinn.picgo.service.plist aunchctl load ~/Library/LaunchAgents/com.molunerfinn.picgo.service.plist

文章作者: qbeenslee

CC BY-NC 4.0