diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index 1158aa3..965a481 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -25,31 +25,50 @@ jobs: - name: Init Env id: step_init run: | - # 判断是否需要构建 web 版本,检查 push message 中最后一行是否不包含 [not-build-web](默认构建) - if [[ $(git log -1 --pretty=%B) != *"[not-build-web]"* ]]; then - echo 'BUILD_WEB=true' - echo 'BUILD_WEB=true' >> $GITHUB_OUTPUT - else - echo 'BUILD_WEB=false' - echo 'BUILD_WEB=false' >> $GITHUB_OUTPUT - fi - # 判断是否需要构建 electron 版本,检查 push message 中最后一行是否包含 [build-electron] - if [[ $(git log -1 --pretty=%B) == *"[build-electron]"* ]]; then - echo 'BUILD_ELECTRON=true' - echo 'BUILD_ELECTRON=true' >> $GITHUB_OUTPUT - else - echo 'BUILD_ELECTRON=false' - echo 'BUILD_ELECTRON=false' >> $GITHUB_OUTPUT - fi # 获取版本号 echo VERSION=$(node -p "require('./package.json').version") >> $GITHUB_OUTPUT - # ========================= 构建 Web 版本 ========================= + # ========================= 构建 Web 版本 ========================= + + build-root-web: + name: 构建 Web 版本(根目录) + runs-on: ubuntu-latest + needs: init + steps: + # 拉取代码 + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + persist-credentials: false + # 设置 Node.js 版本 + - name: Load Node.js + uses: actions/setup-node@v4 + with: + node-version: 18.x + # 更新依赖 + - name: Install + run: yarn + # 构建 + - name: Build + run: yarn build + + # 将 dist 目录压缩为 zip + - name: Zip + run: zip -r Stapxs.QQ.Lite-${{ needs.init.outputs.version }}-web.zip dist + + # 上传构建结果 + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: ${{ needs.init.outputs.version }}-web + path: Stapxs.QQ.Lite-${{ needs.init.outputs.version }}-web.zip + + # ==================== 构建 Github Pages 版本 ===================== build-pages: name: 构建 Github Pages 版本 runs-on: ubuntu-latest needs: init - if: needs.init.outputs.build_web == 'true' steps: # 拉取代码 - name: Checkout @@ -90,10 +109,8 @@ jobs: version: ${{ needs.init.outputs.version }} needs: init - if: needs.init.outputs.build_electron == 'true' steps: - # 拉取代码 - name: Checkout uses: actions/checkout@v4 diff --git a/package.json b/package.json index 123a5f8..db4cd90 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stapxs-qq-lite", - "version": "2.8.5", + "version": "2.8.6", "private": false, "author": "Stapx Steve [林槐]", "description": "一个兼容 OneBot 的非官方网页版 QQ 客户端,使用 Vue 重制的全新版本。", @@ -19,6 +19,7 @@ "@jakejarrett/gtk-theme": "^2.0.1", "@stapxs/umami-logger-typescript": "^1.0.12", "@types/prismjs": "^1.26.4", + "animejs": "^3.2.2", "axios": "^1.7.2", "browser-image-compression": "^2.0.0", "core-js": "^3.8.3", @@ -50,6 +51,7 @@ "xss": "^1.0.14" }, "devDependencies": { + "@types/animejs": "^3.1.12", "@types/css": "^0.0.33", "@types/electron-devtools-installer": "^2.2.0", "@types/jsonpath": "^0.2.3", diff --git a/public/css/append-dark.css b/public/css/append-dark.css new file mode 100644 index 0000000..c88c729 --- /dev/null +++ b/public/css/append-dark.css @@ -0,0 +1,11 @@ +:root { + --color-blue: #316cf4; + --color-green: #408558; + --color-red: #cb444a; + --color-yellow: #f6c344; + + --color-bg-blue: #393e47; + --color-bg-green: #3f544a; + --color-bg-red: #523a3c; + --color-bg-yellow: #504b3d; +} \ No newline at end of file diff --git a/public/css/append-light.css b/public/css/append-light.css new file mode 100644 index 0000000..9cb77a7 --- /dev/null +++ b/public/css/append-light.css @@ -0,0 +1,11 @@ +:root { + --color-blue: #316cf4; + --color-green: #408558; + --color-red: #cb444a; + --color-yellow: #f6c344; + + --color-bg-blue: #d3e1fc; + --color-bg-green: #d5e6de; + --color-bg-red: #f3d8da; + --color-bg-yellow: #fdf3d1; +} \ No newline at end of file diff --git a/public/index.html b/public/index.html index 03a2933..67dd18c 100644 --- a/public/index.html +++ b/public/index.html @@ -9,6 +9,7 @@ Stapxs QQ Lite +