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"]