- Updated Dockerfile to copy frontend files to meshchatx/public directory. - Modified .dockerignore to include meshchatx/public. - Added a new script to prepare the frontend directory. - Adjusted Vite configuration to output to the new public directory. - Updated GitHub Actions workflow to reflect changes in build process and artifact handling.
46 lines
782 B
Makefile
46 lines
782 B
Makefile
.PHONY: install run develop clean build build-appimage build-exe dist sync-version wheel node_modules python
|
|
|
|
PYTHON ?= python
|
|
POETRY = $(PYTHON) -m poetry
|
|
NPM = npm
|
|
|
|
install: sync-version node_modules python
|
|
|
|
node_modules:
|
|
$(NPM) install
|
|
|
|
python:
|
|
$(POETRY) install
|
|
|
|
run: install
|
|
$(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
|
|
|
|
build-exe: build
|
|
$(NPM) run electron-postinstall
|
|
$(NPM) run dist -- --win portable
|
|
|
|
dist: build-appimage
|
|
|
|
clean:
|
|
rm -rf node_modules
|
|
rm -rf build
|
|
rm -rf dist
|
|
rm -rf python-dist
|
|
rm -rf meshchatx/public
|
|
|
|
sync-version:
|
|
$(PYTHON) scripts/sync_version.py
|