- Removed unnecessary blank lines in cx_setup.py. - Reformatted conditional checks in meshchat.py for better readability. - Updated callback variable names in NomadnetDownloader for clarity. - Adjusted version string formatting in version.py for consistency. - Reordered import statements in prepare_frontend_dir.py for better organization.
48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
from pathlib import Path
|
|
|
|
from cx_Freeze import Executable, setup
|
|
|
|
from meshchatx.src.version import __version__
|
|
|
|
ROOT = Path(__file__).resolve().parent
|
|
PUBLIC_DIR = ROOT / "meshchatx" / "public"
|
|
|
|
include_files = [
|
|
(str(PUBLIC_DIR), "public"),
|
|
("logo", "logo"),
|
|
]
|
|
|
|
setup(
|
|
name="ReticulumMeshChatX",
|
|
version=__version__,
|
|
description="A simple mesh network communications app powered by the Reticulum Network Stack",
|
|
executables=[
|
|
Executable(
|
|
script="meshchatx/meshchat.py",
|
|
base=None,
|
|
target_name="ReticulumMeshChatX",
|
|
shortcut_name="ReticulumMeshChatX",
|
|
shortcut_dir="ProgramMenuFolder",
|
|
icon="logo/icon.ico",
|
|
),
|
|
],
|
|
options={
|
|
"build_exe": {
|
|
"packages": [
|
|
"RNS",
|
|
"RNS.Interfaces",
|
|
"LXMF",
|
|
],
|
|
"include_files": include_files,
|
|
"excludes": [
|
|
"PIL",
|
|
],
|
|
"optimize": 2,
|
|
"build_exe": "build/exe",
|
|
"replace_paths": [
|
|
("*", ""),
|
|
],
|
|
},
|
|
},
|
|
)
|