From fc90897396e67b13e85f715e2d9199ef4e1f1610 Mon Sep 17 00:00:00 2001 From: imgyh <1974355683@qq.com> Date: Sun, 21 May 2023 16:20:36 +0800 Subject: [PATCH] =?UTF-8?q?ci(tiktok):=20=E4=BF=AE=E6=94=B9=E6=89=93?= =?UTF-8?q?=E5=8C=85=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pyinstaller.yml | 8 ++++---- Dockerfile | 7 ++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pyinstaller.yml b/.github/workflows/pyinstaller.yml index f154858..48ddfcf 100644 --- a/.github/workflows/pyinstaller.yml +++ b/.github/workflows/pyinstaller.yml @@ -28,8 +28,8 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install -r requirements.txt - pyinstaller -i ./static/img/favicon.ico -F TikTokCommand.py --add-data "X-Bogus.js;." - pyinstaller -i ./static/img/favicon.ico -F TikTokWeb.py --add-data "X-Bogus.js;." --add-data "templates;templates" + pyinstaller -i ./static/img/favicon.ico -F DouYinCommand.py + pyinstaller -i ./static/img/favicon.ico -F WebApi.py --add-data "templates;templates" - name: Create Release and Upload Release Asset uses: softprops/action-gh-release@v1 @@ -46,8 +46,8 @@ jobs: # 如果指定了名称,将使用指定的名称;否则,将自动生成一个名称。 # 如果指定了正文,正文将被添加到自动生成的注释中。 files: | # 多个文件要加 | - dist/TikTokCommand.exe - dist/TikTokWeb.exe + dist/DouYinCommand.exe + dist/WebApi.exe config.yml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 默认为${{ github.token }} diff --git a/Dockerfile b/Dockerfile index 7d636cd..18dc486 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # This Dockerfile is used to build an Python environment -FROM node:18-bullseye-slim +FROM python:3.9-slim-bullseye LABEL maintainer="imgyh" @@ -9,11 +9,8 @@ ADD . $WORKDIR RUN sed -i s/deb.debian.org/mirrors.aliyun.com/g /etc/apt/sources.list -RUN apt-get update && apt-get install -y python3.9 python3-pip - RUN pip3 install -r requirements.txt ENV TZ=Asia/Shanghai -CMD ["python3", "TikTokWeb.py"] - +CMD ["python3", "WebApi.py"]