Comflowyspace is a typical Client-Server app, for long term design, it can work as a cloud web app and a electron app.
- /apps/electron-backend: Electron App Related Code
- /apps/electron-frontend: A next.js app as the front-layer for app
- /apps/node: A node application to connect comfyUI and front-end
- /apps/electron-package: Electron app builder
- Git clone the repo
- Install dependencies:
pnpm i
- Start frontend dev server:
cd apps/electron-frontend
|pnpm dev
- Start electron dev server:
cd apps/electron-backend
|pnpm dev
If there are some problems happen related to node-pty, try to rebuild id on electron-backend
project for your OS
cd apps/electron-backend
./node_modules/.bin/electron-rebuild
Considering pnpm's package design, it can't work compatible with electron builders, so I create a new npm based folder to package app
- Clean node_modules already installed in /apps/electron-package
- Install dependencies:
npm i
- Code signing: rename
.env.example
to.env
and change your app signing params - Compile:
npm run compile
- Make app:
npm run make