WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 3f8ee0a

Browse files
committed
更新
1 parent dc0af74 commit 3f8ee0a

File tree

6 files changed

+42
-25
lines changed

6 files changed

+42
-25
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -141,19 +141,15 @@ jobs:
141141
env:
142142
PACKAGENAME: bika_py39_windows_x64
143143
steps:
144-
- uses: actions/checkout@v2
144+
- uses: actions/checkout@v4
145145
- name: Set up Python 3.9
146-
uses: actions/setup-python@v2
146+
uses: actions/setup-python@v5
147147
with:
148148
python-version: 3.9
149149
- name: Install dependencies
150150
run: |
151151
python -m pip install --upgrade pip
152152
pip install pyinstaller
153-
pip install sr-vulkan
154-
pip install sr-vulkan-model-waifu2x
155-
pip install sr-vulkan-model-realcugan
156-
pip install sr-vulkan-model-realesrgan
157153
pip install -r src\requirements.txt
158154
- name: Build
159155
run: |
@@ -186,16 +182,16 @@ jobs:
186182
env:
187183
PACKAGENAME: bika_py39_nosr_windows_x64
188184
steps:
189-
- uses: actions/checkout@v2
185+
- uses: actions/checkout@v4
190186
- name: Set up Python 3.9
191-
uses: actions/setup-python@v2
187+
uses: actions/setup-python@v5
192188
with:
193189
python-version: 3.9
194190
- name: Install dependencies
195191
run: |
196192
python -m pip install --upgrade pip
197193
pip install pyinstaller
198-
pip install -r src\requirements.txt
194+
pip install -r src\requirements_nosr.txt
199195
- name: Build
200196
run: |
201197
cd src
@@ -319,10 +315,6 @@ jobs:
319315
sudo apt-get install -y fuse libfuse2
320316
python -m pip install --upgrade pip
321317
pip install pyinstaller
322-
pip install sr-vulkan
323-
pip install sr-vulkan-model-waifu2x
324-
pip install sr-vulkan-model-realcugan
325-
pip install sr-vulkan-model-realesrgan
326318
pip install -r src/requirements.txt
327319
- name: Build
328320
run: |

.github/workflows/release.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,6 @@ jobs:
237237
run: |
238238
python -m pip install --upgrade pip
239239
pip install pyinstaller
240-
pip install sr-vulkan
241-
pip install sr-vulkan-model-waifu2x
242-
pip install sr-vulkan-model-realcugan
243-
pip install sr-vulkan-model-realesrgan
244240
pip install -r src\requirements.txt
245241
Invoke-WebRequest -Uri "https://github.com/upx/upx/releases/download/v5.0.1/upx-5.0.1-win64.zip" -OutFile "upx.zip"
246242
Expand-Archive -Path "upx.zip" -DestinationPath "D:\"
@@ -308,7 +304,7 @@ jobs:
308304
run: |
309305
python -m pip install --upgrade pip
310306
pip install nuitka
311-
pip install -r src\requirements.txt
307+
pip install -r src\requirements_nosr.txt
312308
Invoke-WebRequest -Uri "https://github.com/upx/upx/releases/download/v5.0.1/upx-5.0.1-win64.zip" -OutFile "upx.zip"
313309
Expand-Archive -Path "upx.zip" -DestinationPath "D:\"
314310
Remove-Item "upx.zip"
@@ -491,8 +487,8 @@ jobs:
491487
tar -xf /tmp/upx.tar.xz -C /tmp/upx --strip-components=1
492488
export UPX_BIN=/tmp/upx/upx
493489
chmod +x "$UPX_BIN"
494-
grep -v -i "^pyside6" requirements.txt > /tmp/requirements.txt
495-
pip3 install -r /tmp/requirements.txt
490+
grep -v -i "^pyside6" requirements_nosr.txt > /tmp/requirements_nosr.txt
491+
pip3 install -r /tmp/requirements_nosr.txt
496492
mkdir -p db
497493
curl -L -o db/book.db \
498494
https://github.com/bika-robot/picacg-database/releases/download/v1.5.3/book.db

src/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
PySide6==6.5.3
22
websocket-client==0.59.0
3-
#sr-vulkan
4-
#sr-vulkan-model-waifu2x
5-
#sr-vulkan-model-realcugan
6-
#sr-vulkan-model-realesrgan
3+
sr-vulkan
4+
sr-vulkan-model-waifu2x
5+
sr-vulkan-model-realcugan
6+
sr-vulkan-model-realesrgan
77
pillow
88
Pysocks
99
natsort

src/requirements_nosr.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
PySide6==6.5.3
2+
websocket-client==0.59.0
3+
sr-vulkan
4+
sr-vulkan-model-waifu2x
5+
sr-vulkan-model-realcugan
6+
sr-vulkan-model-realesrgan
7+
pillow
8+
Pysocks
9+
natsort
10+
webdavclient3
11+
tqdm
12+
pysmb
13+
lxml
14+
httpx
15+
httpx[http2]
16+
httpx[socks]

src/start.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@
3434
if hasattr(es, "msg"):
3535
config.ErrorMsg = es.msg
3636

37+
38+
39+
try:
40+
import sr_vulkan_model_waifu2x
41+
print("import sr_vulkan_model_waifu2x, {}".format(sr_vulkan_model_waifu2x))
42+
import sr_vulkan_model_realcugan
43+
print("import sr_vulkan_model_waifu2x, {}".format(sr_vulkan_model_realcugan))
44+
import sr_vulkan_model_realesrgan
45+
print("import sr_vulkan_model_waifu2x, {}".format(sr_vulkan_model_realesrgan))
46+
except Exception as es:
47+
pass
48+
49+
3750
from PySide6.QtGui import QFont
3851
from PySide6 import QtWidgets, QtGui # 导入PySide6部件
3952
from PySide6.QtNetwork import QLocalSocket, QLocalServer

src/view/nas/nas_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def GetNextParams(self):
180180
upPath = nasInfo.path + "/"
181181
elif nasInfo.dir_index == 1:
182182
upPath = nasInfo.path + "/" + ToolUtil.GetCanSaveName(downloadInfo.title) + "/"
183-
desFile = os.path.join(desPath, "{}.zip".format(epsInfo.epsTitle))
183+
desFile = os.path.join(desPath, "{}.zip".format(ToolUtil.GetCanSaveName(epsInfo.epsTitle)))
184184
else :
185185
tick = int(time.time())
186186
day = time.strftime('%Y-%m-%d', time.localtime(tick))

0 commit comments

Comments
 (0)