codebase restructure and organization.

This commit is contained in:
2025-11-30 23:16:57 -06:00
parent 80cf812e54
commit 84f887df90
121 changed files with 1952 additions and 17368 deletions

View File

@@ -1,26 +1,29 @@
.PHONY: install run clean build build-appimage build-exe dist
.PHONY: install run develop clean build build-appimage build-exe dist sync-version wheel node_modules python
VENV = venv
PYTHON = $(VENV)/bin/python
PIP = $(VENV)/bin/pip
PYTHON ?= python
POETRY = $(PYTHON) -m poetry
NPM = npm
install: $(VENV) node_modules
$(VENV):
python3 -m venv $(VENV)
$(PIP) install --upgrade pip
$(PIP) install -r requirements.txt
install: sync-version node_modules python
node_modules:
$(NPM) install
python:
$(POETRY) install
run: install
$(PYTHON) meshchat.py
$(POETRY) run meshchat
develop: run
build: install
$(NPM) run build
wheel: install
$(POETRY) build -f wheel
$(PYTHON) scripts/move_wheels.py
build-appimage: build
$(NPM) run electron-postinstall
$(NPM) run dist -- --linux AppImage
@@ -32,10 +35,10 @@ build-exe: build
dist: build-appimage
clean:
rm -rf $(VENV)
rm -rf node_modules
rm -rf build
rm -rf dist
rm -rf python-dist
sync-version:
$(PYTHON) scripts/sync_version.py