mirror of
https://github.com/imgyh/tiktok.git
synced 2025-04-24 20:50:17 +08:00
ci(tiktok): 修改打包配置
This commit is contained in:
parent
942bc35912
commit
fc90897396
8
.github/workflows/pyinstaller.yml
vendored
8
.github/workflows/pyinstaller.yml
vendored
@ -28,8 +28,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python -m pip install -r requirements.txt
|
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 DouYinCommand.py
|
||||||
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 WebApi.py --add-data "templates;templates"
|
||||||
|
|
||||||
- name: Create Release and Upload Release Asset
|
- name: Create Release and Upload Release Asset
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
@ -46,8 +46,8 @@ jobs:
|
|||||||
# 如果指定了名称,将使用指定的名称;否则,将自动生成一个名称。
|
# 如果指定了名称,将使用指定的名称;否则,将自动生成一个名称。
|
||||||
# 如果指定了正文,正文将被添加到自动生成的注释中。
|
# 如果指定了正文,正文将被添加到自动生成的注释中。
|
||||||
files: | # 多个文件要加 |
|
files: | # 多个文件要加 |
|
||||||
dist/TikTokCommand.exe
|
dist/DouYinCommand.exe
|
||||||
dist/TikTokWeb.exe
|
dist/WebApi.exe
|
||||||
config.yml
|
config.yml
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 默认为${{ github.token }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 默认为${{ github.token }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# This Dockerfile is used to build an Python environment
|
# This Dockerfile is used to build an Python environment
|
||||||
FROM node:18-bullseye-slim
|
FROM python:3.9-slim-bullseye
|
||||||
|
|
||||||
LABEL maintainer="imgyh<admin@imgyh.com>"
|
LABEL maintainer="imgyh<admin@imgyh.com>"
|
||||||
|
|
||||||
@ -9,11 +9,8 @@ ADD . $WORKDIR
|
|||||||
|
|
||||||
RUN sed -i s/deb.debian.org/mirrors.aliyun.com/g /etc/apt/sources.list
|
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
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
ENV TZ=Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
|
|
||||||
CMD ["python3", "TikTokWeb.py"]
|
CMD ["python3", "WebApi.py"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user