Skip to content

Commit c774a81

Browse files
committed
fix: fix pkg ssl error
1 parent cd31823 commit c774a81

File tree

6 files changed

+23
-26
lines changed

6 files changed

+23
-26
lines changed

.github/workflows/pkg.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636
- os: windows-2022
3737
version: win_x86
3838
pythonArch: 'x86'
39-
- os: macos-14
40-
version: mac_apple
41-
pythonArch: 'x64'
4239
- os: macos-12
4340
version: mac_intel
4441
pythonArch: 'x64'
@@ -64,9 +61,9 @@ jobs:
6461
- name: Setup Python
6562
uses: actions/setup-python@v5
6663
with:
67-
python-version: '3.10.11'
64+
python-version: '3.7'
6865
architecture: ${{ matrix.pythonArch }}
69-
66+
7067
- name: Install Requirements
7168
run: |
7269
pip install -r ./requirements.txt
@@ -101,25 +98,24 @@ jobs:
10198
needs: [build-on-platform]
10299
runs-on: ubuntu-22.04
103100
steps:
104-
- uses: actions/checkout@v3
101+
- uses: actions/checkout@v4
105102

106103
- name: Download from Artifact
107-
uses: actions/download-artifact@v4.1.7
104+
uses: actions/download-artifact@v3
108105
with:
109106
name: pixivbiuArt
110107

111108
- name: Rename
112109
run: |
113110
mv ./win_x64.zip ./PixivBiu_${{ github.event.inputs.releaseTag }}_win_x64.zip
114111
mv ./win_x86.zip ./PixivBiu_${{ github.event.inputs.releaseTag }}_win_x86.zip
115-
mv ./mac_apple.zip ./PixivBiu_${{ github.event.inputs.releaseTag }}_mac_apple.zip
116112
mv ./mac_intel.zip ./PixivBiu_${{ github.event.inputs.releaseTag }}_mac_intel.zip
117113
mv ./ubuntu_x64.zip ./PixivBiu_${{ github.event.inputs.releaseTag }}_ubuntu_x64.zip
118114
119115
- name: Release and Done
120116
uses: ncipollo/release-action@v1
121117
with:
122-
artifacts: "PixivBiu_${{ github.event.inputs.releaseTag }}_win_x64.zip, PixivBiu_${{ github.event.inputs.releaseTag }}_win_x86.zip, PixivBiu_${{ github.event.inputs.releaseTag }}_mac_apple.zip, PixivBiu_${{ github.event.inputs.releaseTag }}_mac_intel.zip, PixivBiu_${{ github.event.inputs.releaseTag }}_ubuntu_x64.zip"
118+
artifacts: "PixivBiu_${{ github.event.inputs.releaseTag }}_win_x64.zip, PixivBiu_${{ github.event.inputs.releaseTag }}_win_x86.zip, PixivBiu_${{ github.event.inputs.releaseTag }}_mac_intel.zip, PixivBiu_${{ github.event.inputs.releaseTag }}_ubuntu_x64.zip"
123119
tag: ${{ github.event.inputs.releaseTag }}
124120
name: ${{ github.event.inputs.releaseName }}
125121
body: ${{ github.event.inputs.releaseBody }}

.pkg/r_cloudscraper.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ def loadUserAgent(self, *args, **kwargs):
100100
else:
101101
if self.browser and self.browser not in self.browsers:
102102
sys.tracebacklimit = 0
103-
raise RuntimeError('Sorry "{}" browser is not valid, valid browsers are [{}].'.format(self.browser, ', '.join(self.browsers)))
103+
raise RuntimeError(f'Sorry "{self.browser}" browser is not valid, valid browsers are [{", ".join(self.browsers)}].')
104104

105105
if not self.platform:
106106
self.platform = random.SystemRandom().choice(self.platforms)
107107

108108
if self.platform not in self.platforms:
109109
sys.tracebacklimit = 0
110-
raise RuntimeError('Sorry the platform "{}" is not valid, valid platforms are [{}]'.format(self.platform, ', '.join(self.platforms)))
110+
raise RuntimeError(f'Sorry the platform "{self.platform}" is not valid, valid platforms are [{", ".join(self.platforms)}]')
111111

112112
filteredAgents = self.filterAgents(user_agents['user_agents'])
113113

@@ -118,7 +118,7 @@ def loadUserAgent(self, *args, **kwargs):
118118

119119
if not filteredAgents[self.browser]:
120120
sys.tracebacklimit = 0
121-
raise RuntimeError('Sorry "{}" browser was not found with a platform of "{}".'.format(self.browser, self.platform))
121+
raise RuntimeError(f'Sorry "{self.browser}" browser was not found with a platform of "{self.platform}".')
122122

123123
self.cipherSuite = user_agents['cipherSuite'][self.browser]
124124
self.headers = user_agents['headers'][self.browser]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PixivBiu,一款不错的 Pixiv **辅助**工具。
2525

2626
### 已编译程序
2727

28-
此项目基于 `Python@3.10(+)` 编写,使用 `PyInstaller` 构建编译版本。
28+
此项目基于 `Python@3.7(+)` 编写,使用 `PyInstaller` 构建编译版本。
2929

3030
这里提供 Windows、macOS 和 Ubuntu 的编译版本,如有其他需求请自行编译。
3131

README_EN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PixivBiu, a nice Pixiv **assistant** tool.
2525

2626
### Executable Binary File
2727

28-
This project is written in `Python@3.10(+)` and is compiled using `PyInstaller`.
28+
This project is written in `Python@3.7(+)` and is compiled using `PyInstaller`.
2929

3030
Compiled versions are provided for Windows, macOS, and Ubuntu. If you have other requirements, please compile it yourself.
3131

README_JA.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PixivBiuはPixivのための**補助的な**ツールです。
2525

2626
### 実行バイナリから
2727

28-
このプロジェクトは Python 3.10 以上で開発されており、実行バイナリのビルドには `PyInstaller` を使用しています。
28+
このプロジェクトは Python 3.7 以上で開発されており、実行バイナリのビルドには `PyInstaller` を使用しています。
2929

3030
Windows 版、macOS 版と Ubuntu 版が利用可能ですが、もし必要であれば自分でビルドを試してください。
3131

requirements.txt

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
blinker==1.8.2
2-
certifi==2024.7.4
1+
certifi==2024.8.30
32
charset-normalizer==3.3.2
43
click==8.1.7
54
cloudscraper==1.2.71
6-
Flask==3.0.3
7-
idna==3.7
8-
itsdangerous==2.2.0
5+
Flask==2.2.5
6+
idna==3.8
7+
importlib-metadata==6.7.0
8+
itsdangerous==2.1.2
99
Jinja2==3.1.4
1010
MarkupSafe==2.1.5
11-
pillow==10.3.0
11+
Pillow==9.5.0
1212
pixivpy3==3.7.5
13-
pyparsing==3.1.2
13+
pyparsing==3.1.4
1414
PySocks==1.7.1
1515
PyYAML==6.0.1
16-
requests==2.32.3
16+
requests==2.31.0
1717
requests-toolbelt==1.0.0
18-
typing_extensions==4.12.2
19-
urllib3==2.2.2
20-
Werkzeug==3.0.3
18+
typing_extensions==4.7.1
19+
urllib3==2.0.7
20+
Werkzeug==2.2.3
21+
zipp==3.15.0

0 commit comments

Comments
 (0)