Skip to content

Commit 0c8ab70

Browse files
committed
ci: 更新打包添加的相关文件
1 parent 6a1c479 commit 0c8ab70

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/macos-build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15-
- os: macos-12
16-
arch: x86_64
1715
- os: macos-14
1816
arch: arm64
1917
runs-on: ${{ matrix.os }}

build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if exist dist rmdir /s /q dist
66
if exist build rmdir /s /q build
77

88
REM 使用PyInstaller打包
9-
pyinstaller build_exe.spec
9+
pyinstaller build.spec
1010

1111
REM 检查打包是否成功
1212
if exist dist\FreePDF\FreePDF.exe (

build_exe.spec renamed to build.spec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,14 @@ a = Analysis(
113113
datas=[
114114
# 配置文件
115115
('pdf2zh_config.json', '.'),
116+
# ui文件
117+
('ui', '.'),
116118
# 模型文件
117119
('models/', 'models/'),
118120
# 字体文件
119121
('fonts/', 'fonts/'),
120-
# 资源文件
121-
('assets/', 'assets/'),
122+
# 渲染器文件
123+
('pdfjs', '.'),
122124
],
123125
hiddenimports=[
124126
# pdf2zh相关

0 commit comments

Comments
 (0)