Skip to content

Commit

Permalink
新增自动打包
Browse files Browse the repository at this point in the history
  • Loading branch information
molihuan committed Mar 15, 2024
1 parent b8f23a3 commit f77889d
Show file tree
Hide file tree
Showing 7 changed files with 113 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release Linux
on:
# 手动触发
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
# 使用本项目
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: PyInstaller
run: |
python script/packagescript.py
# Upload generated apk to the artifacts.
- uses: actions/[email protected]
with:
# Artifact name
name: release-windows.zip
# 导出文件夹
path: script/dist/
# The desired behavior if no files are found using the provided path.

36 changes: 36 additions & 0 deletions .github/workflows/release_mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release Mac
on:
# 手动触发
workflow_dispatch:
jobs:
build:
name: Build
runs-on: macos-latest
steps:
# 使用本项目
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: PyInstaller
run: |
python script/packagescript.py
# Upload generated apk to the artifacts.
- uses: actions/[email protected]
with:
# Artifact name
name: release-windows.zip
# 导出文件夹
path: script/dist/
# The desired behavior if no files are found using the provided path.

36 changes: 36 additions & 0 deletions .github/workflows/release_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release Windows
on:
# 手动触发
workflow_dispatch:
jobs:
build:
name: Build
runs-on: windows-2019
steps:
# 使用本项目
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: PyInstaller
run: |
python script/packagescript.py
# Upload generated apk to the artifacts.
- uses: actions/[email protected]
with:
# Artifact name
name: release-windows.zip
# 导出文件夹
path: script/dist/
# The desired behavior if no files are found using the provided path.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

此软件是为了帮助网友合并哔哩哔哩缓存视频,将bilibili缓存视频合并导出为mp4,支持windows、mac、linux,你可以将它理解为一个专用的格式工厂,并不涉及破解相关内容,仅仅用于学习技术交流,严禁用于商业用途,如有侵权请联系我删档,对你带来困惑和不便我深感抱歉。


## 特性

- [x] 合并(导出)B站缓存(有声音视频,仅音频)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pyside6==6.5.2
pyside6==6.6.2
pyinstaller==5.13.0
2 changes: 1 addition & 1 deletion script/appDetails.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#APP_NAME = "HLB站缓存合并工具"
APP_NAME = "HLBTool"
APP_VERSION = "v1.2.3"
APP_VERSION = "v1.2.4"
3 changes: 2 additions & 1 deletion script/packagescript.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ def copyReadme(source_path, target_path):
shutil.rmtree(outputDir)
print(
f"请选择打包方式:\n{PkgType.PYINSTALLER_PKG.value}.PyInstaller\n{PkgType.NUITKA.value}.Nuitka\n{PkgType.NON.value}.什么也不做\n请输入前面的序号:")
inType = int(input())
# inType = int(input())
inType = 0
# sysType = SysType.MAC
# sysType = SysType.LINUX
if inType == PkgType.NON.value:
Expand Down

0 comments on commit f77889d

Please sign in to comment.