diff --git a/Open-FM.spec b/Open-FM.spec new file mode 100644 index 0000000..6dff620 --- /dev/null +++ b/Open-FM.spec @@ -0,0 +1,51 @@ +# -*- mode: python ; coding: utf-8 -*- + + +block_cipher = None + + +a = Analysis( + ['main.py'], + pathex=[], + binaries=[('icon.ico', '.')], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + 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, + [], + exclude_binaries=True, + name='Open-FM', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon=['icon.ico'], +) +coll = COLLECT( + exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='Open-FM', +) diff --git a/build.py b/build.py new file mode 100644 index 0000000..f301d87 --- /dev/null +++ b/build.py @@ -0,0 +1,7 @@ +# This Python file uses the following encoding: utf-8 + +import PyInstaller.__main__ +import os + +os.system("pyside6-uic form.ui -o ui_form.py") +PyInstaller.__main__.run(['Open-FM.spec']) diff --git a/openfm-qt.pyproject b/openfm-qt.pyproject index c30adca..d929080 100644 --- a/openfm-qt.pyproject +++ b/openfm-qt.pyproject @@ -1,3 +1,3 @@ { - "files": ["form.ui","openfm_qt/mainwindow.py","openfm_qt/__init__.py","main.py"] + "files": ["build.py","openfm_qt/__init__.py","form.ui","main.py","Open-FM.spec","pyproject.toml","openfm_qt/mainwindow.py","icon.ico","README.md"] } diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0bfcc39 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,20 @@ +[tool.poetry] +name = "openfm-qt" +version = "0.1.0" +description = "Qt client for Polish internet radio Open FM." +authors = ["Wiktor Zykubek "] +license = "ISC" +readme = "README.md" +packages = [{include = "openfm_qt"}] + +[tool.poetry.dependencies] +python = "^3.11" +requests = "^2.31.0" +PySide6 = "^6.5.1.1" + +[tool.poetry.group.dev.dependencies] +pyinstaller = "^5.12.0" + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api"