Win 修改LL数据目录,添加跳过检查更新 #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Install and Test LL on macOS | |
on: | |
push: | |
paths: | |
- 'install_mac.sh' | |
pull_request: | |
types: [opened] | |
paths: | |
- 'install_mac.sh' | |
workflow_dispatch: | |
jobs: | |
install_and_test: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 # 指定 Python 3 版本 | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install requests | |
- name: Download and Install QQ Software | |
run: | | |
python3 get_qqnt.py Macos | |
hdiutil attach QQ.dmg | |
cp -R /Volumes/QQ/QQ.app /Applications | |
hdiutil detach /Volumes/QQ | |
open /Applications/QQ.app/ & | |
- name: Run install_mac.sh | |
run: | | |
chmod +x install_mac.sh | |
./install_mac.sh | |
- name: Run QQ on macOS, wait, and check LiteLoader | |
run: | | |
/Applications/QQ.app/Contents/MacOS/QQ & # 启动 QQ,放入后台 | |
sleep 3 # 等待 3 秒 | |
# 关闭 QQ 应用程序,这里使用 pkill 假设 QQ 进程的名字为 QQ | |
pkill QQ | |
# 检查 LiteLoader 插件是否存在 | |
if [ -d "$HOME/Library/Containers/com.tencent.qq/Data/Documents/LiteLoader/plugins" ]; then | |
echo "LiteLoader plugins folder exists. Test succeeded." | |
else | |
echo "LiteLoader plugins folder does not exist. Test failed." | |
exit 1 | |
fi |