mirror of
https://gh.wpcy.net/https://github.com/bohdanbobrowski/blog2epub.git
synced 2026-04-24 07:20:02 +08:00
55 lines
1.4 KiB
Python
55 lines
1.4 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
from kivy.tools.packaging.pyinstaller_hooks import get_deps_minimal
|
|
|
|
import os
|
|
import sys
|
|
|
|
block_cipher = None
|
|
configuration = Analysis(
|
|
[
|
|
'blog2epub/blog2epub_gui.py'
|
|
],
|
|
pathex=[
|
|
'.'
|
|
],
|
|
datas=[
|
|
(os.path.abspath('./assets/blog2epub.icns'), '.'),
|
|
(os.path.abspath('./assets/blog2epub_256px.png'), '.'),
|
|
(os.path.abspath('./assets/blog2epub.png'), '.'),
|
|
(os.path.abspath('./assets/Alegreya-Regular.ttf'), '.'),
|
|
(os.path.abspath('./assets/Alegreya-Italic.ttf'), '.'),
|
|
(os.path.abspath('./assets/LiberationMono-Regular.ttf'), '.'),
|
|
],
|
|
hookspath=[],
|
|
runtime_hooks=[],
|
|
win_no_prefer_redirects=False,
|
|
win_private_assemblies=False,
|
|
cipher=block_cipher,
|
|
noarchive=False,
|
|
**get_deps_minimal(video=None, audio=None)
|
|
)
|
|
application_pyz = PYZ(
|
|
configuration.pure,
|
|
configuration.zipped_data,
|
|
cipher=block_cipher
|
|
)
|
|
application_exe = EXE(
|
|
application_pyz,
|
|
configuration.scripts,
|
|
configuration.binaries,
|
|
configuration.zipfiles,
|
|
configuration.datas,
|
|
name = 'blog2epub',
|
|
debug = False,
|
|
strip = False,
|
|
upx = True,
|
|
runtime_tmpdir = None,
|
|
console = False,
|
|
)
|
|
app = BUNDLE(
|
|
application_exe,
|
|
name='blog2epub.app',
|
|
icon='assets/blog2epub.icns',
|
|
bundle_identifier=None,
|
|
info_plist = {'NSHighResolutionCapable': 'True'},
|
|
)
|