Skip to content

Commit

Permalink
🚧 更新打包配置
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeal-L committed Mar 30, 2024
1 parent 0075418 commit ebbaf04
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ echo -e "\033[34m\n 更新现有的依赖包 ... \n\033[0m"
poetry update

echo -e "\033[34m\n pyinstaller 封装中 ... \n\033[0m"
poetry run pyinstaller app.spec
if [[ "$OSTYPE" == "darwin"* ]]; then
yes | poetry run pyinstaller macos.spec
else
yes | poetry run pyinstaller windows.spec
fi

echo -e "\033[34m\n pyinstaller 移动可执行文件到根目录 ... \n\033[0m"
cp -r dist/* ./
rm -rf dist
rm -rf build
rm -rf output

echo -e "\033[32m\n 项目构建完成 ... \n\033[0m"

44 changes: 44 additions & 0 deletions macos.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
['./app.py'],
pathex=[],
binaries=[],
datas=[('./src/assets/easy-taskbar-progress.dll', '.')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='哔哩哔哩漫画下载器',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['./src/ui/PySide_src/imgs/BiliBili_favicon.ico'],
)
app = BUNDLE(
exe,
name='哔哩哔哩漫画下载器.app',
icon='./src/ui/PySide_src/imgs/BiliBili_favicon.ico',
bundle_identifier=None,
)
File renamed without changes.

0 comments on commit ebbaf04

Please sign in to comment.