Skip to content

Develop (#19)

Develop (#19) #23

Workflow file for this run

name: Install and Test LL on Linux
on:
push:
paths:
- 'install_linux.sh'
workflow_dispatch:
jobs:
install_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install -y libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 xdg-utils libatspi2.0-0 libuuid1 libsecret-1-0
- name: Download and Install QQ Software
run: |
wget https://dldir1.qq.com/qqfile/qq/QQNT/852276c1/linuxqq_3.2.5-21453_amd64.deb
sudo dpkg -i linuxqq_3.2.5-21453_amd64.deb
sudo apt-get install -f
- name: Run install_linux.sh
run: |
chmod +x install_linux.sh
./install_linux.sh
- name: Check output and directory existence
run: |
if ! /opt/QQ/qq --logging-enable | grep -q "[LiteLoader]" || [ ! -d "/opt/LiteLoader/plugins" ]; then
echo "LiteLoader not found in output or /opt/LiteLoader/plugins directory does not exist. Test failed."
exit 1
else
echo "LiteLoader found in output and /opt/LiteLoader/plugins directory exists. Test succeeded."
fi
- name: Check LiteLoader Store
run: |
# 检查 LiteLoader 插件是否存在
if [ -d "/opt/LiteLoader/plugins/pluginStore" ]; then
echo "LiteLoader pluginStore folder exists. Test succeeded."
else
echo "LiteLoader pluginStore folder does not exist. Test failed."
exit 1
fi