From 184f0dbf14e4b9bf642551912f358757872d9f1e Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Sat, 3 Jan 2026 17:16:41 -0600 Subject: [PATCH] docs(README): update README --- README.md | 4 +++- Taskfile.yml | 4 ++-- eslint.config.mjs | 1 + meshchatx/src/backend/docs_manager.py | 11 ++++++++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 717509e..cee911d 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ > [!IMPORTANT] > v4 coming soon with release builds for Linux and Windows. As well as updated container images and wheel packages. +For issues contact me over LXMF: `73 [![CI](https://git.quad4.io/RNS-Things/MeshChatX/actions/workflows/ci.yml/badge.svg?branch=master)](https://git.quad4.io/RNS-Things/MeshChatX/actions/workflows/ci.yml) [![Tests](https://git.quad4.io/RNS-Things/MeshChatX/actions/workflows/tests.yml/badge.svg?branch=master)](https://git.quad4.io/RNS-Things/MeshChatX/actions/workflows/tests.yml) [![Build](https://git.quad4.io/RNS-Things/MeshChatX/actions/workflows/build.yml/badge.svg?branch=master)](https://git.quad4.io/RNS-Things/MeshChatX/actions/workflows/build.yml) @@ -218,9 +219,10 @@ We use [Task](https://taskfile.dev/) for automation. | `task android-prepare` | Prepare Android build | | `task android-build` | Build Android APK | | `task build-flatpak` | Build Flatpak package | +| `task forge-start` | Run the application with Electron Forge | +| `task forge-make` | Generate distributables with Electron Forge | | `task clean` | Clean build artifacts and dependencies | - ## Security - [ASAR Integrity](https://www.electronjs.org/docs/latest/tutorial/asar-integrity) (Electron 39) diff --git a/Taskfile.yml b/Taskfile.yml index f8b8782..75a3f79 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -63,8 +63,8 @@ tasks: lint-python: desc: Lint Python code using ruff cmds: - - poetry run ruff check . --exclude tests - - poetry run ruff format --check . --exclude tests + - poetry run ruff check meshchatx tests scripts --exclude tests/frontend --exclude .pnpm-store + - poetry run ruff format --check meshchatx tests scripts --exclude tests/frontend --exclude .pnpm-store lint-frontend: desc: Lint frontend code diff --git a/eslint.config.mjs b/eslint.config.mjs index 58003ea..140c2b2 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -27,6 +27,7 @@ export default [ "**/*.proto", "**/tests/**", "**/tests/frontend/**", + "**/.pnpm-store/**", ], }, { diff --git a/meshchatx/src/backend/docs_manager.py b/meshchatx/src/backend/docs_manager.py index c604bd3..bbeacbb 100644 --- a/meshchatx/src/backend/docs_manager.py +++ b/meshchatx/src/backend/docs_manager.py @@ -58,6 +58,9 @@ class DocsManager: if self.project_root: search_paths.append(os.path.join(self.project_root, "docs")) + # Also try in the public directory + search_paths.append(os.path.join(self.public_dir, "meshchatx-docs")) + # Also try relative to this file # This file is in meshchatx/src/backend/docs_manager.py # Project root is 3 levels up @@ -81,7 +84,13 @@ class DocsManager: if file.endswith(".md") or file.endswith(".txt"): src_path = os.path.join(src_docs, file) dest_path = os.path.join(self.meshchatx_docs_dir, file) - shutil.copy2(src_path, dest_path) + + # Only copy if source and destination are different + if ( + os.path.abspath(src_path) != os.path.abspath(dest_path) + and os.access(self.meshchatx_docs_dir, os.W_OK) + ): + shutil.copy2(src_path, dest_path) # Also pre-render to HTML for easy sharing/viewing try: