From 5d02181c026ae18af7c5e15c7a2f34b9ed8cfb85 Mon Sep 17 00:00:00 2001 From: ccppi Date: Fri, 9 Aug 2024 12:21:46 +0200 Subject: [PATCH] makefile add windows build --- gui.spec | 88 ++++++++++++++++++++++++------------------------ makefile | 5 +-- requirements.txt | 10 +++--- 3 files changed, 52 insertions(+), 51 deletions(-) diff --git a/gui.spec b/gui.spec index 12728d1..d0923d5 100644 --- a/gui.spec +++ b/gui.spec @@ -1,44 +1,44 @@ -# -*- mode: python ; coding: utf-8 -*- - - -a = Analysis( - ['lib/gui.py'], - pathex=[], - binaries=[], - datas=[], - hiddenimports=[], - hookspath=[], - hooksconfig={}, - runtime_hooks=[], - excludes=[], - noarchive=False, - optimize=0, -) -pyz = PYZ(a.pure) - -exe = EXE( - pyz, - a.scripts, - [], - exclude_binaries=True, - name='gui', - debug=False, - bootloader_ignore_signals=False, - strip=False, - upx=True, - console=True, - disable_windowed_traceback=False, - argv_emulation=False, - target_arch=None, - codesign_identity=None, - entitlements_file=None, -) -coll = COLLECT( - exe, - a.binaries, - a.datas, - strip=False, - upx=True, - upx_exclude=[], - name='gui', -) +# -*- mode: python ; coding: utf-8 -*- + + +a = Analysis( + ['lib\\gui.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + [], + exclude_binaries=True, + name='gui', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +) +coll = COLLECT( + exe, + a.binaries, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='gui', +) diff --git a/makefile b/makefile index f9926df..18d147a 100644 --- a/makefile +++ b/makefile @@ -1,7 +1,7 @@ #Works but is fucking big #Single file version: #pyinstaller lib/gui.py --onefile --add-data ./db/:./db - +pypath := /home/ccppi2/.wine/drive_c/users/ccppi2/AppData/Local/Programs/Python/Python312/ all:gui cli datafiles gui: @@ -17,6 +17,7 @@ datafiles: cp ./lib/conf dist/gui/ db-dir: mkdir -p dist/db - +wine-build: + wine64 $(pypath)/python.exe $(pypath)/Lib/site-packages/pyinstaller lib/gui.py clean: rm dist/db -r diff --git a/requirements.txt b/requirements.txt index 05c81c0..0111789 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,9 @@ beautifulsoup4==4.12.3 httplib2==0.22.0 mmh3==4.1.0 -PySide6==6.7.1 -PySide6==6.7.2 -PySide6.egg==info -PySide6_Addons==6.7.1 -PySide6_Essentials==6.7.1 +#PySide6==6.7.1 +#PySide6==6.7.2 +#PySide6.egg==info +#PySide6_Addons==6.7.1 +#PySide6_Essentials==6.7.1 Requests==2.32.3