-
Notifications
You must be signed in to change notification settings - Fork 902
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15e412e
commit bc81d97
Showing
3 changed files
with
88 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Release build executable program | ||
|
||
on: | ||
release: | ||
types: [ created ] | ||
|
||
permissions: | ||
contents: write | ||
discussions: write | ||
|
||
jobs: | ||
build: | ||
name: Build on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ macos-latest, windows-latest, macos-13 ] | ||
|
||
steps: | ||
- name: 签出存储库 | ||
uses: actions/checkout@v3 | ||
|
||
- name: 设置 Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: 安装依赖项 | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install pyinstaller | ||
- name: 构建 Win 可执行文件 | ||
if: runner.os == 'Windows' | ||
run: | | ||
pyinstaller --icon=./static/XHS-Downloader.ico --add-data "static:static" --add-data "locale:locale" main.py | ||
shell: pwsh | ||
|
||
- name: 构建 Mac 可执行文件 | ||
if: runner.os == 'macOS' | ||
run: | | ||
pyinstaller --icon=./static/XHS-Downloader.icns --add-data "static:static" --add-data "locale:locale" main.py | ||
- name: 创建压缩包 | ||
run: | | ||
7z a "XHS-Downloader_V${{ github.event.release.tag_name }}_${{ runner.os }}_${{ runner.arch }}.zip" ./dist/main/* | ||
shell: bash | ||
|
||
- name: 上传文件到 release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
./XHS-Downloader_V*.zip | ||
name: XHS-Downloader V${{ github.event.release.tag_name }} | ||
body_path: ./static/Release_Notes.md | ||
draft: ${{ github.event.release.draft }} | ||
prerelease: ${{ github.event.release.prerelease }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
**项目更新内容:** | ||
|
||
1. 使用 rookiepy 替代 browser-cookie3 | ||
2. 修复 record_data 参数无效的问题 | ||
3. 新增文件名称非法字符处理机制 | ||
4. 新增自动删除空文件夹功能 | ||
5. 优化重定向链接获取逻辑 | ||
6. 引入 aiofiles 库操作文件 | ||
7. 修复 ScannerError 错误 | ||
8. 更新 chunk 参数默认值 | ||
9. 优化作品数据提取逻辑 | ||
10. 优化作品数据返回格式 | ||
11. 优化项目运行信息提示 | ||
12. 新增作品下载记录开关 | ||
13. 新增文件断点续传功能 | ||
14. 新增文件下载延时处理 | ||
15. 移除文件并发下载功能 | ||
16. 默认开启局域网访问 | ||
17. 修复其他已知问题 | ||
18. 更新英语翻译 | ||
19. 其他细节优化 | ||
|
||
**用户脚本更新内容:** | ||
|
||
1. 新增专辑作品链接提取功能 | ||
2. 更新作品链接提取功能 |