From adadeeeb5a4d06a26d2a5affc652f92bfcf2f3f6 Mon Sep 17 00:00:00 2001 From: Danstiv <50794055+Danstiv@users.noreply.github.com> Date: Sat, 17 Aug 2024 03:30:10 +0700 Subject: [PATCH] Add build script --- build.bat | 2 ++ espeak_converter.spec | 34 ---------------------------------- requirements.txt | 1 + 3 files changed, 3 insertions(+), 34 deletions(-) create mode 100644 build.bat delete mode 100644 espeak_converter.spec diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..bd625d9 --- /dev/null +++ b/build.bat @@ -0,0 +1,2 @@ +pyinstaller --onefile --name espeak_converter main.py +xcopy /I /Q /E lib dist\lib diff --git a/espeak_converter.spec b/espeak_converter.spec deleted file mode 100644 index 72c39d7..0000000 --- a/espeak_converter.spec +++ /dev/null @@ -1,34 +0,0 @@ -# -*- mode: python ; coding: utf-8 -*- - - -block_cipher = None - - -a = Analysis(['espeak_converter.py'], - pathex=['D:\\projects\\espeak_converter'], - binaries=[], - datas=[('fb2_parser/lang/ru.mo', './fb2_parser/lang/')], - hiddenimports=[], - hookspath=[], - runtime_hooks=[], - excludes=[], - win_no_prefer_redirects=False, - win_private_assemblies=False, - cipher=block_cipher, - noarchive=False) -pyz = PYZ(a.pure, a.zipped_data, - cipher=block_cipher) -exe = EXE(pyz, - a.scripts, - a.binaries, - a.zipfiles, - a.datas, - [], - name='espeak_converter', - debug=False, - bootloader_ignore_signals=False, - strip=False, - upx=True, - upx_exclude=[], - runtime_tmpdir=None, - console=True ) diff --git a/requirements.txt b/requirements.txt index 003c496..5fe9502 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,4 +3,5 @@ https://github.com/Danstiv/fb2parser/archive/master.zip httpx[socks]==0.27.0 lxml==5.3.0 pydantic==2.8.2 +pyinstaller==6.10.0 rich_split==0.1.2