Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

修复部分错误

修复部分错误 #52

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
windows:
runs-on: windows-latest
env:
PACKAGENAME: ehentai_py37_windows_x64
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller==4.8
pip install pywin32==302
pip install -r src\requirements.txt
- name: Build
run: |
cd src
cp ..\res\icon\icon.ico .\
pyinstaller -F -w -i icon.ico start.py
mv dist ehentai
cp ..\LICENSE ehentai\
cp ..\CHANGELOG ehentai\
cd ..
mkdir ${{ env.PACKAGENAME }}
mv src\ehentai ${{ env.PACKAGENAME }}
7z a -r "$($Env:PACKAGENAME + '.zip')" "ehentai"
- name: Upload
uses: actions/upload-artifact@v2
with:
name: ${{ env.PACKAGENAME }}
path: ${{ env.PACKAGENAME }}
retention-days: 7
windows7:
runs-on: windows-latest
env:
PACKAGENAME: ehentai_py37_windows7_x64
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller==4.6
pip install pywin32==302
pip install PySide6==6.1.3
pip install urllib3==1.26.15
pip install requests==2.28.2
pip install pillow==8.3.2
pip install Pysocks==1.7.1
pip install bs4==0.0.1
pip install lxml==4.6.4
pip install natsort==8.2.0
pip install pycryptodomex==3.12.0
pip install waifu2x-vulkan==1.1.6
- name: Build
run: |
cd src
cp ..\res\icon\icon.ico .\
pyinstaller -F -w -i icon.ico start.py
mv dist ehentai
cp ..\LICENSE ehentai\
cp ..\CHANGELOG ehentai\
cd ..
mkdir ${{ env.PACKAGENAME }}
mv src\ehentai ${{ env.PACKAGENAME }}
7z a -r "$($Env:PACKAGENAME + '.zip')" "ehentai"
- name: Upload
uses: actions/upload-artifact@v2
with:
name: ${{ env.PACKAGENAME }}
path: ${{ env.PACKAGENAME }}
retention-days: 7